Gyroscope signal integration
Philip Verspreeuwen
Posts: 9
Hello,
I need to integrate the signal of a gyroscope. Is this possible while making other calculations? I'm using a BS 2px. I'm trying to make a balancing robot...
I need to integrate the signal of a gyroscope. Is this possible while making other calculations? I'm using a BS 2px. I'm trying to make a balancing robot...
Comments
Sure, you just have to make sure that you access the gyroscope as often as your balancing algorithm requires. In other words, don't get too wrapped up with long sections of other code without re-visting the balance-detection routine.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
I couldn't figure out if I needed a 'heading lock' gyro ($80); or a normal one ($40).
You can guess which one they wanted me to buy. My app. was going to pulse to it and read back the course correction. It was not going to actively power a servo. The hobby guy said the 'heading lock' would continue to send back a correction pulse until back on course. The normal one would send back just one pulse. (didn't sound right to me). I was then worried on how to set the heading on the 'heading lock' gyro. I guess you send a turn pulse then center it.??
Anyway, it was candy for my project, so I put it on hold. It serves me right for going in without a Google. I was driving by and got pulled in by the Dark Side.
HTH, Chris