WE SHOWED UP!!!!!!
Step 1: Installation of Raspbian on 16 GB (preferred) SD card:
Download and Extract Raspbian Stretch for desktop zip from( https://www.raspberrypi.org/downloads/raspbian/ )
Download and Install Win32 Disk Imager from (https://sourceforge.net/projects/win32diskimager/) to burn the Raspbian OS onto SD card
Open Win32 DI -> Browse -> Select the image raspbian stretch -> Write -> Yes
Step 2: Insert the card in RPi and power it up (5v DC)
Step 3: Preferences -> Rpi Configuration -> Localisation -> Set Locale (Country to India), Timezone (Area to Indian and Location to Maldives), Keyboard (Country to India and Variant to English(India with rupee)), Wifi country (India) -> Ok -> Yes to Reboot
Step 4: Connect to the wifi
Step 5: Go to Preferences -> RPi Configuration -> Interfaces -> Enable all -> Reboot
Step 6: Downloading all the required libraries:
Open Terminal:
$ sudo apt-get update
$ sudo apt-get upgrade
For pi camera library:
$ sudo apt-get install python-picamera
For gps and accelerometer:
BerryGPS uses the serial port on the Raspberry Pi. By default, the serial port is already assigned to the console. This can be confirmed by using
$ dmesg | grep tty
The last line above shows that the console is enabled for the serial port.
$ ls -l /dev/serial0
The serial console needs to be disabled and then the serial port enabled.
$ sudo raspi-config
Select interfacing options -> Serial -> No -> Yes
And then Yes to reboot
To check if the gps modules is connected:
$ i2cdetect -y 1
Viewing meaningful GPS data:
$ sudo apt-get install gpsd-clients gpsd -y
$ sudo nano /etc/default/gpsd
Look for
DEVICES=””
and change it to
DEVICES=”/dev/serial0″
ctrl+x -> y -> enter
$ sudo reboot
To view data:
$ gpsmon
or
$ cgps
For conversion of image to text and compression:
$ sudo apt-get install zlib1g-dev
$ sudo apt-get install python3-pip
$ sudo apt-get install python-pip
$ sudo pip3 install pybase64
#For firebase:
# $ sudo pip install requests==2.12.4
# $ sudo pip install python-firebase
For firebase-admin:
$ sudo pip install requests
$ sudo pip install firebase-admin
$ sudo pip install --upgrade google-auth-oauthlib
Step 7: Download the source code:
Open Terminal $ git clone https://github.com/ashwanikr17/GPS_ACCELEROMETER_CAM_PI.git
Step 8: Open GPS_ACCELEROMETER_CAM_PI from File Manager. Move the LOG folder to Documents
Create "accel" and "images" folder inside LOG
Step 9: To run the program:
Terminal -> $ cd Documents/LOG
$ sudo python gpsdData.py
Step 10: To run the program during reboot:
Create a folder under pi and name it "logs"
$ sudo crontab -e
Go to last line and write
@reboot sh /home/pi/Documents/LOG/myProg.sh >/home/pi/logs/cronlog 2>&1
Save and exit