Hitec HG-R01 Robot Gyro
GeorgeCollins
Posts: 132
Has anyone used a Hitec HG-R01 Gyro?
www.robotshop.us/hitec-hg-r01-robot-gyro-3.html
I think it is made for RC helicopters, but a single axis gyro with a pulse width out is very appealing to me. I have been using a HB-55 compass on my smaller quadruped, but apparently the size of the motors or the wiring of the larger quad is causing a lot of magnetic interference. A gyro would allow me to keep the quad on a straight line. My biggest problem in the walker race at robogames was keeping my walker on a straight line over uneven ground!
Has anyone used one of these? I googled for sample code but could not find any. If anyone has used it with a prop, or a stamp, it would be very helpful to know, particularly if you have a code example.
Thanks,
George
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
www.robotshop.us/hitec-hg-r01-robot-gyro-3.html
I think it is made for RC helicopters, but a single axis gyro with a pulse width out is very appealing to me. I have been using a HB-55 compass on my smaller quadruped, but apparently the size of the motors or the wiring of the larger quad is causing a lot of magnetic interference. A gyro would allow me to keep the quad on a straight line. My biggest problem in the walker race at robogames was keeping my walker on a straight line over uneven ground!
Has anyone used one of these? I googled for sample code but could not find any. If anyone has used it with a prop, or a stamp, it would be very helpful to know, particularly if you have a code example.
Thanks,
George
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
store.diydrones.com/ProductDetails.asp?ProductCode=BR-0005-10
I notice that their is a GWS PG-03 gyro that is very similar, and cheaper, that a guy named "Ole Man Earl" here says he has used on his bots. At least that would be one that someone tried successfully.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
My first impression is that the gyro is very sensitive to small movements. That's probably great for balancing a two wheeled robot, but I am not sure how well it will work at maintaining a bearing on a lurching quadruped. Well I have my project to find out!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
You could do this in the background or foreground with only one cog. A cog at 80MHz can do 20 million instructions, so timing and pulsing at the same time is no problem. You could also probably use counters to automate the process.
As I experiment more I am getting hopeful that using the gyro may work for logging heading. My initial mistake was to treat the variance in pulse width like a first order derivitive of changes in heading instead of a second order one. In other words-- and in case I am saying this incorrectsly-- I expected a nudge to the left to cuase a variance in pulse width corresponding to the change in heading. The change in pulse width is really the angular acceleration. Since a walking robot never just spins around, every angular acceleration is matched by an agular deceleration. So finding the heading will require measuring the time and direction of acceleration. It may not end up being that accurate with all the shaking on the walker, but we will see.
Thanks SLRM for your advice.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots