Does anyone know how to interface a RC piezo electric gyroscope to a Basic Stamp? I'm trying to find out how are the output signals of those sensors and if there are an easy and reliable way to interface the gyro with a Basic Stamp
From your diagram, it looks like the gyro accepts a relative input and outputs an absolute output.
I don't do RC stuff, so I could be all wet here but I imagine it works like this:
When the stick on the controller is centered, the gyro controls the servo in the plane until the plane is centered.
When you push the stick hard left, instead of the plane servo going hard left and staying there (plane rolls), the gyro controls the servo until the plane is hard left and the plane stays hard left.
Again I'm not sure of this, but if put one in a plane that how I would want it to work.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
Do you think if I can connect this gyro to the Basic Stamp and use it as a sensor for a self balancing robot?
Your explication make a lot of sense but I'm trying to figure out howto use the out signal of the gyro as a rotational movement indicator. Another question is about the method of control that this kind of gyro's use to maintain stable the plain. Maybe its a kind of PID or something
The really fun part of DIY or hobbying is experimenting· (it's also the cause of many a bald patch!).
If you have access to an oscilloscope, that would be a good first step.· You need to know what type of signal comes out....is it TTL or a string....is it a control signal for a servo (pulse width dependant).
google around to see if someone else has 'hacked' or 'mod'd' one of these things.· (or reverse engineered)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ ·
Steve http://members.rogers.com/steve.brady "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
I would think if you input a 1.5ms (center value) pulse into the gyro, at rest you should get a 1.5ms pulse out. If you move the gyro one way the pulse should get longer, and if you move the gyro in the other direction the pulse should get shorter.
If the gyro outputs at the same time as the input pulse is coming in, you will have to use an external circuit (555 timer) to generate a 1.5ms pulse every 20ms. Then simply use PULSIN to measure the length of the pulses coming out of the gyro.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
Comments
I don't do RC stuff, so I could be all wet here but I imagine it works like this:
When the stick on the controller is centered, the gyro controls the servo in the plane until the plane is centered.
When you push the stick hard left, instead of the plane servo going hard left and staying there (plane rolls), the gyro controls the servo until the plane is hard left and the plane stays hard left.
Again I'm not sure of this, but if put one in a plane that how I would want it to work.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
www.TerryHittConsulting.com
·
Your explication make a lot of sense but I'm trying to figure out howto use the out signal of the gyro as a rotational movement indicator. Another question is about the method of control that this kind of gyro's use to maintain stable the plain. Maybe its a kind of PID or something
If you have access to an oscilloscope, that would be a good first step.· You need to know what type of signal comes out....is it TTL or a string....is it a control signal for a servo (pulse width dependant).
google around to see if someone else has 'hacked' or 'mod'd' one of these things.· (or reverse engineered)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
If the gyro outputs at the same time as the input pulse is coming in, you will have to use an external circuit (555 timer) to generate a 1.5ms pulse every 20ms. Then simply use PULSIN to measure the length of the pulses coming out of the gyro.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
www.TerryHittConsulting.com
·