|
Re: HELP: analog input
Like i said before...its connected CORRECTLY...
There is another problem...
Black goes to left side of potentiometer
Red goes to its right leg
and white goes to the middle one...
and they connect to the analog inputs correctly
We have measured voltages between red and white legs, and it shows inputs from 0 to 4.95V liniarically to the rotation i make...
Here's our code:
printf("%u",Get_Analog_Value(rc_ana_in01));
does not work with %d or %u....
could you show me the code of Get_Analog_value...perhaps the problem we have has to with that function...
__________________
My FRC record: 10 Years,FTA (2008-9), 3 Teams(1947,2669,3211).3 RCA, 1 Championship EI(2016), 1 Divisional finalist (2016), 1 Regional winner.
Israeli 2016 Volunteer of the year.
Last edited by Tottanka : 15-02-2007 at 11:52.
|