Make it

INSTRUCTIONS

  • Install the OS in the microSDHC card ( You can install your favorite OS but I will put the instructions for ubuntu mint )

    1) Download the image from the mirrors or direct downloads:

    https://ubuntu-mate.org/raspberry-pi/

    2) Put the image on a microSDHC card:

    Download the image and then:

    1. Extract the .img.bz2 archive to get the image file.bunzip2 ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img.bz2
    2. Write the image file to the microSD card as root.sudo ddrescue -d -D --force ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img /dev/sdX

    The drive may be mounted on any /dev/sdX so use the command lsblk to check.

    |f you don't have ddrescue you can install it using the following commands (be shure to have universe sources in your software & updates preferences):

    sudo apt-get install ddrescue

    If it does not work use:

    sudo apt-get install gddrescue

  • 2

    Solder the fona to the Arduino Micro

    Solder each cable using the following instructions:

    Fona  Arduino Micro

    • Vio connects to 5V 
    • GND connects to GND
    • Key connects to GND (always on)
    • RX connects to digital 2
    • TX connects to digital 9
    • RST connects to digital 4

    Solder the usb port to the PowerBoost 500C

  • 3

    Upload Arduino_Fona_library to the arduino micro

    Follow the instructions of https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test

    But before uploading the FONAtest to the arduino micro change the value of the FONA_TX to 9, as shown in the following photograph:

  • 4

    Put all the pieces together:

    1) Connect the GPS and GSM antenna to the Fona.

    2) Connect a microUSB cable from the Fona to the raspberry pi.

    3) Connect the 150 mAh battery to the Fona.

    4) Connect a microUSB cable from the Arduino micro to the raspberry pi.

    5) Connect a microUSB cable from the hdmi 5" display to the raspberry pi. 

    6) Connect the Hdmi cable from the hdmi 5" display to the Bi-directional switch. Connect another Hdmi cable from the bidirectional switch to the hdmi 90 degree adapter. Connect the 90 degree adaptar to the raspberry pi.

    7) Connect the 8000 mAh battery to the PowerBoost 500C. Connect a microUSB cable from the raspberry pi to the PowerBoost 500C.

  • 5

    Make the wooden box

    Cut the following sizes from a 3mm Medium-density fibreboard: 

    1 piece: 9,5 x 16,5 cm.

    2 pieces: 6,5 x 9,5 cm.

    2 pieces: 6,5 x 17,1 cm.

    2 pieces: 1,4 x 13,5 cm

    Glue them to make the following box:

    Put the hardware inside the box

    Put all the hardware inside the box carefully. Use insulating material if needed.

  • 6

    Install libresmartphone software

    1) Install python (if you don't have it) and the IDLE:

    sudo apt-get install python

    sudo apt-get install idle

    2) Install pyserial:

    sudo apt-get install python-serial

    3) Give permissions to read and write to the USB where the fona is placed. It can be one of the following (If it works, but in the future the software stops working try making another time this step):

    sudo chmod 777 /dev/ttyACM0

    sudo chmod 777 /dev/ttyACM1

    sudo chmod 777 /dev/ttyACM2

    sudo chmod 777 /dev/ttyACM3

    4) Install python-tools package:

    sudo apt-get install python-tools

    5) Download the six files of libresmartphone software and put them in the same folder:

    https://github.com/libresmartphone/libresmartphone/tree/master/Libresmartphone/Libresmartphone%20Software/libresmartphone_v0.3.2

    6) Open libresmartphone_v0.3.2.py with the python IDLE (using python 2.7) and run the module.

 

 

PARTS

QUANTITY   COMPONENT NAME
1 × Hdmi 5'' Display with resistive touchscreen. Resolution: 800x480 (Adafruit)http://www.adafruit.com/products/2260
1 × Micro arduino without headers. 5V 16Mhz ATmega32u4https://www.adafruit.com/products/1315
1 × Adafruit FONA 808. GSM + GPShttp://www.adafruit.com/product/2542
1 × Passive GPS Antenna- 9mm x 9mm 2dBi (Adafruit)http://www.adafruit.com/product/2460
1 × GSM Antenna - 3dBi. (Adafruit)http://www.adafruit.com/product/1991
1 × Vibrating mini motor disc (Adafruit)http://www.adafruit.com/product/1201
1 × Mini metal speaker - 0,5 W. (Adafruit)http://www.adafruit.com/product/1890
4 × 12 cm usb to micro usb cable (ebay) http://www.ebay.es/itm/281483194779
1 × Raspberry pi 2https://www.adafruit.com/products/2358
1 × 8000 mah lithium polymer batteryhttp://fszhaoneng.en.alibaba.com/product/2006826196-212570103/7866126_lithium_polymer_battery_8000mah_3_7v.html
1 × PowerBoost 500 Chargerhttps://www.adafruit.com/products/1944
1 × On-off (switch)https://www.adafruit.com/product/805
1 × MicroSD card