User Tools

Site Tools


member-projects:m0jqq_-_bpq_for_beginners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
member-projects:m0jqq_-_bpq_for_beginners [2024/12/15 12:27] – [Monitoring a Remote Battery Voltage] m0jqqmember-projects:m0jqq_-_bpq_for_beginners [2024/12/15 12:44] (current) – [Monitoring a Remote Battery Voltage] section added m0jqq
Line 484: Line 484:
 </code> </code>
 Make it executable <code> chmod +x battMonitor.py </code> Make it executable <code> chmod +x battMonitor.py </code>
- + 
 +== Create bash startup script – getBattMonitor.sh == 
 +<code> 
 +nano getBattMonitor.sh 
 + 
 +#!/bin/bash 
 +sudo python3 /home/robin/battMonitor.py 
 +sleep 1 
 +</code> 
 + 
 +Make it executable <code> chmod +x getBattMonitor.sh </code> 
 + 
 + == Create beacon file == 
 + 
 +<code> sudo touch /opt/oarc/bpq/beacon && sudo chown linbpq:linbpq /opt/oarc/bpq/beacon</code>  
 + 
 +Now is the time to test your work. Connect a variable power supply set to less tha 5 volts to the batt+ and Gnd connections of your Arduino and measure the voltage between GND & A0 It should be about one third of your variable power supply voltage. 
 +Start the script with <code> ~/getBattMonitor.sh </code> After a few seconds you should see something like the following... 
 + 
 + 
 + 
 + 
 +a <code> get /opt/oarc/bpq/beacon </code> from a second terminal should match and follow the output at 5 second intervals 
 + 
 + 
member-projects/m0jqq_-_bpq_for_beginners.1734265630.txt.gz · Last modified: 2024/12/15 12:27 by m0jqq