video: https://drive.google.com/file/d/1Z4dQG3ToT1yv5ojDU8G2fUsDlY2Y1bl4/view?usp=sharing
Firmware designed for the pico of the IDC project
- create your build directory
mkdir build - run
cmake -DPICO_BOARD=pico_w -DWIFI_SSID='SSID' -DWIFI_PASSWORD='PASS' ..
You must set your Wi-Fi SSID in 'SSID' and your Wi-Fi password in 'PASS'
- run
makeinside your build directory
- build picotool
- run
picotool load -f PicoMeasure.uf2
move PicoMeasure.uf2 to the pico in BOOTSEL mode
sudo minicom -b 115200 -o -D /dev/ttyACM0
Both KY-038 and MQ-135 sensors have a high voltage of 5V, meanwhile the pico only has 3.3V. For the proper functioning of the circuit, you'll have to use either a level shifter or a voltage divider. The pico does have a 5V output pin, so you can use that as a source.