I am having some troubles with reading analog values with my Electron.
I am attempting to read voltages from 12V batteries though the ADC pins on an Electron. The input signals are reduced though voltage dividers to keep them under 3.3V. I have also added 3.3v zener diodes to protect the Electron against larger voltages. At first, my hardware worked correctly, so I encased the Electron and other circuitry in epoxy to weatherproof it.
Now that my Electron is now inaccessible, it has started reporting values much lower than expected. Two of the channels (B3 and B2) read and report a 5V signal correctly, but report only 8V for a 12V signal. The remaining channels all consistently return values much lower than what are being applied.
I am sure my software and math is not causing the problems, as it is quite basic and has worked in the past.
At this point, I have accepted that my Electron or other hardware is faulty and because it is encased in epoxy, is dead forever. I am wondering if anyone has ideas as to why my ADC values are now incorrect or if anyone has had luck encasing their Electron’s in epoxy.