Skip to main content

Raspberry Pi Pico W

Page 1

books books

books

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 covering the following topics:

> > > > > > > > >

Dogan has worked in many industrial organizations before he returned to academic life. He is the author of over 70 technical books and has published over 200 technical articles on electronics, microprocessors, microcontrollers, and related fields.

Installing the MicroPython on Raspberry Pi Pico using a Raspberry Pi or a PC Timer interrupts and external interrupts Analogue-to-digital converter (ADC) projects Using the internal temperature sensor and external sensor chips Using the internal temperature sensor and external temperature sensor chips Datalogging projects PWM, UART, I2C, and SPI projects Using Bluetooth, WiFi, and apps to communicate with smartphones Digital-to-analogue converter (DAC) projects

All projects are tried & tested. They can be implemented on both the Raspberry Pi Pico and Raspberry Pi Pico W, although the Wi-Fibased subjects will run on the Pico W only. Basic programming and electronics experience are required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full MicroPython program listings are given for all projects. The full program listings of all the projects discussed in the book may be downloaded free of charge from www.elektor.com/20335.

Elektor International Media www.elektor.com

Program, build, and master 60+ projects with the Wireless RP2040 RIED

o smartp t e r u t a r e p m e EST Send the t . p o o l m a r g o r p n i # Ma

• T

The Raspberry Pi Pico W additionally includes an on-board Infineon CYW43439 Bluetooth and Wi-Fi chipset. At the time of writing this book, the Bluetooth firmware was not yet available. Wi-Fi is however fully supported at 2.4 GHz using the 802.11b/g/n protocols.

Prof Dogan Ibrahim has a BSc, Hons. degree in Electronic Engineering, an MSc degree in Automatic Control Engineering, and a PhD degree in Digital Signal Processing.

Raspberry Pi Pico W ED •

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, I2C, UART, PWM, timing modules, a hardware debug interface, and an internal temperature sensor.

Raspberry Pi Pico W • Dogan Ibrahim

Program, build, and master 60+ projects with the Wireless RP2040

T

Raspberry Pi Pico W

ead data R # while True: adline() e r . t r a u = # Decode f u b ) ' 8 F ode('UT ? dat = buf.dec # T? received T?") n = dat.find(" Get the te # if n > 0: ) ature( nsert T= I T = GetTemper # str(T) Length Tstr = "T=" + # ) ) n(Tstr AT com # " n Tlen = str(le \ r \ " + n END="+Tle -0 Dt = "AT+CIPS # Send to ESP ) uart.write(Dt # Wait 2 sec ) utime.sleep(2 # Send data tr) uart.write(Ts Dogan Ibrahim


Turn static files into dynamic content formats.

Create a flipbook
Raspberry Pi Pico W by Elektor - Issuu