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

Trouble with Gyro

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
24 postsPage 2 of 21, 2
24 postsPage 2 of 21, 2

Post by Pev » Thu Jan 24, 2008 6:53 pm

Post by Pev
Thu Jan 24, 2008 6:53 pm

NVR2FST,

I am guessing the gain is controlled by a pwm input to the gyro via the wire you metioned? And it has no manual override?

Well I guess you could connect it to an empty signal pin for a servo or maybe one of the PWM ports (all sockets share a common ground so the single wire would be fine). If memory serves roboBasic has a SERVO command for addressing individual servo ports by angle and a PWM command for the 3 (I think) PWM ports.

Hope that makes sense

Pev
NVR2FST,

I am guessing the gain is controlled by a pwm input to the gyro via the wire you metioned? And it has no manual override?

Well I guess you could connect it to an empty signal pin for a servo or maybe one of the PWM ports (all sockets share a common ground so the single wire would be fine). If memory serves roboBasic has a SERVO command for addressing individual servo ports by angle and a PWM command for the 3 (I think) PWM ports.

Hope that makes sense

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 NVR2FST » Thu Jan 24, 2008 7:12 pm

Post by NVR2FST
Thu Jan 24, 2008 7:12 pm

On a heli it basically lets you control the Gain from the radio as long as you have enough channels on your radio and receiver.
On a heli it basically lets you control the Gain from the radio as long as you have enough channels on your radio and receiver.
I think I know everything.............at least thats what everybody tells me.
NVR2FST
Savvy Roboteer
Savvy Roboteer
Posts: 54
Joined: Sun Jan 06, 2008 10:28 pm
Location: Maryland, USA

Post by Pev » Thu Jan 24, 2008 7:32 pm

Post by Pev
Thu Jan 24, 2008 7:32 pm

NVR2FST wrote:On a heli it basically lets you control the Gain from the radio as long as you have enough channels on your radio and receiver.


Ah ok so I guess that gain signal wire does accept some type of PWM or Servo type signal. I have certainly connected a non-digital servo to my RN-1 and moved it using the servo command. Might be worth just hooking it up to an empty servo signal pin and typing it. you can set the servo value by doing something like SERVO {port no}, {Angle} I think. I think the Angle values are something like 10 through to 190. Would be cool if you could control the gyro gain via code.

Pev
NVR2FST wrote:On a heli it basically lets you control the Gain from the radio as long as you have enough channels on your radio and receiver.


Ah ok so I guess that gain signal wire does accept some type of PWM or Servo type signal. I have certainly connected a non-digital servo to my RN-1 and moved it using the servo command. Might be worth just hooking it up to an empty servo signal pin and typing it. you can set the servo value by doing something like SERVO {port no}, {Angle} I think. I think the Angle values are something like 10 through to 190. Would be cool if you could control the gyro gain via code.

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 Pev » Thu Jan 24, 2008 7:42 pm

Post by Pev
Thu Jan 24, 2008 7:42 pm

Hmmm just been googling these remote gain controlled gyro's. Very cool. Could be good to be able to adjust the gyro gain on the fly in code...................
Hmmm just been googling these remote gain controlled gyro's. Very cool. Could be good to be able to adjust the gyro gain on the fly in code...................
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 NVR2FST » Thu Jan 24, 2008 7:50 pm

Post by NVR2FST
Thu Jan 24, 2008 7:50 pm

Thanks. I will try that.....if I get this gyro to work. As I said earlier in the post I dont have it working as of yet. It may not work at all. Even if it does not work directly connected in the normal fashion, It may work through the receiver for my radio, which would allow gain adjustment through my radio as it would with the heli. It is my thinking that the gyro will be controlled through the receiver. Not just gain but instead of being in line with code, no code may be needed at all. It may be processed through the radio instead. Run the gyro in line with the receiver instead. Make any sense to you? Sound possible?
Thanks. I will try that.....if I get this gyro to work. As I said earlier in the post I dont have it working as of yet. It may not work at all. Even if it does not work directly connected in the normal fashion, It may work through the receiver for my radio, which would allow gain adjustment through my radio as it would with the heli. It is my thinking that the gyro will be controlled through the receiver. Not just gain but instead of being in line with code, no code may be needed at all. It may be processed through the radio instead. Run the gyro in line with the receiver instead. Make any sense to you? Sound possible?
I think I know everything.............at least thats what everybody tells me.
NVR2FST
Savvy Roboteer
Savvy Roboteer
Posts: 54
Joined: Sun Jan 06, 2008 10:28 pm
Location: Maryland, USA

