This is the software for an IoT scale, based on the Arduino UNO R4 WiFi, for the Precious Plastic project. The project is financed by the Precious Plastic Open Source Fund.
This software is in beta phase.
The scale is intended to be used by plastic recycling workshops around the world, to monitor the weights of recycled plastics. The weight data is uploaded to a data collection page, https://upload.preciousplastic.com/ (or a custom one).
Please check the wiki pages for additional documentation.
You can download the latest release from the Releases section.
The firmware can be uploaded to the board with arduino-cli
, using the following script:
# from the project main directory
./scripts/arduino-cli/upload.sh [ blastic-scale.ino.bin file path ]
If the file path is omitted, the upload scripts look into the build folder created by the compile.sh
script.
Please note that there is a tight integration between the WiFi module of the Arduino UNO R4 WiFi and the firmware payload of Arduino. You should flash the latest available firmware for the WiFi module, following instructions from here. We suggest using the espflash method, which should work on all OS and system configurations.
The project can be built with the arduino-cli
. Unfortunately, the Arduino IDE does not allow changing compilation flags, which is necessary for the correct compilation of this project.
First install the Arduino CLI, then compile the project:
# from the project main directory
./scripts/arduino-cli/compile.sh
We suggest developing on Visual Studio Code with the PlatformIO plugin.