|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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!
|
|
#2
|
||||
|
||||
|
Re: accelerometers and gyroscope to control arm?
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
Re: accelerometers and gyroscope to control arm?
Quote:
.-Kevin Last edited by Kevin Watson : 10-02-2008 at 15:53. Reason: Fix my ambiguous posting. |
|
#5
|
||||
|
||||
|
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.
![]() |
|
#6
|
||||
|
||||
|
Re: accelerometers and gyroscope to control arm?
Quote:
-Kevin |
|
#7
|
||||
|
||||
|
Re: accelerometers and gyroscope to control arm?
Quote:
|
|
#8
|
||||
|
||||
|
Re: accelerometers and gyroscope to control arm?
Quote:
|
|
#9
|
|||
|
|||
|
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.
|
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
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!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accelerometer and Gyroscope freezing in EasyC | Jennymcf | Programming | 0 | 01-02-2008 22:57 |
| pic: 1625's arm control | Aren_Hill | Extra Discussion | 9 | 15-10-2007 11:55 |
| P.I.D. Control for the arm | skibum2490 | Programming | 8 | 27-02-2007 11:21 |
| Slave Control Arm | aaronD341 | Control System | 1 | 26-04-2005 17:13 |
| 2-Segment Arm Control | Orborde | Programming | 1 | 20-01-2005 01:40 |