Program, build, and master over 50 projects with MicroPython and the RP2040 microprocessor 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 efficiently within real-time control and monitoring applications requiring speed. The ‘Pico’ as we call it, is 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 its large memory, the Pico has even more attractive features including a vast number of GPIO pins, and popular interface modules like ADC, SPI, I²C, UART, and PWM. To cap it all, the chip offers fast and accurate timing modules, a hardware debug interface, and an internal temperature sensor. The Raspberry Pi Pico is easily programmed using popular high-level languages such as MicroPython and or C/C++. This book is an introduction to using the Raspberry Pi Pico microcontroller in conjunction with the MicroPython programming language. The Thonny development environment (IDE) is used in all the projects described. There are over 50 working and tested projects in the book, covering the following topics: 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 temperature sensor chips Datalogging projects PWM, UART, I²C, and SPI projects Using Wi-Fi and apps to communicate with smartphones Using Bluetooth and apps to communicate with smartphones Digital-to-analogue converter (DAC) projects All projects given in the book have been fully tested and are working. Only basic programming and electronics experience is required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full MicroPython program listings are given for all projects described. Readers can find the program listings on the Elektor web page created to support the book.
For Raspberry Pi, ESP32 and nRF52 with Python, Arduino and Zephyr
Bluetooth Low Energy (BLE) radio chips are ubiquitous from Raspberry Pi to light bulbs. BLE is an elaborate technology with a comprehensive specification, but the basics are quite accessible.
A progressive and systematic approach will lead you far in mastering this wireless communication technique, which is essential for working in low power scenarios.
In this book, you’ll learn how to:
Discover BLE devices in the neighborhood by listening to their advertisements.
Create your own BLE devices advertising data.
Connect to BLE devices such as heart rate monitors and proximity reporters.
Create secure connections to BLE devices with encryption and authentication.
Understand BLE service and profile specifications and implement them.
Reverse engineer a BLE device with a proprietary implementation and control it with your own software.
Make your BLE devices use as little power as possible.
This book shows you the ropes of BLE programming with Python and the Bleak library on a Raspberry Pi or PC, with C++ and NimBLE-Arduino on Espressif’s ESP32 development boards, and with C on one of the development boards supported by the Zephyr real-time operating system, such as Nordic Semiconductor's nRF52 boards.
Starting with a very little amount of theory, you’ll develop code right from the beginning. After you’ve completed this book, you’ll know enough to create your own BLE applications.
Programming with GNU Radio
HackRF is an open-source hardware platform developed by Great Scott Gadgets and serves as a versatile front end for software-defined radio (SDR). With HackRF One and its successor, HackRF Pro, users can develop their own SDR applications, build powerful receivers and transmitters, and tackle demanding RF measurement tasks.
This book provides a practical introduction to the world of SDR. Step by step, the author shows how powerful SDR projects can be implemented with HackRF – from the fundamentals of RF technology to advanced applications using GNU Radio.
In addition to working with SDR Sharp (SDR#), RadioConda, and GNU Radio, the book also covers the fundamentals of modern digital signal processing. Numerous experiments and easy-to-follow practical examples guide readers through topics such as AM, FM, and SSB reception, digital filters, shortwave radio, amateur radio, signal generators, and custom RF projects up to 6 GHz.
Whether you are a maker, radio amateur, electronics enthusiast, or SDR beginner, this book provides solid knowledge, practical applications, and the motivation to creatively explore the possibilities of modern SDR technology.
Practical Multitasking Fundamentals
Programming embedded systems is difficult because of resource constraints and limited debugging facilities. Why develop your own Real-Time Operating System (RTOS) as well as your application when the proven FreeRTOS software is freely available? Why not start with a validated foundation?
Every software developer knows that you must divide a difficult problem into smaller ones to conquer it. Using separate preemptive tasks and FreeRTOS communication mechanisms, a clean separation of functions is achieved within the entire application. This results in safe and maintainable designs.
Practicing engineers and students alike can use this book and the ESP32 Arduino environment to wade into FreeRTOS concepts at a comfortable pace. The well-organized text enables you to master each concept before starting the next chapter. Practical breadboard experiments and schematics are included to bring the lessons home. Experience is the best teacher.
Each chapter includes exercises to test your knowledge. The coverage of the FreeRTOS Application Programming Interface (API) is complete for the ESP32 Arduino environment. You can apply what you learn to other FreeRTOS environments, including Espressif’s ESP-IDF. The source code is available from GitHub. All of these resources put you in the driver’s seat when it is time to develop your next uber-cool ESP32 project.
What you will learn:
How preemptive scheduling works within FreeRTOS
The Arduino startup “loopTask”
Message queues
FreeRTOS timers and the IDLE task
The semaphore, mutex, and their differences
The mailbox and its application
Real-time task priorities and its effect
Interrupt interaction and use with FreeRTOS
Queue sets
Notifying tasks with events
Event groups
Critical sections
Task local storage
The gatekeeper task
Cool Projects for Test, Measurement, and Control
The Raspberry Pi has dominated the maker scene for many years. Freely accessible I/O pins have made it one of the most popular processor boards of all time. However, the classic Raspberry Pi has no analog inputs. Direct measurement of analog values is therefore not possible. Consequently, photodiodes, NTCs, Hall sensors, etc. cannot be read directly. In addition, the pins are connected directly to the exposed contacts, i.e. without a driver or protection circuit. This can quickly destroy the central controller and thus the entire Raspberry Pi.
These problems can be elegantly solved with the Pico. As a front-end, it can easily handle a wide range of measurement tasks. In addition, the Pico is much cheaper than a classic Raspberry Pi 4 or 5. If a faulty circuit leads to the destruction of the Pico, this is relatively easy to handle. This makes the combination of a classic Raspberry Pi 4 or 5 and the Pico an ideal pair.
The book introduces the broad and highly topical field of modern controller technology using the combined force of a Raspberry Pi 4 or 5 and a Raspberry Pi Pico. In addition to a detailed introduction to the operation and functionality of the controller boards themselves, the book also focuses on data acquisition and processing with digital processors. Especially the combination of both systems offers a wide range of interesting possibilities.
Some practical projects from the contents:
USB between Raspberry Pi 4 or 5 and Pico
I²C Communication and Pico as an I²C device
Voltmeter and Computer Thermometer
Pico W as a Web Server and WLAN Scanner
Frequency Meters and Generators
OLED Displays on Raspberry Pi 4 or 5 and Pico
Energy Saving Monitor
Which Astronauts are in Orbit?
Mini Monitor for Current Bitcoin Exchange Rate
With the availability of free and open source C/C++ compilers today, you might wonder why someone would be interested in assembler language. What is so compelling about the RISC-V Instruction Set Architecture (ISA)? How does RISC-V differ from existing architectures? And most importantly, how do we gain experience with the RISC-V without a major investment? Is there affordable hardware available?
The availability of the Espressif ESP32-C3 chip provides a way to get hands-on experience with RISC-V. The open sourced QEMU emulator adds a 64-bit experience in RISC-V under Linux. These are just two ways for the student and enthusiast alike to explore RISC-V in this book.
The projects in this book are boiled down to the barest essentials to keep the assembly language concepts clear and simple. In this manner you will have “aha!” moments rather than puzzling about something difficult. The focus in this book is about learning how to write RISC-V assembly language code without getting bogged down. As you work your way through this tutorial, you’ll build up small demonstration programs to be run and tested. Often the result is some simple printed messages to prove a concept. Once you’ve mastered these basic concepts, you will be well equipped to apply assembly language in larger projects.
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. 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.
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:
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, I²C, 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-Fi-based 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.
Projecten met Arduino, ESPHome, Home Assistant en Raspberry Pi & Co.
Dit e-book bevat verschillende voorbeeldprojecten, te beginnen met een inleiding tot elektronica. Het legt ook uit hoe je Home Assistant installeert op een Raspberry Pi, hoe je binnenklimaatsensoren gebruikt voor temperatuur en vochtigheid, hoe je het MQTT-protocol en andere interfaces implementeert, en hoe je ESPHome gebruikt om sensoren en actuatoren te integreren in Home Assistant. Talrijke video tutorials vullen het boek aan.
The book begins with an introduction to electrical engineering. You will learn the basics of voltage, current, resistors, diodes and transistors.
Arduino and microcontrollers
A complete section is dedicated to the Arduino Uno. You will get to know the structure, write your first programs and work on practical examples.
Home Assistant and automation
You will learn how to set up Home Assistant on a Raspberry Pi and how to use automations, scenes and devices. In addition, Zigbee, MQTT and ESP-NOW – important technologies for home automation – will be discussed.
ESP8266, ESP32 and ESP32-CAM
The popular ESP microcontrollers are covered in detail. A theoretical introduction is followed by practical projects that show you how to get the most out of these devices.
Sensors and actuators
The book explains the functionality and application of numerous sensors such as temperature and humidity sensors, motion detectors and RFID readers. For actuators, stepper motors, e-ink displays, servo motors and much more are covered. There are practical application examples for all devices.
ESPHome
This chapter shows you how to integrate sensors and actuators into Home Assistant without any programming effort. You will be guided step by step through the setup with ESPHome.
LEDs and lighting technology
In this chapter, you will learn about different types of LEDs and how they can be used. The basics of lighting technology are also explained.
Node-RED
A whole chapter is dedicated to Node-RED. You will learn the basics of this powerful tool and be guided step by step through its setup and use.
Integrated Circuits (ICs)
In electronics, there are numerous ICs that make our lives easier. You will get to know the most important ones and apply your knowledge in practical projects.
Professional programming
Advanced topics such as the correct use of buttons, the use of interrupts and the use of an NTP server for time synchronisation are covered in detail in this chapter.
Downloads
GitHub
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
High-End from the Elektor Lab
Fortissimo-100 High-End AmplifierFully symmetrical audio output stage and 100/190 W
Checking the Frequency of Tuned Circuits and CrystalsTips & Tricks, Best Practices and Other Useful Information
PCB Tips and Tricks
Soldering – So What?A Closer Look at Current Soldering Technology
Low-Latency Bluetooth Garage Door ControlTake Control with Short BLE Messages from a Smartphone
Ideal Diode ControllerDiode Circuits with Low Power Dissipation
LED Garlands with ESP32 and FreeRTOSFlashing and Variable Brightness
Starting Out in Electronics……Cheerfully Continues Zenering
FM/DAB+ ReceiverThe Best of Both Worlds
From Life’s ExperienceElectronica Obscura
Tracing the Cause of Software Bugs WirelesslyCircular Buffer and Webserver on the ESP32
Did Covid Cause a Boost in Engineering Innovation?Innovative Components and Solutions from 2022
Ersa i-CON TRACE – The IoT Soldering Station for Makers
Infographics
What Are We Going to Do with All This Compute?
How to Drive Ynvisible’s E-Paper Display
All-Time Innovation with InnoFaithQ&A with Walter Arkesteijn
Industrial AutomationEasy and scalable IoT-Retrofitting
Next Generation Oscilloscopes for Accelerated InsightRohde & Schwarz introduces the R&S MXO 4 series
Low Profile Linear Connectors Solve Multi-Signal Data Management
Smart – Innovative – Cost-EfficientGateMate FPGAs Developed and Manufactured in Germany
Tools to Support Low-Cost Sensor Development
PolyfusesPeculiar Parts, the Series
Isolated Analog Output for Arduino Uno
HomeLab Tours... Discovers the Theremin
electronica fast forward 2022 - powered by ElektorLineup and Timetable
Radio Direction FindingTracking Down Lost Wireless Weather Sensors
Estimate an IC's Internal NoiseA Simple Method
Ethics in ActionPowered by WEEF
No Ethics, No Sustainable BusinessAn Interview with Professor Stefan Heinemann
The 2023 WEEF Index
Filter SoftwareDesign Tools for Analog Filters
TV-B-Gone!... Or At Least B-OFF
RP2040-Based Air Quality Measurement
elekterminal
Kickstart to Python 3Sample Chapter: Digital Image Processing and Wand Library
SOLARPUNKA Brighter Future Ahead
Hexadoku
Principles, Design, and Real-World Applications of Modern Photonics
Light shapes our world—from the glow of a simple LED to the precision of a laser beam and the immense power of the sun. LEDs, Lasers, and Sunlight – Principles, Design, and Real-World Applications of Modern Photonics is your comprehensive guide to understanding, designing, and applying modern light technologies.
This book takes you on a journey from the fundamentals of photonics—covering the nature of light, optical laws, and color theory—to real-world engineering with today’s most important light sources. You’ll explore how LEDs work, how to design efficient lighting systems, and how to tackle practical challenges such as thermal management, power supply design, and optical performance.
Beyond illumination, the book opens doors to specialized applications: horticultural lighting for plant growth, infrared and ultraviolet technologies, modern display systems from LCD to MicroLED, and the fascinating world of lasers—from their physics to their use in medicine, industry, and communication. It also connects light engineering to sustainability through solar energy and thermal radiation.
Written with a strong practical focus, this book bridges theory and application. Whether you are an engineer, student, or advanced hobbyist, you’ll gain the tools to turn concepts into working solutions—from selecting components to building complete systems.
If you want to understand light not just as a phenomenon, but as a powerful engineering tool, this book will illuminate the way.
Deze doorzichtige acryl behuizing is de officiële behuizing voor het HackRF One/Pro board. Hij kan de standaard zwarte plastic behuizing van de HackRF One/Pro vervangen.
Montage-instructies
Gebruik een plectrum of spudger om de HackRF One/Pro printplaat uit de zwarte plastic behuizing te halen.
Steek een lange schroef in elke hoek van het onderste acrylpaneel. Zet elke lange schroef vast met een kort afstandsstuk (5 mm) aan de tegenoverliggende kant van het paneel.
Plaats de HackRF One/Pro printplaat (naar boven gericht) bovenop het onderpaneel en steek de uiteinden van de lange schroeven door de bevestigingsgaten in de hoeken van de print.
Zet de printplaat vast met een lang afstandsstuk (6 mm) in elke hoek.
Plaats het bovenste acrylpaneel op de printplaat en lijn de uitsparingen uit met de extension headers op de print.
Zet elke hoek vast met een korte schroef.
Opmerking: Niet te strak aandraaien! Na elke stap alleen met de hand aandraaien.