Gertboard with Raspberry Pi and servo test
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=EhP3enceEx4
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)
#############################