regs’s posterous

Princeton-Plainsboro Hospital AKA The Frist Student Center - where I'll be presenting in an hour.

Loading mentions Retweet

Comments [0]

Getting AVR tools working on Mac OS X (Snow Leopard)

I like to play around with writing custom microcontroller code to control LEDs.  For my wedding, I did a project with LEDs and the Atmel AVR Tiny 13 processor -- it was a lot fun.  

Here's a video showing the prototype of the lights: Short LED Systems test for wedding lighting

Here's a video showing the finished product in action at my wedding: Custom LED Fireflies at my wedding

I got set up to do AVR programming by following the wonderful instructions at http://www.ladyada.net/learn/avr/.

To get the AVR tools, I used the packages from MacPorts.  These worked great for my first round of development and let me build the lights for the wedding.  

Then I upgraded to Snow Leopard and all hell broke loose.  First, the MacPorts AVR packages are broken under Snow Leopard, with no apparent fix in sight.  I tried to debug what the problem is, but quickly got fed up with tclsh's lack of debugging features -- I found that if I ran make manually, it would work but not when ports would invoke it.

I tried installing Fedora into a VirtualBox guest on my Mac and using the working AVR toolchain (yum install \*avr\*).  No dice: for some reason, I couldn't get the virtual host to see my usbtiny AVR programmer.  This was a very frustrating road to go to down, to say the least.

Building the AVR toolchain by hand also thwarted me somewhere in the building of the avr-binutils package -- it doesn't want to build on my Mac.  As soon as I entered the dependency hell of installing an upgraded gcc to build binutils and that didn't work either, I got pretty fed up with that line of attack.

Finally, I tried installing the AVR toolchain from the Fink project. Success!

Here are the steps it took to get it up and running:

  1. Install fink by following the instructions at http://www.finkproject.org/download/srcdist.php
  2. Enable the unstable tree by running this command and answering the questions properly: fink configure 
  3. Update fink to use the unstable tree: fink selfupdate
  4. Install the AVR packages: fink install avr-binutils avr-gcc avr-libc avrdude

I now appear to be back up and running!  Enjoy and I hope this post spares someone the pain I had to endure.

Loading mentions Retweet

Comments [0]

A great Jerusalem Post piece debunking the Goldstone Report.

http://www.jpost.com/servlet/Satellite?cid=1256799045773&pagename=JPost%2FJPArticle%2FPrinter

Loading mentions Retweet

Comments [0]

Entering Manhattan - it's a beautiful sky day in the big apple

Loading mentions Retweet

Comments [1]

Ryan North at UIUC - http://qwantz.com/

Loading mentions Retweet

Comments [0]

I just emailed a video of my wife's new haircut. It feels like I'm living future.

(download)

Loading mentions Retweet

Comments [0]

Honeymoon in Tahiti

                                           
Click here to download:
honeymoon-in-tahiti-hjAelDxvjBHpIBAEHvgD.zip (19065 KB)

Loading mentions Retweet

Comments [0]

Greetings from Moorea!

Loading mentions Retweet

Comments [0]

The siblings Gordons

Loading mentions Retweet

Comments [1]

It is done.

Loading mentions Retweet

Comments [0]