Smart Cities - Tiny House at Home (Alternate way)
Required Items
- Raspberry pi pico wh (wireless with headers)
- OneWire temperature sensor
- Other sensors:
- Breadboard to join sensors + required cables/jumper wires
Installing Thonny IDE
Follow installation steps for your os
For Windows/Mac
visit the thonny website and download the latest windows installer https://thonny.org/
For Linux
Installer (installs private Python 3.10 on x86_64, uses existing python3 elsewhere)
bash <(wget -O - https://thonny.org/installer-for-linux)
Re-using an existing Python installation (for advanced users)
pip3 install thonny
Connect Sensors To Pico W
The final assembly should look something like this:
- Daisy chain the piicodev modules together then plug into 3V3, SDA/SCL and GND
- Connect the onewire temperature sensor into the raspberry pi pico (GND, PWR and SIG (I chose pin 28 for my SIG pin))
Thonny IDE Setup
Steps to setup Thonny for use with pico w
Connect Raspberry pi pico
- Connect the pico to your computer using a micro-USB to USB-A cable
- Open Thonny IDE
- Click 'Configure Interpreter' or the hamburger menu on the bottom right
- Select 'MicroPython (Raspberry Pi Pico)'
Install Required Packages
Ensure Raspberry pi pico is connected
Select 'Tools' -> 'Manage packages...'
Search for and install 'network' 'onewire' 'piicodev' 'smbus2'
This should install the required libraries and put them in a folder called 'lib'




