<span><p>The Raspberry Pi Pico is a high-performance microcontroller module designed especially for physical computing. Microcontrollers differ from single-board computers, like the RaspberryΒ PiΒ 4, in not having an operating system. The Raspberry Pi Pico can be programmed to run a single task very e
Raspberry Pi Pico W: Program, build, and master 60+ projects with the Wireless RP2040
β Scribed by Dogan Ibrahim
- Publisher
- Elektor International Media B.V.
- Year
- 2022
- Tongue
- English
- Leaves
- 310
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Program, build, and master 60+ projects with the Wireless RP2040
The Raspberry Pi Pico and Pico W are based on the fast, efficient, and low-cost dual-core ARM Cortex M0+ RP2040 microcontroller chip running at up to 133 MHz and sporting 264 KB of SRAM and 2 MB of Flash memory. Besides spacious memory, the Pico and Pico W offer many GPIO pins, and popular peripheral interface modules like ADC, SPI, IΒ²C, UART, PWM, timing modules, a hardware debug interface, and an internal temperature sensor. The Raspberry Pi Pico W additionally includes an on-board Infineon CYW43439 Bluetooth and Wi-Fi chipset.
This book is an introduction to using the Raspberry Pi Pico W in conjunction with the MicroPython programming language. The Thonny development environment (IDE) is used in all of the 60+ working and tested projects.
β¦ Table of Contents
Searchβ¦
Raspberry Pi Pico W
All rights reserved
Contents
Preface
1 β’ Raspberry Pi Pico W Hardware
1.1 Overview
1.2 The Pico hardware module
1.3 Comparison with the Arduino UNO
1.4 Operating conditions and powering the Pico
1.5 Pinout of the RP2040 microcontroller and Pico module
1.6 Other RP2040 microcontroller-based boards
2 β’ Raspberry Pi Pico W Programming
2.1 Overview
2.2 Installing MicroPython on Pico W
2.3 Using the Thonny text editor from the PC
2.4 Writing a program using Thonny
2.5 Software only MicroPython programs using the Raspberry Pi Pico W
Example 1: Average of two numbers read from the keyboard
Example 2: Average of 10 numbers read from the keyboard
Example 3: Surface area of a cylinder
Example 4: ΒΊC to ΒΊF conversion
Example 5: Surface area and volume of a cylinder β user function
Example 6: Table of squares of numbers
Example 7: Table of trigonometric sine
Example 8: Table of trigonometric sine, cosine, and tangent
Example 9: Trigonometric function of a required angle
Example 10: Series and parallel resistors
Example 11: Words in reverse order
Example 12: Calculator
Example 13: File processing - writing
Example 14: File processing β reading
Example 15: Squares and cubes of numbers
Example 16: Multiplication timetable
Example 17: Odd or even
Example 18: Binary, octal, and hexadecimal
Example 19: Add two matrices
Example 20: Shapes
Example 21: Solution of a quadratic equation
Example 22: Matrix multiplication
Example 23: Factorial of a number
Example 24: Compound interest
Example 25: Guess the number
Example 26: Numerical integration
Example 27: Practise arithmetic
3 β’ Raspberry Pi Pico W LED Projects
3.1 Overview
3.2 Project 1: External flashing LED
3.3 Project 2: Flashing SOS signal
3.4 Project 3: Flashing LED β using a timer
3.5 Project 4: Changing the LED flashing rate β using pushbutton interrupts
3.6 Project 5: Randomly flashing red, green, and blue LEDs β RGB
3.7 Project 6: Binary counting LEDs
3.8 Project 7: Lucky day of the week
3.9 Project 8: Electronic dice
3.10 Project 9: Binary counter β Using the 74HC595 shift register
3.11 Project 10: Chasing LEDs - Using the 74HC595 shift register
3.12 Project 11: Turning a selected LED ON - Using the 74HC595 shift register
3.13 Project 12: Randomly flashing LEDs β Using the 74HC595 shift register
3.14 Project 13: Traffic lights
3.15 Project 14: Simple logic probe
3.16 Project 15: Advanced logic probe
4 β’ Raspberry Pi Pico W Multi-Digit 7-Segment Display Projects
4.1 Overview
4.2 7-Segment LED Displays
4.3 Project 1: 4-digit 7-segment display seconds counter
4.4 Project 2: 4-digit 7-segment display conveyor belt goods counter
5 β’ Raspberry Pi Pico W LCD Projects
5.1 Overview
5.2 HD44780 parallel LCD module
5.3 The I2C Bus
5.4 pins of the Raspberry Pi Pico W
5.5 Project 1: Parallel LCD β displaying text
5.6 Project 2: Reaction-timer with parallel LCD
5.7 Project 3: Voltmeter with parallel LCD
5.8 Project 4: Temperature measurement β using the internal temperaturesensor β with parallel LCD
5.9 Project 5: Temperature measurement β using an external temperaturesensor and with parallel LCD
5.10 Project 6: ON/OFF temperature controller with parallel LCD
5.11 Project 7: Measuring the ambient light intensity β using parallel LCD
5.12 Project 8: Ohmmeter β using parallel LCD
5.13 The I2C LCD
5.14 Project 9: I2C LCD seconds counter
5.15 Project 10: Internal and external temperature β using LCD
5.16 Project 11: Using a thermistor to measure temperature β using an I2C LCD
5.17 Project 12: Ultrasonic distance measurement β using an I2C LCD
5.18 Project 13: Measuring the depth of a river
5.19 Project 14: Ultrasonic reverse parking aid with buzzer
5.20 Project 15: Displaying custom characters on the LCD
5.21 Project 16: LCD dice
5.22 Project 17: Using a real-time clock (RTC) module β setting/displayingdate and time
5.23 Project 18: Saving the temperature with time stamping
5.24 Project 19: GPS β Displaying the geographical coordinates on LCD
6 β’ Pulse Width Modulation (PWM)
6.1 Overview
6.2 Basic theory of the pulse width modulation
6.3 PWM channels of the Raspberry Pi Pico W
6.4 Project 1: Generate 1000 Hz PWM waveform with 50% duty cycle
6.5 Project 2: Changing the brightness of an LED
6.6 Project 3: Electronic candle
6.7 Project 4: Varying the speed of a brushed DC motor
6.8 Project 5: Frequency generator with LCD and potentiometer
6.9 Project 6: Measuring the frequency and duty cycle of a PWM waveform
6.10 Project 7: Melody maker
7 β’ TFT Displays
7.1 Overview
7.2 TFT display used
7.3 Connecting the TFT display to Raspberry Pi Pico W
7.4 ST7735 TFT display driver library
7.4.1 Drawing shapes
7.4.2 Displaying text
7.4.3 Other TFT functions
7.5 Project 1: Seconds counter
7.6 Project 2: Reaction timer
7.7 Project 3: Temperature and humidity β Display on TFT
7.8 Project 4: Minimum/maximum temperature and humidity β Display on TFT
7.9 Project 5: ON/OFF temperature control β Setting the desired temperature using buttons and the TFT display
7.10 Project 6: ON/OFF temperature control β Setting the desired temperature using rotary encoder and the TFT display
7.11 Project 7: TFT bitmap display
7.12 Project 8: Using a 4Γ4 keypad
7.13 Project 9: Elementary multiplication β using 4Γ4 keypad and TFT
7.14 Project 10: Calculator - using 4Γ4 keypad and TFT
7.15 Project 11: HiLo game - using 4Γ4 keypad and TFT
8 β’ I2C Bus Projects
8.1 Overview
8.2 The I2C Bus
8.3 I2C pins of the Raspberry Pi Pico W
8.4 Project 1: I2C port expander
8.5 Project 2: TMP102 temperature sensor with LCD
9 β’ OLED Displays
9.1 Overview
9.2 Installing the SSD1306 driver software
9.3 Hardware interface
9.4 Displaying text on OLED
9.5 Displaying common shapes
9.6 Other useful functions
9.7 Project 1: Seconds counter
9.8 Project 2: Drawing bitmaps
9.9 Project 3: DS18B20 OLED-based digital thermometer
9.10 Project 4: Heart rate (pulse) measurement
10 β’ Using Bluetooth with the Raspberry Pi Pico W
10.1 Overview
10.2 Raspberry Pi Pico W Bluetooth interface
10.3 Project 1: Controlling three LEDs from a smartphone using Bluetooth
10.4 Project 2: Sending the Raspberry Pi Pico W internal temperature to a smartphone
11 β’ Using Wi-Fi with the Raspberry Pi Pico W
11.1 Overview
11.2 Connecting to a wireless network
11.3 Project 1: Scan the local network
11.4 Using the Socket library
11.4.1 UDP programs
11.5 Project 2: Controlling an LED from a smartphone using Wi-Fi βUDP communication
11.6 Project 3: Displaying the internal temperature on a smartphone using Wi-Fi
11.7 Project 4: Remote control from an Internet browser (using a smartphone or PC) - Web Server
11.8 Project 5: Storing ambient temperature and atmospheric pressure data on the Cloud
12 β’ RFID Projects
12.1 Overview
12.2 RC522 RFID reader pins
12.3 Interfacing RC522 RFID reader module to Raspberry Pi Pico W
12.4 Project 1: Finding the Tag ID
12.5 Project 2: RFID door lock access with relay
12.6 Project 3: Multi-tag RFID access system with LCD
Index
π SIMILAR VOLUMES
<div> <p>The Raspberry Pi Pico is a high-performance microcontroller module designed especially for physical computing. Microcontrollers differ from single-board computers, like the Raspberry Pi 4, in not having an operating system. The Raspberry Pi Pico can be programmed to run a single task very
<div> <p>The Raspberry Pi 5 is the latest single-board computer from the Raspberry Pi Foundation. It can be used in many applications, such as in audio and video media centers, as a desktop computer, in industrial controllers, robotics, and in many domestic and commercial applications. In addition
<span>Program the Raspberry Pi Pico, the latest microcontroller board from raspberrypi.org, with MicroPython. This book will take you on a tour of the Raspberry Pi Pico, including how to get started using the microcontroller, seeing which alternative microcontrollers are available, and how to connec
<span>Program the Raspberry Pi Pico, the latest microcontroller board from raspberrypi.org, with MicroPython. This book will take you on a tour of the Raspberry Pi Pico, including how to get started using the microcontroller, seeing which alternative microcontrollers are available, and how to connec
<span>Program the Raspberry Pi Pico, the latest microcontroller board from raspberrypi.org, with MicroPython. This book will take you on a tour of the Raspberry Pi Pico, including how to get started using the microcontroller, seeing which alternative microcontrollers are available, and how to connec