We'll install Thonny, configure for Pico and write our first script. Let's get set up with scripting in Thonny for the Raspberry Pi Pico. This can be useful in various applications such as weather monitoring, environmental sensing, or home automation projects where temperature and humidity data are important. By Michael Updated 23 April 2023 This guide will help you get started with the Raspberry Pi Pico and the Thonny Python IDE, which has out-of-the-box support for Micropython and Pico. By the end of this guide, you will be able to install Thonny IDE in Windows, Linux, and Mac operating systems. The best way to program in MicroPython on your Raspberry Pi Pico is with the Thonny Python IDE (integrated development environment). Thonny comes with Python 3.7 built in, just one simple installer is needed and youre ready to learn programming. Unzip the file, and locate these three libraries:Ĭopy and paste them into "lib" folder on your CIRCUITPY drive.Īlso, you will need ( font5x8.bin) file to be added to your CIRCUITPY drive, so you can use the OLED.īy completing this project, you will have a functional system that can measure temperature and humidity using a DHT11 sensor and display the readings on an OLED screen. Getting Started with Raspberry Pi Pico using Thonny IDE In this tutorial, we will learn how to use Thonny Integrated Development Environment to write programs for Raspberry Pi Pico using MicroPython firmware. 30 GPIO pins (26 exposed) Can support USB Host or Device mode. Runs at 48MHz, but can be overclocked to 133MHz. It has some impressive specifications: Dual-core 32-bit ARM Cortex-M0+. Make sure to select the correct bundle for your version of CircuitPython. The Raspberry Pi Pico is based around the Foundation’s new chip, the RP2040 microcontroller. Getting Started with Raspberry Pi Pico using Thonny IDE If you are using uP圜raft IDE, you can check this getting started guide: Getting Started with Raspberry Pi Pico using uP圜raft IDE SSD1306 0. Visit the official CircuitPython website and download the latest library bundle. If you're not familiar with Thonny, check out the video below to learn how to get started with it.īefore we dive into the tutorial, we need to make sure we have the necessary libraries installed to use the OLED and DHT sensor. In this tutorial, we'll use Thonny editor & CircuitPython to build the code for this project. Get Familiar with Thonny and CircuitPython It should look something like this: You can use Thonny to write standard Python code. For the OLED connect SDA to GP0 and SCL to GP1 Thonny on Raspberry Pi Install Thonny on other operating systems Open Thonny from your application launcher.Connect the DHT11 sensor to GP27 and leave the white wire unconnected.Lithium Ion Rechargeable Battery and Charger.Lead Acid Rechargeable Battery and Charger.
0 Comments
Leave a Reply. |