Saturday, September 15, 2012

Hardware assembly and initial programming

The parts arrived about a week ago, but I've been busy working on another project.  Needing a break from the other project, I spent time today getting the Candle+ soldered together and tested.  I was pleased that it all came together rather easily and it all works.  I spent a fair amount of time after the hardware assembly learning how to attach an Atmel MKII in-circuit system programmer to my computer and use it to flash code to the ATtiny85 chip.  Since the programmer has a 2x6 header and my Candle+ board has a 1x6 header for programming, I needed to make a little adapter.  I just soldered 26 gauge solid core wires between two properly sized header pin sets and it came out surprisingly sturdy and it works well.  One thing that wasn't readily obvious is that the adapter makes for the same pin-out if you plug it in either way.  Neat.

After working with this hardware and programming, I discovered that I cannot leave the LEDs attached while programming.  Two of the LEDs I'm using share the MISO and MOSI programming lines.  They must be disconnected if the programmer is to actually flash code to the ATtiny85.  So, I think I'm going to configure some sort of switches (perhaps DIP switch block) into the next revision.  For now, I just attached some tiny 30 gauge wires to each of the solder pads so that I can short them together when needed and separate them when programming.  It isn't ideal, but works for now. 



Links to helpful information:

Programming an ATtiny w/ Arduino 1.01
http://hlt.media.mit.edu/?p=1695

AVRISP mkII libusb drivers for Windows 7 / Vista x64
http://mightyohm.com/blog/2010/09/avrisp-mkii-libusb-drivers-for-windows-7-vista-x64/

How to configure the Atmel AVRISP MKii to work with Arduino IDE
http://arduino.cc/forum/index.php?topic=118089.0

Pictures:


Major features to notice:  Yellow, Red & Blue large SMD domed LEDs in the center of the board.  Battery connector on the left, micro-USB on the right.  Power select switch at bottom for selecting between battery, USB or just off.  Momentary push switch at about the 1:00 position.





No comments:

Post a Comment