ClemensElflein / OpenMower

Let's upgrade cheap off-the-shelf robotic mowers to modern, smart RTK GPS based lawn mowing robots!
Other
4.64k stars 274 forks source link

Improving the ADC #85

Open sraillard opened 5 months ago

sraillard commented 5 months ago

The low level code, running on RPI Pico, is reading 3 analog values:

The ADC seems to be noisy, using a moving average on 10 samples should improve the stability of the measures.

Also, I would be great if ratio can be configured (using UART commands) so calibration can be done for these 3 values (right now, the ratio are fixed in code, and I can observe a noticeable difference in voltage reading, this is especially important for monitoring the battery voltage).