Upload

Loading icon Loading...

This video is unavailable.

Gertboard with Raspberry Pi and servo test

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like Daveoh's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike Daveoh's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add Daveoh's video to your playlist.

Published on Nov 13, 2012

Here is a demonstration of a servo being controlled by a Gertboard and its microcontroller. A Raspberry Pi is used to interface with the Gertboard and also to program the microcontroller.

Start off by following Gert's user manual from "Programming the ATmega" at page 29. You should install the Arduino IDE and the custom version of 'avrdude', all of which is explained at https://projects.drogon.net/raspberry.... Whilst it is installing, you can connect your Pi to the Gertboard and then connect the four pins necessary to program the microcontroller, as shown on page 31 (Fig. 23) of the user manual. Make sure the IDE has been set up and the microcontroller is 'fused' properly by running 'avrsetup' and then you are ready to upload programs to the microcontroller. If you receive a this error; "avrdude: verification error, first mismatch at byte 0×0000", ensure pins 1 and 2 of header J7 (3V3) are jumped to provide power to the microcontroller.

Here is a picture showing how I have wired the Gertboard: http://imgur.com/V2BFy
I am outputting on pin 13 of the microcontroller, which is PB5 on the Gertboard. I use a buffered output, as recommended by Gert, by connecting the digital output pin (in this instance, PB5) to B1, applying the correct jumper (jump B1 OUT pins, above U3) then BUF1 becomes your buffered output. Then connect BUF1 to the data/signal/pulse line of your servo. The data connection should also be grounded with the same ground as your external power source for the servo, as noted by Gert himself: http://www.raspberrypi.org/phpBB3/vie...

I've uploaded the microcontroller code I created to Pastebin.com: http://pastebin.com/hpnnjtmp

Always make sure you have wired the board correctly and you understand the code before running anything, you wouldn't want to fry it!

Gert's user manual: http://www.element14.com/community/se...
Gert's assembly manual: http://www.element14.com/community/se...

Music: 8bit Dungeon Level by Kevin MacLeod (incompetech.com)

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Loading icon Loading...

Advertisement
Loading...
Working...
to add this to Watch Later

Add to