![]() |
accelerometers and gyroscope to control arm?
Hello all. How can I use accelerometers to keep a robot's arm parallel to the ground? My initial thought process was to use the accelerometers to measure acceleration due to gravity, and if it felt any, then make the motors move the arm the opposite way. Does this seem about right? And can this be done with one accelerometer? Thanks in advance!
|
Re: accelerometers and gyroscope to control arm?
Quote:
-Kevin |
Re: accelerometers and gyroscope to control arm?
Have you considered using a potentiometer instead? You could mount one on the pivot point on your arm, and use a PID loop to get it to be level by default. I would think this would be easier and more accurate than an accelerometer.
|
Re: accelerometers and gyroscope to control arm?
Quote:
-Kevin |
Re: accelerometers and gyroscope to control arm?
We have been trying to mount a pot on the arm for a long time, and are finding it nearly impossible. I think we are going to have to go with the potentiometer though, after just realizing that the accelerometer is going to measure the acceleration of the entire robot also, if I set it up this way.:(
|
Re: accelerometers and gyroscope to control arm?
Quote:
-Kevin |
Re: accelerometers and gyroscope to control arm?
Quote:
|
Re: accelerometers and gyroscope to control arm?
Quote:
|
Re: accelerometers and gyroscope to control arm?
Quadrature shaft encoders can measure direction as well as distance. There are many suppliers for shaft encoders, pretty much any large electronics supplier will carry them, as well as some specialty companies.
|
Re: accelerometers and gyroscope to control arm?
Hey,
I suggest using an accel & gyro so as to correct for the linear acceleration. Kinda like we did on the DIY Segway (http://web.mit.edu/first/segway/)... You can even view our code. Then again it might not work as well for this. It's like as Kevin suggested: Quote:
Although if anybody has an extra gyro, we need one, ours is broken and we want to use it. Just a heads up, as we've already posted in CD-swap. We can probably trade our accel for your gyro if you wanna do the 2-accel method. |
Re: accelerometers and gyroscope to control arm?
Why not use an absolute or even an incremental encoder to monitor the position of the arm? Actually, the potentiometer might be the simplest idea, but since I didn't see anything about an eoncoder...decided to mention it. On the other hand, if you're using ferrous metal gears on your arm you could use the GTSs too!
|
| All times are GMT -5. The time now is 23:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi