Technology is constantly changing. New microcontrollers become available every year. The one thing that has stayed the same is the C programming language used to program these microcontrollers. If you would like to learn this standard language to program microcontrollers, then this book is for you!
Arduino is the hardware platform used to teach the C programming language as Arduino boards are available worldwide and contain the popular AVR microcontrollers from Atmel.
Atmel Studio is used as the development environment for writing C programs for AVR microcontrollers. It is a full-featured integrated development environment (IDE) that uses the GCC C software tools for AVR microcontrollers and is free to download.
At a glance:
Start learning to program from the very first chapter
No programming experience is necessary
Learn by doing – type and run the example programs
A fun way to learn the C programming language
Ideal for electronic hobbyists, students and engineers wanting to learn the C programming language in an embedded environment on AVR microcontrollers
Use the free full-featured Atmel Studio IDE software for Windows
Write C programs for 8-bit AVR microcontrollers as found on the Arduino Uno and MEGA boards
Example code runs on Arduino Uno and Arduino MEGA 2560 boards and can be adapted to run on other AVR microcontrollers or boards
Use the AVR Dragon programmer/debugger in conjunction with Atmel Studio to debug C programs
Met de Raspberry Pi heeft u voor slechts een paar tientjes een complete computer in handen, waar op eenvoudige wijze allerlei elektronica aangesloten kan worden. In deze 2e herziene en uitgebreide versie gaan we in op een van de sterke kanten van de Raspberry Pi: de combinatie van programmeren en elektronica.
Na een korte introductie van de Raspberry Pi wordt de benodigde software geïnstalleerd. Op de SD-kaart die u bij dit boek kunt aanschaffen, is die allemaal al aanwezig voor de Raspberry Pi. Aan de (optionele) Windows PC kant gebeurt dit met gratis software die u kunt downloaden.
Daarna volgt een beknopte inleiding in het besturingssysteem Linux en gaan we programmeren in Bash, Python en JavaScript. De nadruk ligt hierbij op Python, maar in alle gevallen houden we het kort. We bespreken net voldoende zodat u de projecten kunt begrijpen en aan uw wensen aanpassen, en gaan dan aan de slag met leuke projecten.
Maar liefst 45 spannende en interessante projecten worden in detail besproken en uitgelegd. Van wisselknipperlicht, aansluiten van een elektromotor, het verwerken en maken van analoge signalen tot lichtmeter en temperatuurregeling. Maar ook gecompliceerdere projecten zoals een motorsnelheidsregeling, webserver met CGI, client-server applicaties en Xwindows programma‘s. U kunt dit boek gebruiken als projecten boek en de projecten nabouwen en in de praktijk inzetten. Door de duidelijke uitleg, schema‘s en foto‘s van de opstellingen op een steekbord wordt het nabouwen een erg leuke bezigheid.
RPi
Alle software voor de RPi is voorgeïnstalleerd op een SD-kaart die u bij dit boek kunt aanschaffen. Dat wil zeggen dat alle software en drivers voor SSH, SPI, I²C, GPIO, PWM, muziek, Python Ontwikkelversie, wxPython, IdleX en de seriële verbinding gegarandeerd werken. Tevens staan alle broncodes van de projecten uitdit boek op deze kaart.
Windows-PC
In het gratis download-pakket dat bij dit boek hoort, vindt u de software die in dit boek gebruikt wordt op de Windows-PC handig bij elkaar in een enkel ZIP-bestand. Alle software is gratis. Tevens bevat het pakket een filmpje van de Nutteloze Doos (Useless Machine) van project 13.4.
Software download-pakket
WinOscillo
Putty
Xming
WinSCP
DiskImager
Notepad2
IdleX
Useless Box film
Dieses Buch nimmt Sie mit auf eine Entdeckungsreise in die Welt der digitalen Elektronik. Nach dem Aufbau einer soliden Wissensbasis hierüber verlagert sich der Schwerpunkt zur programmierbaren Logik. Wie lassen sich mit vorhandenen Bausteinen logische Systeme aufbauen und wie koppelt man sie sicher und störungsfrei an die analoge Außenwelt? Das sind Fragen, die das Buch beantwortet.
Moderne logische Systeme sind so komplex, dass deren Aufbau mit separaten Bauelementen wie einzelnen Gattern, Flipflops, Zählern oder Teilern eine fast unmögliche Aufgabe ist. Deshalb beschäftigt sich das Buch in der zweiten Hälfte mit der programmierbaren Logik in Form von FPGA- und CPLD-ICs. Sie lernen Methoden kennen, die als Brücke zwischen dem klassischen Design und der zeitgemäßen Entwicklung mit FPGA fungieren. Neben dem schematischen FPGA-Entwurf setzt sich das Buch auch mit Sprachen wie Verilog und VHDL auseinander. Das abschließende Projekt, eine Uhr mit Alarmfunktion in Verilog und VHDL, zeigt den praktischen Nutzen der programmierbaren Logik.
Neben den erforderlichen Programmierkenntnissen ist auch der praktische Schaltungsaufbau von Bedeutung. Der Autor erläutert die wesentlichen Bedingungen hierfür, beispielsweise die der erforderlichen Stromversorgung und der optimalen (Analog-)Signalverarbeitung.
Alle in diesem Buch besprochenen Beispiele lassen sich mit der kostenfreien FPGA-Entwicklungsumgebung Quartus von Altera realisieren.
Mastering the I²C Bus takes you on an exploratory journey of the I²C Bus and its applications. Besides the Bus protocol, plenty of attention is given to the practical applications and designing a stable system. The most common I²C compatible chip classes are covered in detail.
Two experimentation boards are available that allow for rapid prototype development. These boards are completed by a USB to I²C probe and a software framework to control I²C devices from your computer. All samples programs can be downloaded from the 'Attachments/Downloads' section on this page.
Projects built on Board 1:
USB to I²C Interface, PCA 9534 Protected Input, PCA 9534 Protected Output, PCA 9553 PWM LED Controller, 24xxx EEPROM Module, LM75 Temperature Sensor, PCA8563 Real-time Clock with Battery Backup, LCD and Keyboard Module, Bus Power Supply.
Projects built on Board 2:
Protected Input, Protected Output, LM75 Temperature Sensor, PCF8574 I/O Board, SAA1064 LED Display, PCA9544 Bus Expander, MCP40D17 Potentiometer, PCF8591 AD/DA, ADC121 A/D Converter, MCP4725 D/A Converter, 24xxx EEPROM Module.
Die WiFi-Module der chinesischen Firma Espressif haben schon längst die Maker-Community erobert, bieten sie doch zu einem konkurrenzlosen Preis MCU- und WiFi-Funktionalität. Mit einfachen Mitteln lässt sich ein Arduino mit einem ESP-Modul um WiFi erweitern. Die globale Bastler-Gemeinde ersetzte schon bald die integrierte Firmware mit eigener Firmware, sodass Entwickler ESP-Boards wie Arduino-Boards programmieren können. Der neue ESP32 geht einen Schritt weiter und ist in jeder Beziehung leistungsfähiger als der ESP8266. Zudem besitzt er nun Bluetooth-Funktionalität.
Der ESP32 verfügt über einen 240-MHz-Zweikern-Mikroprozessor mit einer Performanz von 600 DMIPS. Neben 520 KByte SRAM befinden sich 16 MByte Flashspeicher an Board. Zur Kommunikation mit der Außenwelt enthält das System-on-a-Chip die 802.11-b/g/n-WiFi-Komponente HT40 und Bluetooth-Funktionalität. Als Sensoren bietet der ESP32 einen Hall-Sensor, eine zehnfache, kapazitive Touch-Schnittstelle, einen analogen Verstärker für niedrige Signale und einen 32-kHz-Kristallquartz.
Der Bestseller-Autor Erik Bartmann hat sich ausführlich mit dem ESP32 beschäftigt. Heraus gekommen ist dabei Das ESP32-Praxisbuch, in dem er die Leser Schritt für Schritt in die Arbeit mit diesem preiswerten WiFi-Mikrocontroller einführt.
A Fast-Lane Ride From Concept to Project
The core of the book explains the use of the Raspberry Pi Zero 2 W running the Python programming language, always in simple terms and backed by many tested and working example projects. On part of the reader, familiarity with the Python programming language and some experience with one of the Raspberry Pi computers will prove helpful. Although previous electronics experience is not required, some knowledge of basic electronics is beneficial, especially when venturing out to modify the projects for your own applications.
Over 30 tested and working hardware-based projects are given in the book, covering the use of Wi-Fi, communication with smartphones and with a Raspberry Pi Pico W computer. Additionally, there are Bluetooth projects including elementary communication with smartphones and with the popular Arduino Uno. Both Wi-Fi and Bluetooth are key features of the Raspberry Pi Zero 2 W.
Some of the topics covered in the book are:
Raspberry Pi OS installation on an SD card
Python program creation and execution on the Raspberry Pi Zero 2 W
Software-only examples of Python running on the Raspberry Pi Zero 2 W
Hardware-based projects including LCD and Sense HAT interfacing
UDP and TCP Wi-Fi based projects for smartphone communication
UDP-based project for Raspberry Pi Pico W communication
Flask-based webserver project
Cloud storage of captured temperature, humidity, and pressure data
TFT projects
Node-RED projects
Interfacing to Alexa
MQTT projects
Bluetooth-based projects for smartphone and Arduino Uno communications
With Examples for Arduino UNO, Raspberry Pi Pico and ESP32
Programming small electronic systems has never been more accessible. Tasks that once demanded expensive tools, specialized hardware, and deep electrical engineering expertise can now be tackled with low-cost development boards and approachable software. At the centre of this shift is the Arduino environment, which provides a unified and familiar way to program a wide range of microcontroller platforms—from classic AVR boards like the Arduino UNO to modern ARM-based boards such as the Raspberry Pi Pico, and powerful Wi-Fi-enabled devices like the ESP32.
This book introduces embedded programming through the core idea that defines all microcontrollers: reading inputs, processing information, and controlling outputs in a predictable loop. The Arduino environment abstracts much of the hardware complexity, allowing you to focus on behaviour rather than implementation details. With just a few lines of code, you can blink LEDs, read sensors, control motors, and communicate with other devices.
While the Arduino UNO, Raspberry Pi Pico, and ESP32 boards differ greatly in performance and features, they share the same fundamental building blocks: digital and analog I/O, timers, serial communication, PWM, interrupts, and power management. Learning these concepts within the Arduino framework builds skills that transfer easily across platforms and scale toward more advanced applications.
By exploring multiple boards while maintaining a consistent programming approach, this book helps you progress from simple experiments to confidently produce well-structured designs—showing that embedded development can be both practical and enjoyable.
Open-Source-Code mit Arduino IDE und PlatformIO
Autonomes Fahren: GPS, Accelerometer, Gyroskop
PS3-Controller
Mikrocontroller wie der Arduino und Einplatinenrechner wie der Raspberry Pi haben sich zu beliebten Komponenten entwickelt. Dritter im Bunde ist der ESP32 der Firma Espressif. Mikrocontroller dieser Baureihe zeichnen sich durch eine Vielzahl implementierter Funktionen aus, die bei einem Arduino konventioneller Prägung mit einem Atmel-AVR-Mikrocontroller erst mit weiterer Hardware möglich sind. Prominentes Beispiel sind hier die WiFi- und Bluetooth-Funktionalitäten. Gegenüber einem Raspberry Pi zeichnen sie sich durch einen deutlich geringeren Preis aus.
Allgemeine Informationen für die Realisierung eines Roboterauto-Projekts mit dem ESP32 sind leicht zu finden. Dabei handelt es sich aber oft nur um Ausführungen zu einem Teilaspekt, ohne inhaltliche oder funktionale Abstimmung. So ist nicht nur die Beschaffung der benötigten Informationen mühselig und zeitaufwändig, sie kann auch außerordentlich fehlerträchtig sein.
Ansatzpunkt dieses Buches ist, diese Lücke zu schließen. Es geht auf verschiedene Möglichkeiten eines Chassis ein, vermittelt nötige Kenntnisse und führt schrittweise von einer einfachen Motorsteuerung zu einem komplexen sensor- und sprachgesteuerten Roboterauto. Hacks rund um GPS und eine PlayStation 3 runden die Sache ab.
Inhalt
Bei der Reihenfolge der Kapitel wurde versucht – beginnend bei der Darstellung von grundlegenden Informationen – über die Lösung einfacher Aufgaben zu etwas anspruchsvolleren Techniken zu führen.
Der Mikrocontroller ESP32
Die Software erstellen
Die Stromversorgung
Rund um die Hardware
Das Chassis
Der Gleichstrommotor
Kabellose Steuerung über WiFi
Mit Sensoren Hindernisse erkennen
Eine eigene Roboterauto-App
Servo und Lichtsensor
GPS
Accelerometer / Gyroskop
PS3-Controller
Roboterauto-App
Hinweis zur Software
Die Dateien haben das Suffix (.cpp). Grund ist die Entwicklung mit PlatformIO. Mit Copy & Paste sollten sie auch in der Arduino-IDE verwendet werden können.
Ce livre vous emmène dans une visite éclair du développement d'applications Web full-stack à l'aide de Raspberry Pi. Vous apprendrez à créer une application à partir de zéro.
Vous acquerrez de l'expérience et des connaissances sur les technologies, notamment :
Le système d'exploitation Linux et la ligne de commande.
Le langage de programmation Python.
Les broches d'entrée-sortie à usage général (GPIO) du Raspberry Pi.
Le serveur Web Nginx.
Micro-framework Flask Python pour les applications Web.
JQuery et CSS pour créer des interfaces utilisateur.
Gérer les fuseaux horaires.
Création de graphiques avec Plotly et Google Charts.
Enregistrement des données avec Google Sheet.
Développement d'applets avec IFTTT.
Sécuriser votre application avec SSL.
Recevez des messages texte sur votre téléphone avec Twilio.
Ce livre vous apprend également comment configurer à distance un nœud de capteur Arduino sans fil et en collecter des données. Votre application Web Raspberry Pi sera capable de traiter les données du nœud Arduino de la même manière qu'elle traite les données de son capteur intégré.
Raspberry Pi Full Stack vous enseigne de nombreuses compétences essentielles à la création d'applications Web et Internet des objets.
L'application que vous construirez dans ce projet est une plate-forme sur laquelle vous pourrez vous développer. Ce n'est que le début de ce que vous pouvez faire avec un Raspberry Pi et les composants logiciels et matériels que vous apprendrez.
Ce livre est soutenu par l'auteur à travers un espace de discussion dédié.
This is the second edition of a book aimed at engineers, scientists, and hobbyists who want to interface PCs with hardware projects using graphical user interfaces. Desktop and web-based applications are covered.
The programming language used is Python 3, which is one of the most popular languages around: speed of programming being a key feature. The book has been revised and updated with an emphasis on getting the user to produce practical designs with ease – a text editor is all that is required to produce Python programs.
Hardware interfacing is achieved using an Arduino Uno as a remote slave. A full description and source code of the communication interface is given in the book. The slave provides digital and analog input and outputs. Multiple Unos can be included in one project with all control code written in Python and running on a PC One project involves a PIC microcontroller with the code provided that can be loaded into the PIC using the Uno.
The web applications and server are all implemented in Python, allowing you to access your electronic hardware over the Internet. The Raspberry Pi computer can be used as your web server. An introductory chapter is provided to get you started with using Linux.
The book is written for use with Debian or variations including Mint or Ubuntu. All of the programs in the book are freely available, ready to use and experiment with by way of a download from Elektor.