Saturday, November 14, 2015

Getting an Arduino Clone Working on Mac OSX 10.10

I recently treated myself to an Ultimaker 2.  In addition to making doll furniture for my daughter, I also hope to get back to playing with small-time robotics.  I've decided my first project will be a hexapod, like this one: http://www.thingiverse.com/thing:432829.  Printing the parts is going fine, but the last time I did any embedded programming was with a 68HC11.  Needless to say, times have changed and we're in the era of Arduino for hobby embedded device development.

So I ordered myself an Arduino Mini clone ("Ieik Mini Nano V3.0 Atmega328p") off of Amazon to get started.  I use Homebrew, so I grabbed the IDE via:
$ brew install brew install Caskroom/cask/arduino

I fired it up with
$ open ~/Applications/Arduino.app
and loaded up the basic blink example, as described on the Arduino tutorial page.  A lot of people have been reporting issues the USB connection and I immediately got:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
I started hunting around for the way to fix it.  I went to the FTDI site, grabbed the VCP drivers, and installed them.  This didn't work, even though my clone has a genuine FTDI chip.  After lots and lots of web pages, I finally got it to work.  The key thing was to treat it like a Duemilanove, despite it having both "Mini" and "Nano" in the Amazon web page and it having the same layout as a Nano.

No comments:

Post a Comment