-
Notifications
You must be signed in to change notification settings - Fork 2
Software
The sensors run on a separate Raspberry Pi from the autopilot. These are the instructions for loading this Raspberry.
Most of the software can be downloaded from this site.
Because the programs need to run without a monitor, they need to be started when power is applied to the Raspberry Pi.
The program Monitor.py scans the serial ports (USB ports) looking for NMEA sentence output (the GPS and sonar). The identity of these ports are passed to the USB and Sonar programs for reading data. As data is read, it is passed back to Monitor.py (via a callback function), where it is integrated into a single record, and optionally additional temperature and turbidity data is added.
You need to create a script file that will be called when the Raspberry Pi boots to automatically load the monitoring software.
Create three directories:
- /home/pi/python
- /home/pi/scripts
- /home/pi/Data
- Move the python files from the download into the /home/pi/python directory
- In the /home/pi/scripts directory, create a file named:
Startup.sh
- Change the permissions to executible by Anybody
- Edit the file, adding the following:
/home/pi/python/Monitor.py
- Now edit /etc/rc.local as follows:
- From a terminal, type:
sudo leafpad /etc/rc.local
- on the next to the last line, add the following new line:
python /home/pi/python/Monitor.py