3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Angle measurement using gyro, accelerometer and Arduino

Angle measurement using gyro, accelerometer and Arduino
The device is a rough prototype of what will eventually become a self balance robot, this is the second part of the hole thing (read accelerometer and control a motor to self balance). The first part with only the gyro can be found here.
On this instructable we will measure the angle using both gyro and accelerometer, and using a technique to merge both sensor to get a smooth signal. The technique is called "complementary filter".

previous
 
Remove these adsRemove these ads by Signing Up
 

Step 1What we gonna need:

What we gonna need:
«
  • DSC05027.JPG
  • DSC05257.JPG
  • DSC05251.JPG
  • DSC05252.JPG
Some part can be replace, and some modification at the code have to be made to fit your hardware.
On this project we will use:
- Breadboard
- Microcontroller, I used the Arduinoboard
- Wire
- Jumper Wires
- Gyroscope XV-8100
- Nunchuck Wii (for the accelerometer)
- Nunchuck Wii adapter for Arduino
« Previous StepDownload PDFView All StepsNext Step »
13 comments
Feb 11, 2012. 1:26 PMontreus says:
Desculpe-me, é que estou construindo um bicoptero e estou com um problema no equlibrio de todo o sistema, estudando seu codigo: angle_for_instructable.pde
Não vi nenhuma linha para a execução dos motores que vc usou no seu robô.
estes comandos estão em um outro arquivo a parte?
Obrigado pela atenção.
Mar 4, 2011. 7:12 PMjgeidl says:
The code link does not link to a .rar but to a .tmp file. Is the code link available somewhere else?

Thanks,

Jim
Jan 27, 2011. 10:53 PMvivekchopra says:
i need to build a human body sensor using an accelerometer and a gyroscope........and i am gonna use labVIEW as software for analysis.....can you please help me with the microcontroller part........should i go with lpc2138???

thanks
Jan 5, 2011. 5:14 PMskeleton1102 says:
Is there any information about how that formula is derived, because I hate using things i dont fully understand
Jan 15, 2011. 7:16 AMskeleton1102 says:
I mean the one to calculate the angle using accelerometers.
Nov 12, 2010. 5:42 AMpaolo.mosna says:
Sorry If i bother you but where can I buy the gyroscope device you used in your realization?
May 17, 2010. 1:53 PMAccentrix says:
Thanks for the explanation. I was waiting for someone to do this.
Nov 2, 2009. 7:28 PMWyoJustin says:
Thanks, I'll need this for my next project.

Justin
Sep 14, 2009. 2:46 AMgellis3000 says:
When I try to download the .rar, all I get is a .tmp file. I have tried 3 different browsers, how does this work?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
31
Followers
5
Author:otaviousp