Page 1 of 2

PIC suitable for IMU

PostPosted: Mon Jul 20, 2009 11:22 pm
by aces
which PIC is suitable for IMU.. how to interface it?
if possible is there any link that will help me with my project that uses IMU..

Re: PIC suitable for IMU

PostPosted: Tue Jul 21, 2009 2:17 pm
by sich
Most of the IMU sensor outputs analog value, so a PIC with high resolution ADC is needed. dsPIC is highly recommended because of the speed factor but actually any PIC will do. All depends on the processing algorithm u wish to implement on the data obtained from IMU. A more complex algorithm requires more powerful uC to give the result in minimum time. Moreover, uC with floating point math ability might be another factor in choosing the right uC. Once again, it depends on the process u wish to carry out.

Actually i'm not familiar with this topic. Just hope that I can give u some ideas on what to google in the internet.

Re: PIC suitable for IMU

PostPosted: Wed Jul 22, 2009 12:10 am
by aces
so is PIC 16f877 suitable?

Re: PIC suitable for IMU

PostPosted: Fri Jul 24, 2009 10:29 am
by ober
PIC16F877 might be suitable as it has ADC to capture the response from IMU. However, sich has the point, you must find out what algorithm you want to us on the IMU, also the application. If you need it to process in very fast speed, PIC16F877 is not suitable. You might get faster processing speed microcontroller such as PIC18 or dsPIC.

Re: PIC suitable for IMU

PostPosted: Sat Jul 25, 2009 11:32 am
by aces
the output of imu.. is it the fusion value of both sensor or separate value

Re: PIC suitable for IMU

PostPosted: Tue Jul 28, 2009 6:07 pm
by aces
i already bought IMU 5 DOF from cytron...
im going to use it for my helicopter. i'm going to use PIC16f877, is it ok?

Re: PIC suitable for IMU

PostPosted: Tue Jul 28, 2009 7:31 pm
by ober
aces WROTE:the output of imu.. is it the fusion value of both sensor or separate value


No, there are 5 output from the 5 degree IMU. There are from 3 axis accelerometer and 2 axis of Gyro. You need to process the information yourself. Thus an algorithm (filtering) is needed on your processor or microcontroller.

Re: PIC suitable for IMU

PostPosted: Tue Jul 28, 2009 7:32 pm
by ober
aces WROTE:i already bought IMU 5 DOF from cytron...
im going to use it for my helicopter. i'm going to use PIC16f877, is it ok?


As what I have replied, depending on what is your application, PIC16F877 might not have enough processing speed. You will need to consider other input/output needed to control the helicopter.

Re: PIC suitable for IMU

PostPosted: Tue Jul 28, 2009 8:14 pm
by aces
where can i find the PIC speed? is it stated in the datashee?
can you recommended the suitable PIC that work with my project?

Re: PIC suitable for IMU

PostPosted: Wed Jul 29, 2009 12:53 pm
by robosang
aces WROTE:where can i find the PIC speed? is it stated in the datashee?
can you recommended the suitable PIC that work with my project?


Is in the datasheet lah brother, the maximum speed of your PIC is the maximum Crystal divide by 4. For example, PIC16F877A have max speed of 20MHz/4 = 5 MHz. If you are not sure which PIC to use, use the maximum that it has, PIC18F have higher speed up to 48MHz/4 = 12MHz. Or you can try dsPIC which can offer speed up to 120MHz/4 = 30MHz, but that is 16 bits processing.

Still like what Ober say, it depend on your application.