conciseusa / raspberry-pi-pico-w-temperature-controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To clone this repo:
git clone https://github.com/conciseusa/raspberry-pi-pico-w-temperature-controller.git

Cheatsheet version of:
https://projects.raspberrypi.org/en/projects/get-started-pico-w/0 Getting started with your Raspberry Pi Pico W
Then added a control loop for controlling temperature.

sudo apt install python3-tk thonny # If do not have installed already
Download the latest version of Raspberry Pi Pico W firmware at:
https://rpf.io/pico-w-firmware

Hold down the BOOTSEL button
Connect USB cable from the Raspberry Pi Pico W to a desktop computer, laptop, or Raspberry Pi
Release the BOOTSEL button after 2 seconds
Raspberry Pi Pico should show as an externally connected drive.
Drag and drop the firmware file you downloaded into the file manager.
Raspberry Pi Pico should disconnect.
Open the Thonny editor.
Check text in the bottom right-hand corner of Thonny.
If it does not say ‘MicroPython (Raspberry Pi Pico)’, click on the text and select ‘MicroPython (Raspberry Pi Pico)’
In Thonny, choose Tools > Manage packages
picozero -> Ctrl-V to box ->Search on PyPi
Click on picozero in the search results. Click on Install.
Seemed to already be installed on Ubuntu 22.04

Now should be able to open and run the .py files in this repo.

To auto run MicroPython when power is applied to the Raspberry Pi Pico
put the code in to a main.py and copy it to the Raspberry Pi Pico.
Just running the files with Thonny does not copy it permanently to the boards file system.

About

License:MIT License


Languages

Language:Python 100.0%