This guide explains how to update the firmware on AVR-powered Hakai Labs modules. Currently, this applies to the NT Controller and Turbocharger modules.
Want us to update the firmware for you?
No worries if you don't have the UPDI programmer or prefer not to update the firmware yourself! We're happy to update your module for you. Simply contact us through our contact page and we'll arrange to have you ship your module to us. We'll update the firmware and send it back to you - you'll only need to cover the shipping costs.
What is Needed to Update Your Firmware?
- Windows PC
- A USB to Serial UPDI Interface
- The most common one that we use is the UPDI Friend from Adafruit. You can get that at one of the links below:
- JST SH 1mm Pitch 3 Pin to Socket Headers Cable
- A USB C cable
- The Hex file of the actual firmware for the module
How to Identify Current Firmware Version
When the module is first powered on, it has a very bright green LED light on the back (sorry, was not supposed to be that bright, I will fix this in future hardware runs). This LED will blink with a specific pattern with a certain number of long blinks, followed by a certain number of quick blinks. The long blinks are the major version number, and the short blinks are the revision of that major version. So, if your module has v2.1 on it. It will blink 2 long blinks followed by 1 quick blink.
How to Program Your Module
- Set up your USB to Serial UPDI Programmer and attach the output Ground (GND), UPDI, and PWR (5v) to the appropriate pins on your modules UPDI header (3 pin) on the back side. Please be very careful to match these connections up exactly as they are stated on the silkscreen. Hooking these up in reverse could damage your module.
- Set the switch on your UPDI Programmer to 5v.
- Connect your UPDI programmer to your windows computer
- Extract all contents of the firmware zip file to your hard drive in a location you will be able to find it later. For this example, let's say it is "C:\Hakai Labs Firmware".
- Open that folder in Windows Explorer and run the "Flash_Turbocharger_2.1.bat" file. This will scan through the ports on your computer and find the Turbocharger module and update it for you.
- Done! Enjoy your updated module.