Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to convert accelerometer output to digital value?

Status
Not open for further replies.

yantheman

Newbie level 6
Joined
May 2, 2006
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,399
Accelerometer output

Hey, need some help. I connected the X and Y output of the accelerometer to the RE0 and RE1 of PIC18F452. So how do I read in the analog output of these two axis and convert it to digital value ?
 

Re: Accelerometer output

Check out with the accelerometer's data sheet whether it requires a filter between its output and PIC's ADC input ..
In most cases you will need a LPF (low-pass filter) which will limit the band to whatever you require .. see example below ..
Also, in the accelerometer's data sheet you should find data on how many Volts per "g" it outputs ..

Regards,
IanP
 

Re: Accelerometer output

Yes, I knew about it and it all done. I just want to know how do i read the analog output.
 

Re: Accelerometer output

What kind of accelerometer are you using?

Output signal is voltage or current? Perhaps you have to convert current to voltage to get a valid measurement.

Which are your measurement range requirements and the accelerometer's sensitivity? Perhaps you have to amplify the output of the accelerometer.

Are you asking how convert the A/D converter digital readout to a valid acceleration value?

Are you asking how PIC18F452's A/D converter works?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top