- This topic has 3 replies, 3 voices, and was last updated 11 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › how to interface ADXL335 ACCELEROMETER with AVR microcontroller?(Atmega32)
The 3 pins X,Y,Z ARE CONNECTED TO 40,39,38 PINS OF atmega32.when the accelerometer is pushed in X- direction, the LED should glow indicating that adxl 335 is pushed in X direction n the other LED should glow if the accelerometer is pushed in Y direction. samething is happened in Z direction… i want the code for this to happen.. please do help
thank you
the Accelerometer will give o/p the value(voltage) will be in analog form you need to use ADC, since the avr microcontroller has inbult ADC you can use that…. here i am sending you th elink for AVR ADC
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit
since u have 3 values you need to select one channel at time… compare the value through you calibrated one and you can find the direction/till,ect for you object….
nice project all the bst….
thank you:)
Can somebody please provide me the header file “adxl335.h”?
My e-mail id is [email protected]. I would really appreciate the assistance.