Quote:
|
Originally Posted by incognito_NICK
I am trying to look at the values i get with a potentiometer through the dashboard, but my attempts are ending in failure.
So is there some special code that have to put in so that i can read it or is it because i have it plugged in the wrong spot.
anyone know the solution?
|
on your pot you should have 3 pins, i blieve that the two outer ones should be connected to the + and - pins of the analog inputs and the middle one to the signal pin. (not infront of the robot right now...)
once you do that use this code: (assuming you connected it to analog input #1)
Code:
pot1=Get_Analog_Value(rc_ana_in01);
printf("pot1=%d \r ",pot1);
i'm not sure if you can read the analog inputs with the dashboard....
-Leav