Programming for the Orangutan SVP-1284 on Ubuntu

I just got my Orangutan SVP-1284, which uses the Atmega1284 processor.

Getting your dev environment setup on Ubuntu is pretty easy:

1) Download the prerequisites you need (
sudo apt-get install avr-libc gcc-avr avra binutils-avr avrdude

2) Download the latest Pololu library from:

3) Extract the library, and install it. From the extracted directory run:
sudo cp *.a /usr/lib/avr/lib/ && sudo cp -r pololu /usr/lib/avr/include/

4) As of version 5.10 of AVRDUDE, the default config file will not work. Edit /etc/avrdude.conf and under the ATmega1284P section change chip_erase_delay to 55000, if you have the SVP324 then change the ATmega324PA section instead.

5) Test that everything is working. The green LED should be on, to indicate that the ISP is working, and the blue LED should be on to indicate that the AVR is receiving power. (The AVR will not receive power from the USB connection, so make sure that you provide power on GND and VIN.) Also if you run:
You should see that three new devices have been detected on ttyACM0, ttyACM1, and ttyACM2. If your computer lists different ports you will need to edit the PORT section of the Makefile in step 6.

6) Check that you can program your microcontroller. From the Pololu library that you extracted, look in examples/atmega1284p/simple-test, then run:
make && make program


7) Note: If you decide to program in C++, make sure you set the CXX variable to ‘avr-g++’ in your Makefile, and set CXXFLAGS to CFLAGS

Robot v0.1

Well, I’ve moved on from LEDs, and built a little robot. It’s powered by a 16MHz Atmel chip, and currently you have to hard code instructions into it, but I’m hoping to add wireless control soon.

Robot v0.1 Video

Fun with microcontrollers


I decided to learn how to program microcontrollers. SparkFun has some really good tutorials <>. So far nothing too exciting, but I managed to compile and load the code onto the microcontroller and make a blinking LED =P

Blinking LED Video (sorry it’s not embedded, that turned out to beĀ  non-trivial on WordPress. Anyone know a good plugin for embedding?)