2.1 KiB
2.1 KiB
Pyr0-piezo Beta Unit Firmware Update
The firmware for this project can be updated using one of three methods, VS Code, Arduino IDE, or avrdude.
Please be sure you've already wired up your sensor's UART port
VS Code (Preferred Application)
Installing dependencies
- Install VS Code from Micosoft's official page
- Use the "Extensions" menu to install PlatformIO.
- (Optional) Install extra plugins to assist in development:
- GitLense
- markdownlint
- Markdown Preview Enhanced
- C/C++
- C++ Intellisense
Configuration
- In PIO Home, open the firmware folder:
~/pyr0piezo/firmware/AVR-Source/Pyr0_Piezo_sensor_v2.x.x
- Make certain you're on the latest
developbranch- In GitLense, under the "Repositories" menu, expand the "Branches" menu
- Right click on
developand select "Switch to Branch" - Back at the top of the "Repositories" menu, hover the mouse over
Pyr0_Piezo_Sensor_v2.x.xand click first onfetch, then onpull
Upload
- Make any desired adjustments to default values in
src/pP_config.h - Click the "PlatformIO: Upload" button found in the bottom bar of the VS Code window
- Verify Serial connection by opening the Serial Monitor and typing
CONFIGorSTATE. You should get a response.
Arduino IDE
- Install Arduino IDE from Arduino's official page
- Under File > Preferences > Additional Board Manager URL's, Add:
https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json
avrdude
Windows
- Install a bash-like terminal. Choose from a number of options:
- [Windows Subsystem for Linux]
- [CygWin]
- [Mingw64]
- [Git Bash (Comes bundled with git)]
- Download the [avrdude binaries]
- Extract the binaries somewhere your terminal can find them
Linux
Ubuntu/Debian Distro's
sudo apt update && sudo apt install -y avrdude
Fedora/RHEL/CentOS Distros
sudo yum install -y avrdude