so i received my second round of the v2 smart controller prototype boards today. the first bunch were really fun and rewarding to receive, but some of the bugs removed some of the fun. here is a comparison of both boards .
here is a picture of the new board … notice the optional new external wifi antenna and battery for the real time clock. ok … enough admiration for now … lets get busy
there are two main ways to install firmware on onto the atmega 2560 side, depending on if it comes with a bootloader installed or not.
steps i need to do are:
things i will need are:
these are shown below:
or use the following script if you have the binaries.
#!/bin/sh AVRDUDE='/applications/arduino-1.0.5/hardware/tools/avrdude' AVRDUDE_CONF='/applications/arduino-1.0.5/hardware/tools/avrdude.conf' BOOTLOADER='/applications/arduino-.0.5/hardware/arduino/bootloaders/stk500v2/stk500boot_v2_mega2560.hex' SKETCH='/testing/kijaniGrowsSmartControllerV2.cpp.hex' #test 2560 chip $AVRDUDE -C $AVRDUDE_CONF -c avrisp2 -p m2560 -P usb #set fuses $AVRDUDE -C $AVRDUDE_CONF -c avrisp2 -p m2560 -P usb -b 115200 -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U lfuse:w:0xFF:m #upload bootloader $AVRDUDE -C $AVRDUDE_CONF -V -q -q -patmega2560 -cstk500v2 -Pusb -Uflash:w:$BOOTLOADER:i -Ulock:w:0x0F:m #upload firmware $AVRDUDE -C $AVRDUDE_CONF -q -q -patmega2560 -cwiring -P/dev/ttyUSB0 -b115200 -D -Uflash:w:$SKETCH:i