uploading firmware with mega-isp and a seeeduino

so my needs are simple, apply a new firmware to a rainbowduino only, i dont have an isp programmer…or do i?

i have a seeeduino laying around, and came across mega-isp on google code

heres how i did it.

i edit my sketch in arduino ide to how i want it. make sure there is no .hex file in the applet folder and build it. this should create the hex for me to upload to the device.

I couldnt get arduino ide to upload to the rainbowduino with this isp method so i just used avrdude but i hit some snags.

I used the winavr toolchain to do the actual uploading rather than using the one that came with arduino ide. The issue i was having with the rainbowduino was that the m168 cannot have an f8 written to the efuse so i had to do the commands manually.

here are the commands:
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0x00:m
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 1 -V -D -U flash:w:rainbowduino.hex:i
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -U lock:w:0x0F:m

xbee wireless with arduino and an lm35

check out the flickr stream. i got 2 xbee series 2.5 radios connected and through a sparkfun usb explorer and an xbee arduino shield on an xbee.

at first the setup sucked because i couldnt write the firmware without a reset but when i jumped the reset pin and the ground pin it accepted it and worked fine. One thing i had issues with was I was using vista so if i unplugged the xbee or the usb xbee explorer then i would have to restart X-CTU program or else it would brick the xbee.

one trick i found that somehow worked with a bricked radio was just have the usb explorer plugged in and just hot swap the radio with it self (pull it out and put it back in without unplugging the usb cable) this usually got the radio back in a talking state. but i would have to of course restart x-ctu.

once i found the reset trick was really working, i updated the firmware on one to znet 2.5 router/end device at and set the node identifier to 1 and panid to 9933 and the baud rate to 57600. then i put the other one on, did the restart program trick and set the other one to znet coordinator at and set all the same stuff except the node identifier was set to 2.

plugged arduino shield in and pulled the jumpers off completely and put the router device end radion on then plugged in the usb. the arduino was then programmed to write to the serial at baud 57600 and uploaded the sketch.

then unplugged the usb, put the jumpers on xbee and plugged usb back in. now we have communication!! if you connect a terminal to the arduino then you should see the output. switch the com port to the usb explorer and you should still see the communication being sent. in my case it was testing first and the temperature second time.

now that they are talking, there really isnt much more setup.

to do all this stuff i used references from all over the net. i found a pdf that described the whole process with a xbee programming board but not the usb explorer.

seeedstudio catalyst pack

so i just got through ordering an illuminato but those guys over at seeed studio’s have done something else cool. They have posted what they are calling the catalyst pack. Whats in it? jump on over and check it out.

Seeed Studio Catalyst Pack

as you can see, its got tons of stuff. It looks like its 80 bucks but you get everything you would spend that much on anyway. looks like some other options on the pack is for an extra 10 bucks, you get the arduino getting started book. and you opt out of getting the seeeduino and save 25 bucks.

That sounds like a deal to me but i guess it all depends on your budget for your hobbies. this would be a great kit for a class to use to do many different things from basic programming of micro controllers, to basic robotics core platforms.

get the kit less the seeeduino and then get an illuminato and you got yourself a handy little beginning. A side not on the illuminato is that they are still being hand made so they are on backorder (hopefully mine went out normal order, but i am waiting to hear about that) but you can still order them to get delivered as soon as february for $35 or march for $30 or april for $25.

The Illuminato

No, thats not a typo. its a sweet new open source hardware board based roughly on the arduino boards only it has twice the … well everything except USB.

I grabbed one, will throw up some pics on flickr when i get it but I cannot wait. It might be the board I use on the brewery stuff but i need to play with it first.

the blog about it can be found here

The Illuminato