SISPRO is a Raspberry Pi / Python based GPS & video tracking system.
Introduction
Parts
Schematics
Installation
Roadmap
References
Contributing
SISPRO is a tracking system for Raspberry PI which uses a Raspberry Camera Module and a Adafruit Ultimate GPS Breakout. It records videos over multiple files and writes .srt (subtitle) files with GPS data (Lat / Long; Km/h; etc). The system also writes a log file with lots of information.
It has 2 operating modes:
- Recording mode: Records the videos and text files (srt and log)
- Watching mode: Plays the recorded videos in loop
It has been only tested on a Raspberry Pi Model B running Raspbian.
- Raspberry Pi
- Raspberry Camera Module
- Adafruit Ultimate GPS Breakout
- GPS Antenna - External Active Antenna (Optional)
- 3 LEDs (I use the following colors, you may change to whatever you like)
- Blue -> GPS Fix status
- Green -> Sispro operating mode
- Red -> Script running / Shutting Down / Rebooting
- 3 Resistors
- 2 Momentary Pushbuttons (Normally Open)
- Shutdown
- Reboot
- 1 Switch
- Alternate operating mode
Assuming you have Raspbian installed and internet connection:
- Firmware Update
$ sudo rpi-update
- Update the list of available packages and their versions
$ sudo apt-get update
- Install newer versions of the packages you have
$ sudo apt-get upgrade
- Enable Camera Module
$ sudo raspi-config
- Install dependencies
$ sudo apt-get install python-picamera python3-picamera python-rpi.gpio gpsd gpsd-clients python-gps python-smbus
- GPS Setup
Edit /boot/cmdline.txt - When the Pi is booting all the debug messages are sent to the serial port. This can be useful for some purposes but we need to turn this off to free the port for our own use.
$ sudo nano /boot/cmdline.txt
And change:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
to:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Edit /etc/inittab - To disable the login feature we can run the following command to edit the inittab system file
$ sudo nano /etc/inittab
And change:
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
to:
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
4. Grab the source code
$ cd ~
$ wget https://github.com/vitorbari/sispro.git
- Camera Module Test
$ raspistill -o image.jpg
- GPS Module Test
$ cgps -s
- Start Sispro at boot time (TODO)
- Enable Auto Login
$ sudo nano /etc/inittab
And change:
1:2345:respawn:/sbin/getty 115200 tty1
to:
#1:2345:respawn:/sbin/getty 115200 tty1
Under that line add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
4. Enable HDMI Hotplug
$ sudo nano /boot/config.txt
And change:
hdmi_force_hotplug=0
to:
hdmi_force_hotplug=1
- Add RTC
- Add Inertial sensors
- Add ODB2 Connectivity
- http://picamera.readthedocs.org/en/release-1.8/recipes1.html#recording-over-multiple-files
- https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi?view=all
- https://embeddedcode.wordpress.com/2013/10/18/adding-a-shutdown-button-to-the-raspberry-pi/
If you would like help implementing a new feature or fixing a bug, fork the repo and submit a pull request!