by Pev » Tue Apr 04, 2006 9:07 am
by Pev
Tue Apr 04, 2006 9:07 am
Morbeious wrote:Eh, Pev,
Just orderd my 2 gryos, care to share the wiring PIN out/In puts for us newbies, that get confused buy the poorly documentented manual.. I don't want to blow my RN-1 up.
I'll do my best and I hope this is what you are after.
I am only running a single gyro at present for forward/backwards directions and I am using the GWS PG-03 unit. Based on this I'll try to explain how it is connected and works:
Firstly it is connected to 2 of the AD ports - each gyro you use will require 2 AD ports and they are grouped into Gyro ports in the manual. The grouping is as follows:
Gyro Port 1 - AD 0 - input to gyro - AD 4 output from gyro to MR-C3024
Gyro Port 2 - AD 1 - input to gyro - AD 5 output from gyro to MR-C3024
Gyro Port 3 - AD 2 - input to gyro - AD 6 output from gyro to MR-C3024
Gyro Port 4 - AD 3 - input to gyro - AD 7 output from gyro to MR-C3024
I am using gyro port 1 and thus the lead attached to the gyro (red/black/white) goes to AD 0 and my own connection from the gyro goes to AD 4.
The diagram above shows the AD port in the upper right hand corner of the board. The connection from the gyro to the MR-C3024 doesn't need to be more than the ground and signal for it to work.
Next important thing is positioning the gyro - check the gyro documentation - and make sure it is orientated correctly. I have mounted mine on the left shoulder and had to move it forward to get the best performance as I set it too far back initially. Currently it sits here but is a work in progress and may yet move.
Once all that is done you need to activate the gyro with some code. This is detailed both in the roboBasic commands manual and the RoboNova User Manual but here is my code.
'Gyro Setup
GYROSET G6A,0,1,1,0,0,0
GYROSET G6D,0,1,1,0,0,0
GYRODIR G6A,1,0,0,1,0,0
GYRODIR G6D,1,0,0,1,0,0
GYROSENSE G6A,0,200,200,0,0,0
GYROSENSE G6D,0,200,200,0,0,0
this goes immediately before the MAIN: routine in the code based on the standard template.
Be aware that you'll need to setup your gyro and adjust the gain or Robonova may have the shakes. I had to turn the gain down to about half way between the factory setting and all the way off. On the GWS gyro that is anti-clockwise. You'll also need to adjust the setup point to get the legs back in line (I am thinking that I may need to re zero him but haven't tried this yet).
And that is basically it.
My Robonova still gets the shakes occasionally but it does stop after a second or two. The gyro doesn't effect the tricks too much - mine still does the flying move, cartwheels etc but does have trouble when you sit him down - he starts jumping and shaking badly. I am looking at this and think I may need to control when the gyro is active for some moves.
What the gyro does is sense movement in one plane. It gets a reading from the input to gyro port of what movement is being sent to the servo groups and passes back an adjusted reading based on the movement of the gyro mixed with the movement sent. I hope that is clear as it is a very simplified description of how a gyro works.
Well I hope this helps and feel free to contact me if anything is not clear or you feel I have missed anything.
Pev
Morbeious wrote:Eh, Pev,
Just orderd my 2 gryos, care to share the wiring PIN out/In puts for us newbies, that get confused buy the poorly documentented manual.. I don't want to blow my RN-1 up.
I'll do my best and I hope this is what you are after.
I am only running a single gyro at present for forward/backwards directions and I am using the GWS PG-03 unit. Based on this I'll try to explain how it is connected and works:
Firstly it is connected to 2 of the AD ports - each gyro you use will require 2 AD ports and they are grouped into Gyro ports in the manual. The grouping is as follows:
Gyro Port 1 - AD 0 - input to gyro - AD 4 output from gyro to MR-C3024
Gyro Port 2 - AD 1 - input to gyro - AD 5 output from gyro to MR-C3024
Gyro Port 3 - AD 2 - input to gyro - AD 6 output from gyro to MR-C3024
Gyro Port 4 - AD 3 - input to gyro - AD 7 output from gyro to MR-C3024
I am using gyro port 1 and thus the lead attached to the gyro (red/black/white) goes to AD 0 and my own connection from the gyro goes to AD 4.
The diagram above shows the AD port in the upper right hand corner of the board. The connection from the gyro to the MR-C3024 doesn't need to be more than the ground and signal for it to work.
Next important thing is positioning the gyro - check the gyro documentation - and make sure it is orientated correctly. I have mounted mine on the left shoulder and had to move it forward to get the best performance as I set it too far back initially. Currently it sits here but is a work in progress and may yet move.
Once all that is done you need to activate the gyro with some code. This is detailed both in the roboBasic commands manual and the RoboNova User Manual but here is my code.
'Gyro Setup
GYROSET G6A,0,1,1,0,0,0
GYROSET G6D,0,1,1,0,0,0
GYRODIR G6A,1,0,0,1,0,0
GYRODIR G6D,1,0,0,1,0,0
GYROSENSE G6A,0,200,200,0,0,0
GYROSENSE G6D,0,200,200,0,0,0
this goes immediately before the MAIN: routine in the code based on the standard template.
Be aware that you'll need to setup your gyro and adjust the gain or Robonova may have the shakes. I had to turn the gain down to about half way between the factory setting and all the way off. On the GWS gyro that is anti-clockwise. You'll also need to adjust the setup point to get the legs back in line (I am thinking that I may need to re zero him but haven't tried this yet).
And that is basically it.
My Robonova still gets the shakes occasionally but it does stop after a second or two. The gyro doesn't effect the tricks too much - mine still does the flying move, cartwheels etc but does have trouble when you sit him down - he starts jumping and shaking badly. I am looking at this and think I may need to control when the gyro is active for some moves.
What the gyro does is sense movement in one plane. It gets a reading from the input to gyro port of what movement is being sent to the servo groups and passes back an adjusted reading based on the movement of the gyro mixed with the movement sent. I hope that is clear as it is a very simplified description of how a gyro works.
Well I hope this helps and feel free to contact me if anything is not clear or you feel I have missed anything.
Pev