Post by Pev » Thu Jan 24, 2008 8:18 pm

Post by Pev
Thu Jan 24, 2008 8:18 pm

I think the biggest issue with running it in-line with the receiver would be getting it to action the servos. By connecting it to the AD ports and using robo Basic you can effect multiple servos and control the mixing of the impact of the gyro correction to individual ones. Thats kind of what you need to stabalise the balance. Not sure you could do that in-line with the reciever but I am no radio expert.

Even if it is connected to the processor board in the RN-1 the idea of controlling the gain via the radio sounds very doable and very useful too.

Pev
I think the biggest issue with running it in-line with the receiver would be getting it to action the servos. By connecting it to the AD ports and using robo Basic you can effect multiple servos and control the mixing of the impact of the gyro correction to individual ones. Thats kind of what you need to stabalise the balance. Not sure you could do that in-line with the reciever but I am no radio expert.

Even if it is connected to the processor board in the RN-1 the idea of controlling the gain via the radio sounds very doable and very useful too.

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 visuvius » Fri Jan 25, 2008 12:30 am

Post by visuvius
Fri Jan 25, 2008 12:30 am

i-Bot wrote:You can check if the gyro works by putting it in line with one of the servos. Input to Gyro from C3024, output of Gyro to a single servo. Then servo should respond to movement of the Gyro.

If this works Gyro is OK, but probably not compatible.

The correct zero setting of the Gyro for the Robonova is often quite a way from the setting which gives red/green zero.


Sorry if this is a dumb question but when I try this, which AD port should I connect the Gyro to?
i-Bot wrote:You can check if the gyro works by putting it in line with one of the servos. Input to Gyro from C3024, output of Gyro to a single servo. Then servo should respond to movement of the Gyro.

If this works Gyro is OK, but probably not compatible.

The correct zero setting of the Gyro for the Robonova is often quite a way from the setting which gives red/green zero.


Sorry if this is a dumb question but when I try this, which AD port should I connect the Gyro to?
visuvius
Robot Builder
Robot Builder
Posts: 23
Joined: Mon Jan 07, 2008 11:33 pm

Post by NVR2FST » Fri Jan 25, 2008 12:34 am

Post by NVR2FST
Fri Jan 25, 2008 12:34 am

just connect the gyro to 0 and the output to a servo. I beleive this will give you something
just connect the gyro to 0 and the output to a servo. I beleive this will give you something
I think I know everything.............at least thats what everybody tells me.
NVR2FST
Savvy Roboteer
Savvy Roboteer
Posts: 54
Joined: Sun Jan 06, 2008 10:28 pm
Location: Maryland, USA

Post by visuvius » Fri Jan 25, 2008 3:49 am

Post by visuvius
Fri Jan 25, 2008 3:49 am

Okay I feel like a jackass :oops:

Even though I double checked my connections twice, I had it wrong. Heres the thing, I had connected properly to AD0 but not to AD4. I thought it was the fourth pin from the left, when its the fourth pin in from the right. The labels on the board weren't helpful at all. When I looked again at the picture on theoddrobot.com, I realized that I had it in the wrong AD port.

When I connected it, he started to shake like crazy. Exactly what I wanted. From there I adjusted the gain and now I'm playin around with it to get it just right.

Thanks again for everyones help!
Okay I feel like a jackass :oops:

Even though I double checked my connections twice, I had it wrong. Heres the thing, I had connected properly to AD0 but not to AD4. I thought it was the fourth pin from the left, when its the fourth pin in from the right. The labels on the board weren't helpful at all. When I looked again at the picture on theoddrobot.com, I realized that I had it in the wrong AD port.

When I connected it, he started to shake like crazy. Exactly what I wanted. From there I adjusted the gain and now I'm playin around with it to get it just right.

Thanks again for everyones help!
visuvius
Robot Builder
Robot Builder
Posts: 23
Joined: Mon Jan 07, 2008 11:33 pm

Previous
24 postsPage 2 of 21, 2
24 postsPage 2 of 21, 2