portgenerator.blogg.se

Rv control panel with raspberry pi
Rv control panel with raspberry pi









rv control panel with raspberry pi

#RV CONTROL PANEL WITH RASPBERRY PI SOFTWARE#

The big spike downward is the starter of the engine.Īfter a couple of tests, there was some room for improvement, on the software side mostly. The data in red are raw data, the blue curve is the result of a smoothing process. One terminal is used to hook up the 12v system to monitor, the other is used for calibration, with the voltmeter. Once the prototyping phase is validated, all the components are set on a Slice of PI.

rv control panel with raspberry pi

The data are logged in the file named battery.log, as CSV data. Let it run as long as you want, and stop it with a SIGTERM (Ctrl+C). Prms: ADC Channel:0, tuningADC:973, tuningVolt:12.6 Run the script without the -debug parameter. The voltage ranges from 0.0 V to 13.247482 V for ADC=1023, and produces the following figure. If we use the following calibration parameters: In the case you use only one, we will assume that for 0 ADC, we have 0 Volts. You can use 2 points as above, or one only. The voltage displayed on the screen should match what's read on the voltmeter. Notice the -min and -max parameters, and how they relate to the table above.

rv control panel with raspberry pi

In this example, the voltmeter reads 11.75 Volts when the ADC says 872. Now, turn the potentiometer all the way clockwise, and read the voltmeter: Read the voltmeter: In this example, let's say that it displays 3.75 Volts, when the ADC value is at 289. log= - example -log= (default is battery.log) scale=y|n - example -scale=y (default is n) debug=y|n|yes|no|true|false - example -debug=y (default is n) Turn the potentiometer all the way counter-clockwise











Rv control panel with raspberry pi