Flashing firmware to the 40 channel high voltage switching boards - sci-bots/dropbot-v3 GitHub Wiki
Each DropBot requires three 40-channel High Voltage Switching Boards, but before these boards can be added to a DropBot system, we need to flash a bootloader/firmware and assign them a unique ID.
In order to flash the bootloader and firmware, you will need an ISP programmer. You can easily make one using an Arduino Uno and some jumper wire or you can purchase a dedicated programmer.
- Connect the programmer to your computer and launch
Windows Device Manager
from the Windows start menu to identify its COM port number. - Launch a terminal shell (
cmd
from the Windows start menu) and addavrdude
to the system path with the following command:
set PATH=%PATH%;%LOCALAPPDATA%\MicroDrop\app-3.1.3\app\share\platformio\packages\tool-avrdude
- Download the hv-switching-board-firmware-v0.10-twiboot.hex and eeprom-address32.hex files.
- In the terminal, change to the directory where the files were saved using the
cd
command, e.g.:
cd %HOMEPATH%\Downloads
- Connect the ISP programmer to the switching board's ISP header using a 2x3 pin ribbon cable. If it is in the right orientation, the LED on the switching board will light up.
- Run the following command to set the fuses on the microcontroller (making sure to swap the COM port appropriately):
avrdude -P <com port> -b 19200 -c avrisp -p m328p -v -U lfuse:w:0xEF:m -U hfuse:w:0xD4:m -U efuse:w:0xFD:m
- Run the following command to flash the firmware and EEPROM (again swapping the COM port appropriately):
avrdude -P <com port> -b 19200 -c avrisp -p m328p -v -e -V -U flash:w:hv-switching-board-firmware-v0.10-twiboot.hex:i -U eeprom:w:eeprom-address32.hex:i