Raspberry Pi Pico 2W + Mobile App: Build Your Own Smart Wi-Fi Thermometer!
by gektor650 in Workshop > Home Improvement
24 Views, 0 Favorites, 0 Comments
Raspberry Pi Pico 2W + Mobile App: Build Your Own Smart Wi-Fi Thermometer!
Have you ever wanted to easily monitor the temperature in every room of your house? The good news is that you can do it effortlessly for under ten dollars!
Supplies
Raspberry PI Pico 2W: https://www.raspberrypi.com/products/raspberry-pi-pico-2/?variant=pico-2-w
Temperature Sensor DS19B20: https://amzn.to/3ZvjAJz
Connect Temperature Sensor to PICO
Connect DS18B20 to the Raspberry PI Pico according to schema using a resistor between Red and Yellow wire.
Set Up Visual Studio Code
- Install Visual Studio Code
- Open Settings -> Extensions
- Install Python, Raspberry PI Pico, MicroPico
Connect to the Raspberry PI
- Open View -> Command Pallete
- Search for MicroPico: Connect
- Create a file main.py
- Add a line print("Hello") to the main.py
- When Pico connects, run All Commands -> Upload Project
- Press "Run"
Clone a Raspberry PI Pico Framework
Run:
Broadcast Temperature to the Wi-Fi Network
Replace code in the main.py with:
Upload the project to the Raspberry PI Pico 2W and press Run
Clone a Cross-platform Application
Run the Application
To run a desktop application:
To run an Android application:
Open the raspberry-pi-pico-thermo-sensor-cross-platform/kotlin-multiplatform folder in Android Studio. Press Run.
To run an iPhone application:
Open the iosApp/iosApp.xcodeproj file in xCode. Press Run.