EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to interface ADXL335 ACCELEROMETER with AVR microcontroller?(Atmega32)

how to interface ADXL335 ACCELEROMETER with AVR microcontroller?(Atmega32)

|

Microcontroller › AVR › how to interface ADXL335 ACCELEROMETER with AVR microcontroller?(Atmega32)

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 7 months ago by akhil.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 4, 2011 at 4:44 pm #848
    gouthami
    Participant

    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

    April 5, 2011 at 4:22 am #5889
    dagakshay
    Participant

    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….

    April 5, 2011 at 4:42 am #5893
    gouthami
    Participant

    thank you:)

    July 1, 2013 at 1:42 pm #10072
    akhil
    Participant

    Can somebody please provide me the header file “adxl335.h”?

    My e-mail id is [email protected]. I would really appreciate the assistance.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Buffer design? February 9, 2026
  • BPF February 9, 2026
  • To couple or decouple February 9, 2026
  • ANOTHER OLD PROJECT REDO February 9, 2026
  • Op amp shock February 9, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise