Skip to content

Flashing the arduino board

Michele Ferri edited this page Sep 12, 2020 · 5 revisions

Flashing the firmware (if using RGB strip)

If you are using the LED RGB strip, you need node-pixel Firmata instead of the regular one. You can find precompiled hex files inside the /resources/firmware folder for the UNO, Nano or ProMicro boards. You can flash hex files using QMK Toolbox and selecting the correct microcontroller in the menu.

  • atmega32u4 for Arduino ProMicro
  • atmega328p for Arduino UNO or Nano

If you're using other boards, you can use the interchange tool. Refer to the documentation here.. The relevant commands are

npm install -g nodebots-interchange
interchange install git+https://github.com/ajfisher/node-pixel -a nano

Manually flash compiled binaries

In alternative to using the interchange tool, you can directly use avrdude to flash the compiled binaries. You can find the hex files in the firmware/node_pixel_firmata folder. Binaries for more boards can be found on node_pixel repository.

  • On Windows 10, if you have the ArduinoIDE installed, you can find avrdude in this folder: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
  • On MacOS, install avrdude with brew install avrdude

Example flash command for Arduino UNO:

avrdude -CC:'\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf' -v -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\Pimentoso\Documents\mini4wdchrono\firmware\node_pixel_firmata\uno\node_pixel_firmata.ino.hex:i

Flashing the firmware (if using 3 green LEDs)

You need to flash the StandardFirmataPlus firmware on your arduino board. This will allow the arduino to comunicate with the computer via USB. Instructions:

  • Install Arduino IDE from https://www.arduino.cc/en/Main/Software
  • Open Arduino IDE
  • Verify correct port and board
  • Navigate to File > Examples > Firmata > StandardFirmataPlus
  • Upload sketch onto board.
  • Done!