Firmware
Wiring¶
Connect the Arduino Nano to the USBASP programmer.
(ArduinoISP has not been tested with the existing platformio.ini
sections and may require manual configuration.)
Note: Pinout may differ on some connectors.
Compilation and Flashing¶
configuration.h
:arrow_forward: Configure your firmware in the configuration.h
file.
Compilation errors
If you encounter memory size mismatch errors during compilation, run:
pio update
pio pkg update
Select Number of Scale Modules¶
1. Flashing MiniCore Bootloader¶
You’ll need a USBASP programmer.
2.1 Fuse Configuration¶
2.2 Flash EEPROM¶
Flashing the Microcontroller¶
Autopid Calibration (Optional)¶
Performed in two steps:
Edit configuration.h
:
Then flash the firmware (step 2.3). PID calibration will begin automatically. Once completed, the screen will display "Flash Part 2". Now set:
Then reflash (step 2.3).
Fan Test Firmware (Optional)¶
In configuration.h
, uncomment:
Then flash (step 2.3).
The fan will cycle through all supported PWM frequencies with 100-10% duty cycles. Once complete, choose the desired frequency:
Then comment out:
And reflash (step 2.3).
Startup Errors
If errors occur during startup or runtime, refer to configuration.h
.