Page 2 of 2
Re: adc value for IMU
Posted:
Sun Jan 24, 2010 6:04 pm
by aurora
Have you check the voltage out from the IMU using multimeter?
Could it be the USART communication problem? Try disable the analog in accelero_x, y and z, and substitute with constant. If it's ok, try using a potentiometer as voltage divider and see if it read properly.
Re: adc value for IMU
Posted:
Tue Jan 26, 2010 4:20 pm
by A380
May I know what compiler you use and what library you use to call this function --> set_ADC_channel(5);?
My advise here, may be you can use a potential meter or rheostat to test your ADC is working or not.
Re: adc value for IMU
Posted:
Thu Jan 28, 2010 9:59 pm
by watisthis
i already try using pot.meter, same result
using PCW compiler,
the library for the function is in device->Pic16f877a
Re: adc value for IMU
Posted:
Fri Jan 29, 2010 12:56 am
by aurora
From the code, don't think there is any problem with it. No warning/error message right?
I'm using PCW compiler also. Haven't had any problem reading with my project. I use 16-pin type LCD, not serial, I'm using 8-bit though...
Try sending fix value to your lcd this time. Let accelero_x, y, z be some value, say 1, 501, 1001. See if you can read in your LCD.