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.

  1. Connect the programmer to your computer and launch Windows Device Manager from the Windows start menu to identify its COM port number.
  2. Launch a terminal shell (cmd from the Windows start menu) and add avrdude to the system path with the following command:
set PATH=%PATH%;%LOCALAPPDATA%\MicroDrop\app-3.1.3\app\share\platformio\packages\tool-avrdude
  1. Download the hv-switching-board-firmware-v0.10-twiboot.hex and eeprom-address32.hex files.
  2. In the terminal, change to the directory where the files were saved using the cd command, e.g.:
cd %HOMEPATH%\Downloads
  1. 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.

Connect ISP programmer to switching board

  1. 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
  1. 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
⚠️ **GitHub.com Fallback** ⚠️