CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Accelerometers and pic

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Gerhard



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

View user's profile Send private message Send e-mail

Accelerometers and pic
PostPosted: Mon Mar 03, 2008 4:40 pm     Reply with quote

Hi.
I need to build a compass with 3 accelerometers on the three different axis and need some advice on which accelerometers would be ideal to use with a PIC16F886 or if i should go to another type of pic. I have read quite a bit on the net but there are so many models available. Please advice on this if someone has already used a certain meter that worked with the microchip pics and in ccs.
Saratoga



Joined: 18 Jan 2006
Posts: 9

View user's profile Send private message

PostPosted: Tue Mar 04, 2008 4:17 am     Reply with quote

Yes.
I have this and work fine:
http://www.ccsinfo.com/forum/viewtopic.php?t=32753&highlight=wii
I made a VisualBasic pc program.The pic send data to serial port ,pc receive this data and draw the movement on the screen
_________________
To Pic Or No To Pic
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Tue Mar 04, 2008 8:29 am     Reply with quote

The answer will be different based on the type of interface used by the accelerometers. I use an analog, buffered, 2-D module from Dimension Engineering (they also sell a 3-D version), with PIC18 CPU's.

If you use an analog accelerometer, it is important that the output impedance is as good or better than the PIC datasheet says. That usually means an op-amp is involved. My products come with or without the accelerometer, so a module works well for me, but the module is really just the accelerometer part, follower op-amps, and filter caps on the outputs to set the bandwidth.

Mark S.
Gerhard



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

View user's profile Send private message Send e-mail

PostPosted: Wed Mar 12, 2008 1:12 pm     Reply with quote

Thanks.
I have never used accelerometers and i am confused as to what type of analog accelerometer to use. The idea is to use 3 meters for the XYZ axis and implement this in such a way that the pic will via rs232 or some other format output the direction from 0 to 360 degrees to another unit. Maybe even display the orientation on a LCD. The acceleration will be measured and differentiated twice to find the displacement in a certain direction. The software will be designed around the basic analog input from the 3 meters but if you have some advice or reference to model numbers or circuits it would be appreciated.
Gerhard



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

View user's profile Send private message Send e-mail

PostPosted: Wed Mar 12, 2008 1:32 pm     Reply with quote

I had a look at the 3 axis meter from dimension engineering and it looks like it will work. I just want to make sure that it will so if somebody has worked with that will i be able to make a compass with that one and display the value on a LCD that indicates the 0-360 degree bearing?
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Thu Mar 13, 2008 3:04 pm     Reply with quote

You should be able to get away with 2-axis accelerometer and 2-axis magnetic sensor. One of the popular 2-axis accelerometers with analog output is Analog Devices ADXL203. It has a sensitivity of 1000mV/g, so it can be read by the PIC's A/D without additional amplification.

- Nick

P.S. You could also post your question here: http://tech.groups.yahoo.com/group/sensorforum
_________________
Read the label, before opening a can of worms.
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Fri Mar 14, 2008 11:54 am     Reply with quote

The need for amplification by itself is not really significant for devices like this, because in order to use it with the PIC you will need to put in an op-amp anyway to bring the output impedance down to the where the PIC needs it.

Mark S.
Gerhard



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

View user's profile Send private message Send e-mail

PostPosted: Sun Mar 16, 2008 2:41 pm     Reply with quote

Thanks Kender.
I ordered the 3 axis acc meter from Dynamic engineering and now i am waiting for it. I also had a look at a digital compass available that uses hall effect magnetic sensing but due to the sensitivity of those magnetic devices to external magnetic fields i decided to go into the acc meter direction. Why would you recomend using 2 magnetic sensors as well?? I don't see why that is required if i need to build the compass. What would their purpose be?
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Tue Mar 18, 2008 1:53 am     Reply with quote

Gerhard wrote:
Why would you recommend using 2 magnetic sensors as well?? I don't see why that is required if i need to build the compass. What would their purpose be?


What are you building: a compass or an inertial measurement unit (IMU)? Where is it going to operate? Is it going to operate in the environment with a lot of interfering magnetic fields?

By the way, here's another good place to brainstorm about your design:http://tech.groups.yahoo.com/group/sensorforum
_________________
Read the label, before opening a can of worms.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group