Troubleshooting Hardware

cancel
Showing results for 
Search instead for 
Did you mean: 

Roborio2 Analog ports not working

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.

 

 

0 Kudos
Message 1 of 4
(1,007 Views)

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?

0 Kudos
Message 2 of 4
(974 Views)

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.

 

0 Kudos
Message 3 of 4
(966 Views)

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?

0 Kudos
Message 4 of 4
(963 Views)