Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Newbie Question - Tilt, Accelerometer, Gyro???

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
5 postsPage 1 of 1
5 postsPage 1 of 1

Newbie Question - Tilt, Accelerometer, Gyro???

Post by Orsky » Tue Jan 09, 2007 9:23 pm

Post by Orsky
Tue Jan 09, 2007 9:23 pm

Apologies if this is a really dumb question. I would like to build an RN1 that will not topple over and if it does it should be able to pick itself up. I've been poking around the forum and am now more confused than when I began. It appears to me that all the aforementioned devices will provide some soft of solution. Do I need all of them, one of them, a pair them etc and what are the benefits of each?

Thanks in advance and I hope this doesnt sound too noddy.

Cheers

Tony
Apologies if this is a really dumb question. I would like to build an RN1 that will not topple over and if it does it should be able to pick itself up. I've been poking around the forum and am now more confused than when I began. It appears to me that all the aforementioned devices will provide some soft of solution. Do I need all of them, one of them, a pair them etc and what are the benefits of each?

Thanks in advance and I hope this doesnt sound too noddy.

Cheers

Tony
Orsky
Newbie
Newbie
User avatar
Posts: 1
Joined: Sun Jan 07, 2007 1:00 am

Post by hivemind » Tue Jan 09, 2007 10:29 pm

Post by hivemind
Tue Jan 09, 2007 10:29 pm

Accelerometer measures gravity+outside forces (so it will measure which way your robot is tilted and perform the task you seem to want). The gyro measures rate of change. I have both in my bot because they are both handy.

I use the accelerometer to help stand up or balance with slow movements, and the gyro to help stabilize faster movements.

-Hive
Accelerometer measures gravity+outside forces (so it will measure which way your robot is tilted and perform the task you seem to want). The gyro measures rate of change. I have both in my bot because they are both handy.

I use the accelerometer to help stand up or balance with slow movements, and the gyro to help stabilize faster movements.

-Hive
hivemind
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 211
Joined: Sat Jul 01, 2006 1:00 am
Location: between my computer and robot.

Post by Pev » Tue Jan 09, 2007 10:43 pm

Post by Pev
Tue Jan 09, 2007 10:43 pm

I was working on a new controller recently and disconnected my gyro. You forget how much these things help........

I'd say both gyros and accelerometers have their place although I just use a gyro at the moment

Pev
I was working on a new controller recently and disconnected my gyro. You forget how much these things help........

I'd say both gyros and accelerometers have their place although I just use a gyro at the moment

Pev
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK

Post by mthomson » Wed Jan 10, 2007 1:31 pm

Post by mthomson
Wed Jan 10, 2007 1:31 pm

I'll chime in with another noob question about this.

How do you tie in the gyro to the controller and what code needs to be added or changed?

thanks,
mark
I'll chime in with another noob question about this.

How do you tie in the gyro to the controller and what code needs to be added or changed?

thanks,
mark
mthomson
Robot Builder
Robot Builder
User avatar
Posts: 18
Joined: Sat Dec 23, 2006 1:00 am
Location: Indiana US

Post by i-Bot » Wed Jan 10, 2007 2:57 pm

Post by i-Bot
Wed Jan 10, 2007 2:57 pm

I think you are interested in the software connections rather than hardware. There are examples of the hardware connections available. in other posts

For the software part the gyro code is integral to the motion engine within the RoboNova firmware. When Gyros are enables they are read every 16 ms. The result from the Gyro is used to effect the servos based on the values you set in the Gyroset (type and no of Gyro), Gyrodir(direction of effect), and Gyrosense( degree of effect). There is no program access to the Gyro outputs unless you peek the memory locations containing the readings. Thus gyro operation after setup is autonomous of the robobasic generated code.

Accelerometers need to be connected to analog inputs and are read by Robobasic generated code. This is slower, and there is no direct control of the servos.
I think you are interested in the software connections rather than hardware. There are examples of the hardware connections available. in other posts

For the software part the gyro code is integral to the motion engine within the RoboNova firmware. When Gyros are enables they are read every 16 ms. The result from the Gyro is used to effect the servos based on the values you set in the Gyroset (type and no of Gyro), Gyrodir(direction of effect), and Gyrosense( degree of effect). There is no program access to the Gyro outputs unless you peek the memory locations containing the readings. Thus gyro operation after setup is autonomous of the robobasic generated code.

Accelerometers need to be connected to analog inputs and are read by Robobasic generated code. This is slower, and there is no direct control of the servos.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am


5 postsPage 1 of 1
5 postsPage 1 of 1