32 neue Projekte, praktische Beispiele und Übungen mit dem Elektor Arduino Nano MCCAB Trainingsboard
Die Elektronik und die Mikrocontrollertechnik bieten die Möglichkeit, kreativ tätig zu sein. Mit diesem Mikrocontroller-Praxiskurs besteht die Möglichkeit, eigene Arduino-Projekte zu realisieren und solche Erfolgsmomente erleben zu können. Im Idealfall funktioniert beim ersten Einschalten alles so, wie man es sich vorgestellt hat. In der Praxis läuft es dagegen selten wie erwartet. Dann braucht man Kenntnisse, um den Grund für das Nichtfunktionieren effizient suchen und finden zu können.
In diesem Buch für Fortgeschrittene steigen wir tief in die Welt der Mikrocontroller und der Arduino IDE ein, um neue Verfahren und Details kennen zu lernen, und erfolgreich noch anspruchsvollere Situationen angehen und lösen zu können.
Mit diesem Buch gibt der Autor dem Leser das nötige Rüstzeug, um eigenständig Projekte zu kreieren und auch schnell Fehler finden zu können. Anstatt nur fertige Lösungen zu bieten, erklärt er die Hintergründe, die verwendete Hardware und die eventuell benötigten Tools. Er stellt Aufgaben, bei denen der Leser seine eigene Kreativität einbringt und den Arduino-Sketch selbst schreibt.
Falls man einmal keine vernünftige Idee hat und nicht weiterkommt, gibt es natürlich zu jedem Projekt und zu jeder Aufgabe einen Lösungsvorschlag mit zugehöriger Software, der im Buch ausführlich kommentiert und erklärt wird.
Sie erfahren mit diesem Praxiskurs mehr über das Innenleben des Arduino Nano und des darauf befindlichen Mikrocontrollers. Sie lernen Hardware-Module kennen, mit denen Sie neue interessante Projekte realisieren werden. Sie beschäftigen sich mit Softwareverfahren wie z. B. "Zustandsmaschinen", durch deren Anwendung sich Aufgabenstellungen oft einfacher und übersichtlicher lösen lassen.
Die zahlreichen praktischen Projekt- und Übungs-Sketche realisieren wir wieder auf dem vom "Mikrocontroller-Praxiskurs für Arduino-Einsteiger" bekannten MCCAB Trainingsboard, das die gesamte Hardware-Peripherie und die Bedienungselemente enthält, die wir für die Ein-/Ausgabe-Operationen unserer Sketche benötigen.
Leser, die das MCCAB Trainingsboard noch nicht besitzen, können die benötigte Hardware separat erwerben, oder alternativ auch auf einem Breadboard aufbauen.
AI in Practice
Dive into the fascinating world of robotics and automation!
This Elektor Special shows you how to build your own robots with creativity, a little know-how, and affordable technology. From your first DIY project with Arduino or Raspberry Pi to intelligent systems with AI – this issue makes modern robotics understandable and accessible.
Discover practical instructions, inspiring projects, and exciting insights into the maker scene. Learn how experimentation, community, and openness give rise to true innovation – and why robotics is so much more than just a technical hobby.
Contents
Imagination turns into reality
Arduino-controlled Drawing Robot
GalaxyRVR Mars Rover Kit for Arduino
YDLIDAR X4Pro Lidar
xHuskyLens AI Camera
DOF Robot Arm with Raspberry Pi Pico
Manufacturing Robots with Fischertechnik
Pneumatic Industrial Robot
Why Do We Keep Building Robot Dogs?
Elektor Mini-Wheelie
Robot Vehicles and Autonomous Driving
Although the Arduino isn’t a novelty any longer, there are still many beginners who want to try programming and development with a microcontroller, and to them, it is all new. All beginnings can be difficult, though they should be light and enjoyable.
You do not need much or expensive equipment for the examples. The circuits are built on a small breadboard, and, if necessary, connected to an Arduino Uno, which you can program on a Windows PC. You will find clear examples of how to build all circuits, ensuring easy and error-free reproduction.
Projects Discussed
Current & Voltage – How it all began
Arduino Hardware
Arduino Programming
The Electrical Circuit
Measuring with the Multimeter
Circuit Diagrams and Breadboards
Creating Circuit Diagrams
Breadboard Views with Fritzing
Online Circuit Simulation
Indispensable: Resistors (Part 1)
Hands-on with Resistors (Part 2)
Variable Resistors
Diodes: One-way Street for Current
The Transistor Switch
Electromagnetism
Relays and Motors
op-amps: Operational Amplifiers
Capacitors
The NE555 Timer
PWM and Analogue Values with Arduino
7-Segment Temperature Display
Introduction to Soldering and LCDs
Book: Logic Analyzers in Practice
Step-by-step instructions guide you through the analysis of modern protocols such as I²C, SPI, UART, RS-232, NeoPixel, WS28xx, HD44780 and 1-Wire. With the help of numerous experimental circuits based on the Raspberry Pi Pico, Arduino Uno and the Bus Pirate, you will learn the practical application of popular USB logic analyzers.
All the experimental circuits presented in this book have been fully tested and are fully functional. The necessary program listings are included – no special programming or electronics knowledge is required for these circuits. The programming languages used are MicroPython and C along with the development environments Thonny and Arduino IDE.
This book uses several models of flexible and widely available USB logic analyzers and shows the strengths and weaknesses of each price range.
You will learn about the criteria that matter for your work and be able to find the right device for you.
Whether Arduino, Raspberry Pi or Raspberry Pi Pico, the example circuits shown allow you to get started quickly with protocol analysis and can also serve as a basis for your own experiments.
After reading this book, you will be familiar with all the important terms and contexts, conduct your own experiments, analyze protocols independently, culminating in a comprehensive knowledge set of digital signals and protocols.
USB Logic Analyzer (8-ch, 24 MHz)
This USB Logic Analyzer is an 8-channel logic analyzer with each input dual purposed for analog data recording. It is perfect for debugging and analyzing signals like I²C, UART, SPI, CAN and 1-Wire. It operates by sampling a digital input connected to a device under test (DUT) at a high sample rate. The connection to the PC is via USB.
Specifications
Channels
8 digital channels
Maximum sampling rate
24 MHz
Maximum input voltage
0 V ~ 5 V
Operating temperature
0°C ~ 70°C
Input impedance
1 MΩ || 10 pF
Supported protocols
I²C, SPI, UART, CAN, 1-Wire, etc.
PC connection
USB
Dimensions
55 x 28 x 14 mm
Downloads
Software
This bundle contains:
Book 'Logic Analyzers in Practice' (normal price: €35)
USB Logic Analyzer (8-ch, 24 MHz) (normal price: €20)
USB Cable
Jumper Wire Ribbon Cable
This bundle contains the popular Elektor Sand Clock for Raspberry Pi Pico and the new Elektor Laser Head Upgrade, offering even more options for displaying the time. Not only can you "engrave" the current time in sand, you can now alternatively write it on a glow-in-the-dark foil or create green drawings.
Contents of the bundle
Elektor Sand Clock for Raspberry Pi Pico (normal price: €50)
Elektor Laser Head Upgrade for Sand Clock (normal price: €35)
Elektor Sand Clock for Raspberry Pi (Raspberry Pi-based Eye Catcher)
A standard sand clock just shows how time passes. In contrast, this Raspberry Pi Pico-controlled sand clock shows the exact time by "engraving" the four digits for hour and minute into the layer of sand. After an adjustable time the sand is flattened out by two vibration motors and everything begins all over again.
At the heart of the sand clock are two servo motors driving a writing pen through a pantograph mechanism. A third servo motor lifts the pen up and down. The sand container is equipped with two vibration motors to flatten the sand. The electronic part of the sand clock consists of a Raspberry Pi Pico and an RTC/driver board with a real-time clock, plus driver circuits for the servo motors.
A detailed construction manual is available for downloading.
Features
Dimensions: 135 x 110 x 80 mm
Build time: approx. 1.5 to 2 hours
Included
3x Precut acrylic sheets with all mechanical parts
3x Mini servo motors
2x Vibration motors
1x Raspberry Pi Pico
1x RTC/driver board with assembled parts
Nuts, bolts, spacers, and wires for the assembly
Fine-grained white sand
Elektor Laser Head Upgrade for Sand Clock
The new Elektor Laser Head transforms the Sand Clock into a clock that writes the time on glow-in-the-dark film instead of sand. In addition to displaying the time, it can also be used to create ephemeral drawings. The 5 mW laser pointer, with a wavelength of 405 nm, produces bright green drawings on the glow-in-the-dark film. For best results, use the kit in a dimly lit room. Warning: Never look directly into the laser beam!
The kit includes all the necessary components, but soldering three wires is required.
Note: This kit is also compatible with the original Arduino-based Sand Clock from 2017. For more details, see Elektor Magazine 1-2/2017 and Elektor Magazine 1-2/2018.
Pfiffige Lösungen mit Arduino Pro Mini und ATmega328-Boards
Mit einem einfachen Arduino Pro Mini Board und ein paar weiteren Bauteilen lassen sich heute für wenig Geld Projekte realisieren, die vor 20 oder 30 Jahren noch undenkbar waren oder ein kleines Vermögen gekostet hätten. Von einfachen LED-Effekten bis zur Ladestation – die den Akku auf Herz und Nieren prüft – ist in diesem Buch vieles dabei.
Als Mikrocontroller dient bei allen beschriebenen Projekten der ATmega328, der mit seinen 20 Ein- und Ausgangsleitungen unzählige Möglichkeiten zum Messen, Schalten und Steuern bietet. Mit einem 7-Segment-Display und ein paar Widerständen lässt sich daraus z. B. ein Voltmeter bauen oder mittels NTC ein Thermometer. Die Arduino-Plattform bietet dabei die perfekte Entwicklungsumgebung zum Programmieren der Boards.
Neben den ganz konkreten Projekten soll das Buch aber auch das nötige Wissen vermitteln, um eigene Ideen zu realisieren. Wie misst man was? Welches ist der geeignete Transistor, um verschiedene Verbraucher zu schalten? Wann ist man mit einem IC besser bedient, oder wie schaltet man Netzspannung? Auch batteriebetriebene Projekte mit LilyPad sind ausführlich thematisiert. Ebenso vielerlei Motoren, vom einfachen Gleichstrommotor bis zum Schrittmotor.
Sensoren sind ein weiteres spannendes Thema. Nur zwei Beispiele: Mit einem winzigen Bauteil lässt sich tatsächlich messen, dass der Luftdruck am Fußboden höher ist als auf Tischhöhe. Mit einem simplen Infrarot-Empfänger kann man ausgedienten Fernbedienungen ein zweites Leben schenken und die Wohnung damit steuern.
Verwirklichen Sie Ihre Projekt-Träume: Der Kilometerzähler fürs Hamsterrad, eine vollautomatische Steuerung Ihrer Ameisenfarm mit Webinterface, oder den Sandwich-O-Mat – eine Maschine, die Sandwich-Toasts nach Wahl belegt und überbackt.
Mit dem Arduino und der DIY- oder Maker-Bewegung wurde nicht nur der Einstieg in die Mikrocontroller-Programmierung kinderleicht, auch eine zweite Entwicklung fand statt: Findige Entwickler brachten kleine Boards – sogenannte Shields oder Module – auf den Markt, die den Einsatz von zusätzlicher Hardware stark vereinfachten. Die kleinen Baugruppen enthalten alle wichtigen elektronischen Teile, um mit ein paar Steckkabeln an den Mikrocontroller angeschlossen zu werden, so dass ein frickeliger und aufwändiger Aufbau auf dem Steckboard entfällt. Zudem ist es so möglich, auch winzig kleine Bauteile zu handhaben, die keine Anschlussbeinchen mehr haben (sogenannte SMDs).
Enthaltene Projekte
Arduino sucht Anschluss
BMP, Einführung in Bibliotheken und I²C
Mit dem Mehrzweck-Shield I/O-Grundlagen kennenlernen
I²C-LCD-Adapter und Punktmatrixanzeigen
LCD Keypad Shield
Level-Konverter
W5100: Internetanbindung
I/O-Erweiterungs-Shields
Relais und Solid-State-Relais
Das Multi-Funktions-Shield: eine universelle Bedieneinheit
SD-Kartenleser über SPI anbinden
Tasten und 7-Segmentanzeigen
16-Bit ADC
DAC MCP4725
16-fach PWM Servo-Treiber
MP3-Player
GPS-Datenlogger mit SD-Karte
Touch-Sensor
Joystick
SHT31: Temperatur und Luftfeuchtigkeit
UV A-Sensor VEML6070
VL53L0X Time-of-Flight
Ultraschallsensor-Entfernungsmesser
LED-Punktmatrixanzeige mit MAX7219
RTC DS3231
Port-Expander MCP23017
433 MHz Funk
MPU-650: Gyroskop
Beschleunigungssensor ADXL345
WS2812 RGB-LEDs
Spannungsversorgung
MQ-xx Gassensoren
CO2-Gassensor
ACS712 Stromstärkesensor
INA219 Stromstärkesensor
L298 Motortreiber
MFRC522 RFID
28BYJ-48 Stepper-Motor
TMC2209 Silent-Step-Stick
X9C10x Digitales Poti
Farb-TFT-Display mit ST7735
e-Paper Display
Bluetooth
Geigerzähler
SIM800L GSM-Modul
I²C-Multiplexer
Controller Area Network
Programming and Projects for the Minima and WiFi
Based on the low-cost 8-bit ATmega328P processor, the Arduino Uno R3 board is likely to score as the most popular Arduino family member, and this workhorse has been with us for many years. Eleven years later, the long-overdue successor, the Arduino Uno R4, was released. It is built around a 48 MHz, 32-bit Arm Cortex-M4 microcontroller and provides significantly expanded SRAM and Flash memory. Additionally, a higher-precision ADC and a new DAC are added to the design. The Uno R4 board also supports the CAN Bus with an interface.
Two versions of the board are available: Uno R4 Minima, and Uno R4 WiFi. This book is about using these new boards to develop many different and interesting projects with just a handful of parts and external modules. All projects described in the book have been fully tested on the Uno R4 Minima or the Uno R4 WiFi board, as appropriate.
The project topics include the reading, control, and driving of many components and modules in the kit as well as on the relevant Uno R4 board, including
LEDs
7-segment displays (using timer interrupts)
LCDs
Sensors
RFID Reader
4x4 Keypad
Real-time clock (RTC)
Joystick
8×8 LED matrix
Motors
DAC (Digital-to-analog converter)
LED matrix
WiFi connectivity
Serial UART
CAN bus
Infrared controller and receiver
Simulators
… all in creative and educational ways with the project operation and associated software explained in great detail.
The Arduino Pro Mini is a microcontroller board based on the ATmega328P.
It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, an on-board resonator, a reset button, and holes for mounting pin headers. A six pin header can be connected to an FTDI cable or SparkFun breakout board to provide USB power and communication to the board.
The Arduino Pro Mini is intended for semi-permanent installation in objects or exhibitions. The board comes without pre-mounted headers, allowing the use of various types of connectors or direct soldering of wires. The pin layout is compatible with the Arduino Mini.
The Arduino Pro Mini was designed and is manufactured by SparkFun Electronics.
Specifications
Microcontroller
ATmega328P
Board Power Supply
5-12 V
Circuit Operating Voltage
5 V
Digital I/O Pins
14
PWM Pins
6
UART
1
SPI
1
I²C
1
Analog Input Pins
6
External Interrupts
2
DC Current per I/O Pin
40 mA
Flash Memory
32 KB of which 2 KB used by bootloader
SRAM
2 KB
EEPROM
1 KB
Clock Speed
16 MHz
Dimensions
18 x 33.3 mm (0.7 x 1.3")
Downloads
Eagle files
Schematics
The Arduino Uno is an open-source microcontroller development system encompassing hardware, an Integrated Development Environment (IDE), and a vast number of libraries. It is supported by an enormous community of programmers, electronic engineers, enthusiasts, and academics. The libraries in particular really smooth Arduino programming and reduce programming time. What’s more, the libraries greatly facilitate testing your programs since most come fully tested and working.
The Raspberry Pi 4 can be used in many applications such as audio and video media devices. It also works in industrial controllers, robotics, games, and in many domestic and commercial applications. The Raspberry Pi 4 also offers Wi-Fi and Bluetooth capability which makes it great for remote and Internet-based control and monitoring applications.
This book is about using both the Raspberry Pi 4 and the Arduino Uno in PID-based automatic control applications. The book starts with basic theory of the control systems and feedback control. Working and tested projects are given for controlling real-life systems using PID controllers. The open-loop step time response, tuning the PID parameters, and the closed-loop time response of the developed systems are discussed together with the block diagrams, circuit diagrams, PID controller algorithms, and the full program listings for both the Raspberry Pi and the Arduino Uno.
The projects given in the book aim to teach the theory and applications of PID controllers and can be modified easily as desired for other applications. The projects given for the Raspberry Pi 4 should work with all other models of Raspberry Pi family.
The book covers the following topics:
Open-loop and closed-loop control systems
Analog and digital sensors
Transfer functions and continuous-time systems
First-order and second-order system time responses
Discrete-time digital systems
Continuous-time PID controllers
Discrete-time PID controllers
ON-OFF temperature control with Raspberry Pi and Arduino Uno
PID-based temperature control with Raspberry Pi and Arduino Uno
PID-based DC motor control with Raspberry Pi and Arduino Uno
PID-based water level control with Raspberry Pi and Arduino Uno
PID-based LED-LDR brightness control with Raspberry Pi and Arduino Uno
This complete STM32 microcontroller programming course features a textbook, a component kit, hands-on projects, and a comprehensive online course. It is ideal for step-by-step learning of embedded systems programming in MicroPython using a practical, hands-on approach.
A Practical Introduction to Embedded Systems with the STM32
This course is designed for people who are new to embedded systems and looking for a structured, example-driven way to get started. A kit of parts comprising LEDs and resistors, switches, sensors and actuators, displays, a breadboard and wires, and more is included. These are used in the course to illustrate example applications.
No prior experience with MicroPython or embedded development is required. Each section features hands-on examples and mini projects designed to reinforce key concepts and inspire deeper exploration. By the end of the course, you’ll be able not only to reproduce the examples but also to build on them with your own ideas and applications.
What Will You Learn?
Microcontroller programming in MicroPython on the STM32 using the Thonny IDE
Working with Digital I/O, read buttons and encoders, control LEDs and relays
Read analog inputs, voltages, and analog sensors
Generating analog output signals and PWM
Use serial communication like UART, I²C and SPI to control displays and read digital sensors and SD cards
Managing time
Working with interrupts
Real-time sensor input and control via buttons, LEDs, and displays
Control actuators like relays and servo motors
Who Is It For?
Students and self-learners exploring embedded systems
Makers and IoT enthusiasts looking to improve their hardware skills
Educators and trainers seeking ready-to-teach material
What's Inside the Box?
Access to the full course on the Elektor Academy Pro Learning Platform
STM32 NUCLEO-F411RE microcontroller board
Book: MicroPython for STM32
Downloadable project files for every module
Component Box:
2× LED, red, 5 mm
LED, green, 5 mm
3× Resistor, 470 Ω, 0.25 W
LDR
Potentiometer, 10 kΩ, linear
Pushbutton
Rotary encoder module
Relay module
DHT22 Humidity & Temperature Sensor
TM1637-compatible 4-digit 7-segment display
MPU-6050 IMU with headers
SSD1306-compatible I²C OLED display
Micro SD card adapter with header
Buzzer
SG90 Micro Servo
ILI9341-compatible SPI 240×320 TFT display
20× Jumper wires
Breadboard
Master digital electronics – the hands-on way!
This bundle includes the book Learning Digital Electronics, featuring 20+ practical projects in Logic and Circuit design, as well as a 100-piece kit – so you can start building logic circuits, counters, displays, and more right away.
Learning Digital Electronics (Book)
This book is a practical guide to digital electronics, covering the essential components of modern digital systems: number systems, logic gates, Boolean algebra, combinational and sequential logic, and more.
Through more than 20 structured projects, you’ll design and build digital systems using real-world components such as logic gates, multiplexers, decoders, flip-flops, counters, and shift registers. The projects range from basic LED logic circuits to digital locks, display systems, traffic light controllers, and timing-based designs.
Selected projects introduce the use of tools such as CircuitVerse for circuit simulation, while several designs make use of 74HC-series logic devices, commonly used in digital hardware prototyping.
Inside, you’ll find:
Clear coverage of number systems and binary arithmetic
Logic gate fundamentals and universal gate implementations
Step-by-step projects using flip-flops, counters, and registers
Real-world design with 74HC-series logic chips
Techniques for designing combinational and sequential systems
This book takes a design-first, application-driven approach to digital electronics—built around working circuits, tested logic, and hands-on experimentation.
Learning Digital Electronics (Kit)
This kit has been specially developed to complement the book "Learning Digital Electronics". Since all necessary components are included, you can complete every practical project in the book directly.
Kit contents
2x 74HC08 AND gate chip
2x 74HC00 NAND gate chip
1x 74HC86 XOR gate chip
1x 555 timer chip
1x 74HC161 counter chip
1x 74HC164 shift register
1x CD4511 7-segment decoder
1x CD4027 JK flip-flop
1x BC337 NPN transistor
1x KPS-5161 7-segment common-cathode display
1x Light dependent resistor (LDR)
4x 10 KΩ resistors
8x 1 KΩ resistor
2x 47 KΩ resistors
1x 100 KΩ resistor
4x 2.7 KΩ resistors
1x 5.6 KΩ resistor
1x 150 KΩ resistor
1x 10 μF capacitor
2x 0.01 μF capacitor
2x 100 nF capacitor
8x Small red LED
1x Small green LED
1x Small orange LED
4x Pushbutton switches
1x Active buzzer
1x Battery holder for 3x AA batteries (batteries not included)
1x Breadboard
40x Male-to-male jumper wires (length: 200 mm)