RAKWireless / RAK5205-WisTrio-LoRa

RAK5205-WisTrio-LoRa :GPS ,BME680,LIS3DH,LoRaWAN1.0.2,ARM Cortex-M3 STM32L1
9 stars 6 forks source link

Measure Solar input #13

Open killengage opened 5 years ago

killengage commented 5 years ago

Is it possible to measure the solar input and plot it via Cayenne ?

4m1g0 commented 5 years ago

In the schema provided in the datasheet of the board there is a voltage divisor attached to pin PA_1 (CHG) which in theory could be used to measure the input voltage since it's an ADC input: https://downloads.rakwireless.com/en/LoRa/WisTrio-LoRa-RAK5205/Hardware_Specification/RAK5205_Schematic_20181018.pdf

However I've not seen it used in the firmware... Maybe you could try to modify the code and test if it works. You can track the BAT_LEVEL_PIN through the code to use it as an example, as they do read the batery voltage using another ADC.

If you try it or find something please share the results.