All posts by sagunms

Geekily, my background is in Robotics and Automation and Electronics Engineering. Also, a Software Developer. Musically, I'm into guitars and piano, and I listen to virtually any genre, you name it! Artistically, I like scribbling, doodling and sketching portraits. I love the hit of adrenaline when I jump off a cliff, ropes attached of course. :D I'm just a curious hacker and a caffeinated philomath...

Tilt Sensing using MMA7260Q 3-Axis Accelerometer and ATMega32 microcontroller

I had previously done an accelerometer controlled robot and so here’s the sufficiently commented code for it.  This project was done in CodeVisionAVR however, it can easily be done in AVRGCC. In this project, when the ATmega32 starts, it auto-calibrates, the accelerometer center position as the orientation you had at the beginning. On tiling the accelerometer board, you can move the robot front, back, left, right or stop. very simple! the outputs are driven to both L293B h-bridge as well as 16×2 LCD. Actually the total project i’m doing is a far complex one so this is just an accelerometer implementation in Mega32…

Continue reading Tilt Sensing using MMA7260Q 3-Axis Accelerometer and ATMega32 microcontroller