This project is designed to streamline the process of updating the firmware on Arduino devices. It provides a comprehensive guide for both beginners and advanced users to ensure that their devices are running the latest firmware without issues.
- update_firmware.py: A Python script responsible for the firmware updating process.
- config.json: Configuration file containing details about the Arduino devices.
- README.md: This documentation file.
-
Clone the Repository:
Run the following command to clone the repository:git clone https://github.com/mthehang/Update-Arduino-Firmware.git
-
Navigate to Directory:
Change to the project directory:cd Update-Arduino-Firmware -
Install Required Libraries:
Make sure you have Python installed, then install the necessary libraries using pip:pip install pyserial jsonschema
-
Configure the
config.json:
Modify theconfig.jsonfile to include your Arduino device details:{ "devices": [ { "name": "MyArduino", "port": "COM3", "firmware": "latest_firmware.hex" } ] }
To start the firmware update process, execute the following command:
python update_firmware.pyThis will read the config.json file and begin updating each listed Arduino device. Follow the prompts provided in the console.