Dual Battery monitor on Proffieboard v1.5

My friend and I bought a couple Proffieboard v1.5 's quite some time back and only now are finally using them. :stuck_out_tongue: So far it’s going well except I wanted to know if it is possible to use an external voltage divider circuit connected to a spare Data pin to monitor the battery capacity. We are using two 26500 batteries in series with a DC-DC converter (BRNS20 Cosel) to deliver a constant 3.7V to BATT+. We are using Data1/ID for the WS2811 blade and Data4 for WS2811 crystal. Data 2, 3, 5 are free. Do any of these support analog in for measuring battery voltage via external divider?

The answer can be found in this file:

Searching for PIN_ATTR_ADC, we see that the following pins can work with analogRead(): 14, 16, 17, 18, 19.

14 is vtest, already used for battery monitoring
16 is data1, which could be used for this
17 is data4, which could be used for this
18 is LED2, but connected to the FET, not the pad
19 is LED3, also connected to the FET, not the pad

So, none of the pads you currently have free are analogRead-capable. However, you can move the data1 and/or data4 wires to another pin to make it work. You’ll also need to make some code changes of course, but I can help with that if you need it.

Thanks! We moved the crystal from Data4 to Data2 successfully which freed up Data4 to be used for an external voltage divider. We’re still ironing out the custom code for that but so far it is looking promising as we have a working battery level, it just needs some fine tuning to be more accurate.