In my current project, I am noticing ADC values that are unexpectedly low. When 3.3V is applied to the A2 pin, one Boron I have reads it as 4027 and the other reads it as 4000. I dumbed down the entire project and connected the D2 pin to the A2 pin. When I set the D2 pin as HIGH and read it through the A2 pin, the ADC averages around 4000. A multimeter shows it at 3.3V so I am puzzled. Here is my code:
Try removing the pinMode(A2, INPUT_PULLDOWN) line.
When you attach an internal pull-down resistor you shouldn’t be surprised to sense a pulled-down value
so I have plugged in a LiPO and USB and it is still reading around 4030. I swapped out and tried another Boron and now get values around 4060?
0000051476 [app] INFO: ADC: 4070
0000058478 [app] INFO: ADC: 4060
0000065479 [app] INFO: ADC: 4062
0000072481 [app] INFO: ADC: 4062
0000079481 [app] INFO: ADC: 4057
0000086483 [app] INFO: ADC: 4060
0000093484 [app] INFO: ADC: 4057
0000100485 [app] INFO: ADC: 4061
0000107487 [app] INFO: ADC: 4059
0000114488 [app] INFO: ADC: 4058
0000121490 [app] INFO: ADC: 4060
0000128491 [app] INFO: ADC: 4057
0000135492 [app] INFO: ADC: 4062
Do I need to make some sort of adjustment to factor for this difference? The voltage coming into the pin is still 3.3V.
That shouldn't be required.
Have you tested with my code? I can't make any of my Gen3 devices report anything but 4095 (occasionally 4094) with that code and a D2-A2 bridge
Yep I am using your code. I have 3 Borons doing the same thing. BUT I tested the same setup and code on an Argon and it works fine, 4095. Its hard for me to believe I have 3 bad Borons?
I see you have no antenna attached - if you have the cell module on you should not do that. These modules are not meant to be running without load on the output stage.
Hi @Particle9 - sorry to be getting to you so late, had a break for the holiday weekend (thanks for the ping, @ScruffR). I can’t reproduce this on my own device, so it looks like something must be up hardware-wise. Would you mind creating a support ticket (support.particle.io) and we can determine whether or not a replacement is in order?
@marekparticle, I’m reproducing this with “replacement” Boron’s that were recently shipped to me.
Note: This ADC error isn’t a concern for me personally, but I wanted you to be aware.
Do you have a Boron from a recent production run to try ?
I switched to A3 Pin, and disconnected the Li-Po during the test, no significant change: