Back to Work on the 3D Gimbal

It’s been a busy few months for me: I started 2 new jobs, traveled Europe, and I’m in the process of buying a house. But I’ve been dying to make more progress on my projects, so today I pushed through on the next component of the 3D Gimbal.

In the previous demo videos of the gimbal, I was using a separate platform (PIC32) to operate the servos. To consolidate resources, and simplify design, I wanted to transfer the servo operation to one of the Raspberry Pis already on the gimbal.

A few months ago, I experimented with using the Raspberry Pi’s IO pins to run servos. The code I put together for that can be seen HERE. I’m using IO pins 4, 17, and 18 to operate the X, Y, and Z axis servos, respectively. I used protoboard to create a simple breakout board between the Raspberry Pi and the servos. External power was used for the servos. Here is the initial design sketch I put together:

servo breakout board

In the final design, I decided to add a power LED and status LEDs for each of the servo channels. I also flipped the servo connectors as compared to the above sketch. Here is the finished board with everything connected:

servo breakout connected

Right now the software is converting the tracking position for each servo into an 8-bit value to transport from the Oculus Rift to the Raspberry Pi. The result of this is somewhat choppy motion in the servos, so I will be switching to use 16-bit values next time I touch the software. Besides that, it’s working well and I’m very happy with the result. The next step is to figure out how to mount this breakout board to the gimbal.


I'm an Electrical Engineer with a passion for software, drumming, video games, and spicy peppers.

Tagged with: , , , ,
Posted in Hardware Projects

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Corey Shuman

Corey Shuman

I'm an Electrical Engineer with a passion for software, drumming, video games, and spicy peppers.

View Full Profile →

Quick Links
Click the Icons below to visit my other online accounts:
%d bloggers like this: