04-10-2023 09:38 AM
At our event last week our analog ports were reading infinity and - infinity. We ending out swapping it out. We believe the Roborio we purchased on September 29 2022 is defective.
04-11-2023 09:22 AM
Hi Marcusf15780, thanks for posting on the forums.
I'm Matthew with NI.
What programming language are you using?
Are you able to deploy a basic analog-read example?
04-12-2023 09:16 AM
We are using Java. We did read off the Rio and got infinity on one analog and - infinity on the other. Without a change to anything but the rio everything worked fine after the change.
04-12-2023 09:33 AM
Can you deploy a bare-minimum example (like this one, https://github.com/wpilibsuite/allwpilib/blob/main/wpilibjExamples/src/main/java/edu/wpi/first/wpili... , but go ahead and strip out the motor from that example and console log the values from the analog read.)
Viewing the console logs on the dashboard, what does it return?
Can you put a jumper between the AI pin and 5v? ground? -> what does it log then?