Dit boek gaat over de Raspberry Pi, en over het programmeren in C. De programmeertaal C en het besturingssysteem Linux (Raspbian) passen uitstekend bij elkaar. Alles wat we nodig hebben om in C te programmeren wordt meegeleverd met het besturingssysteem van de Raspberry Pi.
In dit boek leert u hoe C gebruikt wordt met de Raspberry Pi, en krijgt u een overzicht van de taal.
WiringPi is een softwarebibliotheek voor de Raspberry Pi waarmee C hardware-uitbreidingen kan benaderen. Die bibliotheek wordt gebruikt om sensoren uit te lezen en om extra hardware aan te sturen. U gaat experimenteren met LED’s en schakelaars, met motoren, met geluid en met sensoren voor temperatuur, luchtdruk, en luchtvochtigheid.
Met een Linux-systeem kunt u een webserver maken, inclusief interactieve websites met PHP en WiringPi. Daarom is ook een beknopt overzicht van HTML en PHP in het boek opgenomen. In de voorbeelden worden sensoren via het web uitgelezen en worden apparaten bestuurd. In het laatste voorbeeld wordt een temperatuurlogger gemaakt. Die meet elk kwartier de temperatuur. Een tabel met de meetwaarden kan via het web worden uitgelezen.
Alle voorbeeldprogramma’s kunnen worden gedownload van de website van Elektor.
Learn RC and RL Filters with Hands-On Circuits and Simulation
Introduction to Electronic Filters is your comprehensive guide to understanding, designing, and applying first-order electronic filters using resistors, capacitors, and inductors. Whether you are a student, maker, or educator, this book demystifies the theory behind RC and RL filters and bridges the gap between concepts and real-world applications through simulation and experimentation.
From the basics of frequency response and phase shift to hands-on breadboard builds and Python-based simulations, this book offers a deeply practical learning experience. You will learn to analyse filters using Bode plots and phasors, and explore applications in audio tone shaping, sensor signal conditioning, noise reduction, and power supply filtering.
As you progress, you’ll build, measure, simulate, and tune filters using modern tools like CircuitLab, Python, and the Analog Discovery 3. Each chapter includes thoughtfully crafted activities that reinforce learning by doing – designing filters for specific tasks, simulating dynamic behaviour, and observing how theory translates into performance.
Inside you’ll find:
A clear introduction to the fundamentals of electronic filters
Detailed explanations of RC and RL filters, cutoff frequency, and phase
Guided activities using both simulation and hardware tools
Real-life applications in audio, sensors, power supplies, and more
A beginner-friendly primer on Python and algebra for electronics
Whether you’re working through simulations or experimenting with real components on your workbench, this book will help you develop a solid understanding of electronic filters and their role in practical circuits.
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sind Sie noch kein Mitglied? Hier klicken!
Raspberry Pi Pico als Spektrum-Analyser FFTs auf preiswerter Hardware-Basis
±40 V linearer Spannungsregler Eine alternative Stromversorgung für die Fortissimo-100-Endstufe ... und andere!
Drahtlose MCU-Kommunikation flexibel gemacht EEPROM eröffnet Netzwerk-Perspektiven für drahtlose MCUs
5.000 € zu gewinnen! Machen Sie mit beim STM32 Wireless Innovation Design Contest!
2023: Odyssee in der KI Loslegen mit dem Code-Interpreter von ChatGPT
LoRa, ein Schweizer Taschenmesser Teil 1: Das LoRa-Protokoll und seine Vorteile
Einstellbare Stromsenke mit integriertem Taktgeber Zum Testen von Netzteilen, Spannungswandlern und Batterien
Zwei neue Arduino UNO R4 Boards: Minima und WiFi
Logarithmische Potentiometer Sie sind exponentiell!
Motortreiber-Breakout-Board Ein BoB für einen 5-A-Treiber für DC-Motoren mit einer Größe von 3×3 mm
Aus dem Leben gegriffen Gefährliche Elektronik
Ist Mobilfunk die energiesparendste Option für das IoT? LTE-M und NB-IoT: Energieanforderungen in LPWAN-Implementierungen
Kabellose Kommunikation in IoT-Systemen mit MKR Modulen von Arduino Kommunikationsstandards des Arduino-Moduls für IoT
AC-Verluste in magnetischen Bauteilen Erhalten Sie heiße Induktivitäten!
Messungen für eine optimale Cloud-Implementierung
Matter-Implementierung: Was braucht es, um Matter-Geräte einzusetzen?
Neue 2,4 GHz-Funkeinheiten von Circuit Design Prädestiniert für Fernsteuerung und Überwachung
PIC o'Clock – am Puls der Zeit Design eines SDR-Zeitzeichen-Empfängers
Sorgfaltspflichtrichtlinie „Weiter so“ ist nicht genug
Aller Anfang... Ist gar nicht schwer: Spannungsverstärkung
Infraschall-Rekorder mit dem Arduino Pro Mini Ein Beispielprojekt aus dem Elektor-Buch „Arduino & Co.“
Cloud-basierter Energiezähler Mit ESP32-Modul und PZEM-004T-Spannungs-/Stromsensor
Eine Anleitung zur Bare-Metal-Programmierung Teil 2: Exaktes Timing, UART und Debugging
Affordable solutions with the ESP8266 and 3D printing
If you are looking for a small yet powerful IoT device, you are likely to come across the ESP8266 and compatible products on the market today. One of these, the Wemos/Lolin D1 Mini Pro board strikes a remarkable balance between cost and performance. A small and very affordable prototype board, the D1 Mini Pro stands out with its WiFi functionality and a 16-Mbytes flash memory for easy creation of a flash file system. In addition, there are sufficient input and output pins (only one analog input though) to support PWM, I²C, and One-Wire systems to mention but a few. The book describes the operation, modding, construction, and programming of home appliances including a colorful smart home accessory, a refrigerator/greenhouse controller, an AC powerline monitor, a door lock monitor, and an IKEA Trådfri controller.
As a benefit, all firmware developed for these DIY, "IoT-ized" devices can be updated over-the-air (OTA).
For most of the designs in the book, a small printed circuit board (PCB) and an enclosure are presented so readers can have a finished and attractive-looking product. Readers having – or with access to! – a 3D printer can "print" the suggested enclosures at home or in a shop.
Some of the constructions benefit from a Raspberry Pi configured as a gateway or cms server. This is also described in detail with all the necessary configuring.
You don’t need to be an expert but the prerequisites to successful replication of the projects include basic skills with PC software including the ability to surf the Internet. In terms of hardware, you should be comfortable with soldering and generally assembling the PCBs presented in the book.
All custom software written for the IoT devices, the PCB layouts, and 3D print files described in the book are available for free downloading.
AI Projects for the Raspberry Pi with the AI HAT+
Edge AI is transforming everyday devices by putting intelligence where it matters most: directly inside the hardware. With on-device inference, a camera can recognize a visitor instantly, a phone can translate speech without streaming audio to the cloud, and a wearable can detect anomalies in real time—fast, private, and reliable even when the network disappears.
This book is your practical guide to building exactly those kinds of systems with the Raspberry Pi AI HAT+ and the Hailo-8L accelerator. You’ll start with clear foundations: core AI and machine-learning concepts, how neural networks work, and what truly distinguishes Edge AI from cloud AI—plus an honest look at ethical considerations and future impacts.
Then it’s straight to hands-on physical computing. Step by step, you’ll set up Raspberry Pi OS, power and cooling, and develop in Python using the Thonny IDE. You’ll learn GPIO basics with lights and servos, mount the AI HAT+ hardware, install and verify the Hailo software stack, and connect the right camera—official modules or USB webcams, even multiple cameras.
From your first pipeline to real projects, you’ll run person detection, pose estimation, segmentation, and depth estimation, then level up with YOLO object detection: smart alerts, guest counters, and custom extensions. You’ll even connect vision to motion by combining gesture recognition with servo-driven mechanisms, including a robotic arm.
With troubleshooting tips, hardware essentials, and a practical Python refresher, this book turns Edge AI from buzzword into buildable reality.
The newcomer to Microchip’s PIC microcontrollers invariably gets an LED to flash as their first attempt to master this technology. You can use just a simple LED indicator in order to show that your initial attempt is working, which will give you confidence to move forward. This is how the book begins — simple programs to flash LEDs, and eventually by stages to use other display indicators such as the 7-segment display, alphanumeric liquid crystal displays and eventually a colour graphic LCD.
As the reader progresses through the book, bigger and upgraded PIC chips are introduced, with full circuit diagrams and source code, both in assembler and C.
In addition, a small tutorial is included using the MPLAB programming environment, together with the EAGLE schematic and PCB design package to enable readers to create their own designs using the book’s many case studies as working examples to work from.
Aus der Reihe "Stromversorgung ohne Stress" (Band 4)
Renaissance der linearen Stromversorgungen
Mittlerweile gibt es fast nur noch Schaltnetzteile. Da diese rauschen und stören, sind sie nicht für alle Einsatzzwecke die beste Wahl. Ursache sind durch den Schaltbetrieb erzeugte Hochfrequenzschwingungen, die in die Netzleitung und die Umgebung strahlen.
Lineare Netzteile liefern Gleichspannungen von höchster Qualität. Über Brummen und Rauschen braucht man sich wenig Sorgen zu machen. Auch der Aufbau ist im Vergleich zu Schaltnetzteilen unkritisch. Wenn man überhaupt von Nachteilen bei linearen Netzteilen sprechen kann, wäre nur das höhere Gewicht zu nennen.
Lineare Stromversorgungen sind auch einfach zu verstehen, können aus Standard-Bauteilen aufgebaut werden, sind leicht zu modifizieren und reparaturfähig und damit nachhaltig.
In diesem Buch geht es um den Entwurf und den Bau von linearen Stromversorgungssystemen für kleine und große Leistungen. Aber auch Randthemen wie die lineare Steuerung von Verbrauchern und Kompromissen aus Kombinationen von Schaltnetzteil und linearem Netzteil oder Hilfsschaltungen wie lineare Lasten sind Bestandteil des Buches. Bei dieser Gelegenheit gibt es ausreichend Raum für die Besprechung der Grundlagen, der technischen Details, der Fallstricke und von Tipps und Tricks.
In dit boek gebruiken we JAL (Just Another Language) om de PIC-microcontroller te programmeren in 60 oefeningen. JAL is makkelijk in gebruik en is een goede basis om programmeren in andere talen snel te leren. Na het lezen en toepassen van de voorbeelden in dit boek kan iedereen die zich hierin serieus heeft verdiept met behulp van JAL zelf de microcontroller aansturen. Je leert onder meer het programmeren van timers, analoog/digitaal omzetters, comparators, pulsbreedte regeling voor motoren en geluid, LED- en LCD-scherm aansturing, USB-connectie en communicatiemogelijkheden met computers of andere microcontrollers.
Ook weet je aan het eind van het boek wat je moet doen om nu nog onbekende mogelijkheden te gaan toepassen. Met deze kennis kan iedereen van beginner tot meer gevorderde zijn creativiteit vorm geven in projecten met microcontrollers.
Wil je verder met leren programmeren dan legt dit boek ook een zeer goede basis. Wie goed met JAL overweg kan en zich de gestructureerde wijze van denken heeft aangeleerd, zal de stap naar andere programmeertalen zoals Python, C++ enz. kunnen maken. Ook het programmeren van minicomputers zoals de Raspberry Pi en Arduino zijn mogelijkheden.
Om te starten is geen kennis van elektronica nodig. Wie niets weet van elektronica, krijgt overal in het boek de noodzakelijke kennis aangereikt. Alle belangrijke en benodigde informatie staat in de tekst.
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
Arduino Portenta Machine Control and Arduino Portenta H7A CAN-to-MQTT Gateway Demo Project
Unboxing the Elektor LCR Meter with David Cuartielles
MicroPython Enters the World of Arduino
Connected Projects, SimplifiedDive Into the Arduino Cloud
Introduction to TinyMLBig Is Not Always Better
Arduino K-Way
Writing Arduino Sketches Just Got Better
Get to Know Arduino
Getting Started with the Portenta X8Manage Software Securely with Containers
Build, Deploy, and Maintain Scalable, Secure ApplicationsWith Arduino Portenta X8 Featuring NXP’s i.MX 8M Mini Applications Processor and EdgeLock SE050 Secure Element
How I Automated My HomeArduino CEO Fabio Violante Shares Solutions
Altair 8800 SimulatorHardware Simulation of a Vintage Computer
MS-DOS on the Portenta H7Run Old-School Software on Contemporary Hardware
Grow It YourselfA Digitally Controlled, Single-Box Solution for Indoor Farming
Save the Planet With Home Automation?MQTT on the Arduino Nano RP2040 Connect
Go Professional with Arduino Pro
Smart Ovens Take a Leap Into the Future
Tagvance Builds Safer Construction Sites with Arduino
Santagostino Breathes Easywith Remote Monitoring that Leverages AI for Predictive Maintenance
Security Flies High with RIoT Secure’s MKR-Based Solution
Open-Source Brings a New Generation of Water Management to the World
SensoDetect Deforestation with Sound Analysis
The Mozzi Arduino Library for Sound SynthesisInsights from Tim Barrass
The New Portenta X8 (with Linux!) and Max Carrier Redefine What’s Possible
How Using Arduino Helps Students Build Future Skills
Must-Haves for Your Electronics Workspace
The Importance of Robotics in Education
Dependable IoT Based Upon LoRa
Unboxing the Portenta Machine Control
8-Bit Gaming with Arduboy
Reducing Water Usage at Horseback Riding TracksAn IoT to Constantly Monitor Soil Humidity and Temperature Levels
The Panettone ProjectA sourdough starter management and maintenance system
Supporting Arduino Resellers
Space Invaders with Arduino
Art with ArduinoInspiring Insights from Artists and Designers
Arduino Product Catalogue
The Future of Arduino
IMAGE PROCESSING WITH THE NVIDIA JETSON NANO (PART 2)Image Recognition Using Edge Impulse
ELEKTOR JUMPSTARTER NEWSUpcoming Campaigns
AN OPEN-SOURCE GPS TRACKING PLATFORMTraccar Maps Vehicle Tracking Without the Need for a Third-Party Cloud Server
JOY-IT LCR-T7 MULTI-FUNCTION TESTERTesting Passives, Discrete Semiconductors and IR Remote Controls
NOISE SYNTHESIZERFrom Noise to Music with the PRBSynth1
STARTING OUT IN ELECTRONICSEasier than Imagined! ... Continuing with the Coil
UNDERSTANDING THE NEURONS IN NEURAL NETWORKS (PART 2)Logical Neurons
ISSUES WITH SECURITY? FIGHT FIRE WITH FIRE!Flashbulb-Protected Analogue Memory Add-on For the Tamper-Evident Box LCR METER POSTER
BLUETOOTH BEACONS IN PRACTICEBeacons Light the Way Ahead
C PROGRAMMING ON RASPBERRY PICommunicating over Wi-Fi (Sample Chapter)
EMC PRE-COMPLIANCE TEST FOR YOUR DC-POWERED PROJECT (PART 2)The Hardware and How to Use It
HANDS ON THE PARALLAX PROPELLER 2 (PART 5)Inside the Smart Pin
MODBUS OVER WLAN (PART 1)Hardware and Programming
HOMELAB TOURSWhere the Junior Computer Is Brought to Life Again
BUILD YOUR OWN HIGH-PRECISION CALIBRATOR-10 V to +10 V, 0 to 40 mA, 0.001%
ARDUINO NANO RP2040 CONNECTRaspberry Pi RP2040 + Wi-Fi + Bluetooth THE PHYSICAL BODY OF ARTIFICIAL INTELLIGENCE
ERR-LECTRONICSCorrections, Updates and Readers’ Letters
CREATE GUIS WITH PYTHONIntroducing guizero
CO2 METER KIT FOR THE CLASSROOMAn ESP8266-Based Device from the University of Applied Sciences Aachen
NOSTALGIC MK484 MW/LW RADIO...Always Fun to Build!
ELEKTOR @ 60Let There Be Light!
HEXADOKUThe Original Elektorized Sudoku
Die serielle Schnittstelle dient dem Datenaustausch zwischen Mikrocontrollern und Peripheriegeräten. Bei einer seriellen Datenübertragung werden die Bits nacheinander – also seriell – über eine Leitung übertragen. Das Wissen um diese seriellen Schnittstellen erweitert die Einsatzmöglichkeiten von Mikrocontrollern und Peripheriegeräten ungemein.
In diesem Buch werden die Grundlagen der Kommunikation für die drei seriellen Schnittstellen I²C, SPI und 1-Wire vorgestellt. Anhand praxisnaher Beispiele werden die Schnittstellen anschaulich dargestellt und deren Einsatz verdeutlicht. Software- und Hardwarebeispiele, die man in diesem Buch finden kann, wurden in Assembler für PIC-Mikrocontroller von Microchip realisiert. Die verwendeten Algorithmen und Vorgehensweisen kann man aber auf beliebige Plattform übertragen.
Um den Inhalt des Buches ansprechend zu gestalten, demonstriert der Autor den Buchinhalt an zwei Platinen. Mit diesen Platinen ist es möglich, die in diesem Buch beschriebenen Beispiele auszuprobieren und mit den Schnittstellen zu experimentieren. Beide Platinen basieren auf 8-bit-PIC-Mikrocontrollern von Microchip.