Sphero RVR Coding With Pitch

Use the Pitch on Sphero RVR to control your robot. This works coding in blocks or Python via the SDK. Lean how to read Sphero RVR Pitch here.

I am still waiting on official word from Sphero about the values being negative and ‘Orientation’ in the code seeming to represent a Rate.

What is Pitch?

Pitch is the up and down angle. For example, in an airplane when you pull up, you are pitching up.

For Sphero RVR, imagine doing a wheelie. Doing a wheelie would cause it to pitch up.

There are other rotation angles as well, which are called Yaw and Roll. For this article we are focusing on Pitch, but the other roll axes will be similar.

Why am I writing an article about this? I thought it would be an easy thing to do, but I got stuck for a bit on how to make this work. You can see my initial troubleshooting here before digging in deeper.

https://www.youtube.com/watch?v=LgBvS-ulQPQ

Getting Pitch Value

Currently I’m not sure if we’re getting a Pitch, or a Pitch Rate.

Reading Accelerometer

More to come here as well. Sorry. I still don’t have answers about the values being negative, and getting Rate data instead of Orientation.

Wrapping It Up

We went over how to deal with the Sphero RVR Pitch through both the Sphero RVR SDK in Python and also in Code Blocks with the Sphero EDU App. There is still no clean answer to this and we’re waiting to hear back from Sphero.

A simple use case is to use it for conditional statements like we did.

That said, there are a ton of other uses such as using this as a stabilizer for Nerf etc.

Some other stuff you should check out includes Sphero RVR SDK, Sphero RVR Raspberry Pi, and Anki Cozmo SDK.

Leave a Reply

Your email address will not be published. Required fields are marked *