The XIAO ESP32-C3 board combines the ultra-compact form factor of the XIAO series with the full capabilities of the ESP32-C3 chip, including integrated Wi-Fi and Bluetooth 5.0. This book is a comprehensive, hands-on guide to getting the most out of this powerful yet affordable development board.
The author takes readers from the fundamentals to advanced projects. Starting with LED blinking and dimming, the book progresses to ADC and PWM for precise sensor interfacing and PWM-controlled lighting effects before moving on to building practical, real-world applications, including:
A Wi-Fi weather station with an OLED display and real-time online weather data
An ultrasonic parking assistant with audible feedback
A refrigerator monitoring probe with climate sensing and Deep Sleep for years of battery operation
A retro Pong game controlled by a touch-free sensor
A microphone-based party app that responds to claps
And much more: lighting control, reaction-time measurement, mains frequency analysis, soil moisture sensing, ambient LED lighting, and 7-segment displays
Wilt u in enkele minuten een programma maken op uw PC, dat communiceert met een microcontroller? Dit boek, samen met de Piccolino en gratis software, maakt dat mogelijk!
Als hardware wordt gebruik gemaakt van de Piccolino. Dit is een prototype platform met een moderne PIC16F887 microcontroller, dat gebruikt kan worden om razendsnel microcontroller opstellingen te maken. Alle basisvoorzieningen zijn aanwezig op de Piccolino, en door middel van de headers kunnen extra onderdelen eenvoudig aangesloten worden.
De Piccolino wordt geprogrammeerd met de krachtige maar eenvoudig te leren gratis programmeertaal JAL. Deze taal wordt zowel door hobbyisten als professionals gebruikt. Bovendien is een serie projectboeken in deze taal verkrijgbaar, en een lesboek waarmee u JAL kunt leren. Aan de PC kant wordt gebruik gemaakt van de eveneens eenvoudig te leren gratis programmeertaal Small Basic van Microsoft. Deze taal is speciaal ontwikkeld om snel Windows programma's te kunnen ontwikkelen, ook voor mensen die weinig of geen PC programmeer ervaring hebben. U leert verschillende technieken om een PC met een microcontroller te laten communiceren zoals losse communicatie, het versterken en verzwakken van signalen, verwerken van valse metingen, master-slave communicatie en synchronisatie met geforceerde reset.
Behalve theorie staan in het boek ook 15 leuke en praktische projecten. Door de duidelijke uitleg en instructies kunt u deze projecten zelf uitbreiden en helemaal aan uw eigen wensen aanpassen. Een paar voorbeelden uit het boek:
Meet signalen en toon ze op de PC
Maak een eigen muis of keyboard besturing.
Meet en analyseer componenten (Spoel / Condensator / Transistor / OPAMP) met automatische grafieken op uw PC.
Bestuur een servomotor vanaf de PC.
Verzamel metingen in de Piccolino en zet ze later over naar uw PC.
De combinatie van theorie en praktijkvoorbeelden in dit boek zorgt er voor dat u voor elk interface-probleem een oplossing bij de hand hebt, of weet hoe u er een moet maken.
Wie enigszins bekend is met moderne microprocessor systemen als Arduino, kent ongetwijfeld ook de problemen met dit soort kaarten. Ze zijn te duur om voor elk project een aparte kaart aan te schaffen en zijn bovendien nogal fors van formaat.
Het aardige van de ATtiny is dat de schijn bedriegt. Het lijkt een klein IC met een beperkt toepassingsgebied, maar het heeft een verbazingwekkend scala aan (speelse) mogelijkheden.
Dit boek beschrijft de enorme veelzijdigheid van de ATtiny microcontroller aan de hand van ongeveer vijftig leuke elektronica projecten, speciaal gericht op de beginner. De meeste ontwerpen zijn volledig uitgewerkt, enkele zijn meer als ontwerpidee gepresenteerd. De inhoudsopgave laat zien dat we ons op vele terreinen zullen begeven, van zonnevolger tot helling indicator. Dit boek is beslist geen theorieboek. Het is een boek dat gelezen zal worden met de soldeerbout in de hand.
Voor het programmeren van de ATtiny maken we dankbaar gebruik van een Arduino kaart. Als de Arduino ingesteld word als programmer, kunnen we er de meeste Arduino “sketches” mee overzetten naar de ATtiny. We wensen u veel plezier met het nabouwen van de schakelingen.
Learning Embedded Systems with STM32 Nucleo Boards
Programming compact electronic systems is now easier to get started with than ever before. Affordable development boards, powerful software tools, and readily available documentation make it possible to turn an idea into a working prototype in very little time. MicroPython plays an important role in this development by offering a readable, interactive way to control microcontrollers while still providing direct access to their hardware features.
This book explores embedded programming with MicroPython using an STM32-based Nucleo board. It shows how a microcontroller continuously interacts with its environment by reading inputs, processing information, and controlling outputs. Step by step, you will learn to flash LEDs, measure analog signals, work with sensors, control actuators, and exchange data with other devices. The built-in REPL makes it easy to test instructions immediately, inspect results, and learn through experimentation.
Although microcontroller boards differ in size, speed, memory, and peripherals, the fundamental concepts remain largely the same. Digital input and output, analog conversion, timers, PWM, interrupts, and serial communication are the essential building blocks of embedded applications.
By concentrating on these transferable principles, the book provides a foundation that remains useful when moving to other boards, processors, or development environments.
It is intended both for newcomers and for programmers who want to expand into embedded systems. MicroPython offers a practical route into this field, combining quick results with a clear understanding of how software and hardware work together.
Dit is een ideaal boek voor hobbyisten, studenten en ingenieurs die op een leuke manier C en het gebruik van een mbed ARM microcontroller willen leren, rechtstreeks op internet zonder ingewikkelde software-installatie.
De projecten in dit boek zijn bedoeld voor gevorderden op het gebied van ARM microcontrollers of de programmeertaal C. Dat wil zeggen dat de kennis uit deel 1 van deze serie bekend verondersteld wordt.
Cloud technologie
De in dit boek gebruikte mbed NXP LPC1768 maakt gebruik van cloud-technologie, een revolutionair concept voor software-ontwikkeling. Dit houdt in dat u geen software hoeft te installeren om de mbed te kunnen programmeren!
Het enige dat u nodig heeft, is een internet-browser zoals Microsoft Internet Explorer, en een USB-poort op uw PC. U kunt vanaf elke willekeurige PC waar dan ook ter wereld toegang krijgen tot uw project en er aan verder werken. Wanneer u klaar bent, kunt u met een paar eenvoudige klikjes met uw muis het programma overzetten naar uw mbed-hardware. Uiteraard kunt u de projecten ook downloaden en op uw eigen PC opslaan wanneer u dat liever heeft.
In een deel van de projecten wordt Visual Basic gebruikt; dit gratis pakket is nog niet in de cloud beschikbaar en moet wel op uw PC geïnstalleerd worden.
Onderwerpen die aan de orde komen
Leer het programmeren van een ARM microcontroller via cloud-technologie. Geen ARM ontwikkelsoftware-installatie op uw eigen PC.
Leer hoe u een ARM microcontroller met internet kunt verbinden, hoe u via internet uw ARM kunt bedienen en hoe u vanaf de ARM microcontroller tweets kunt versturen.
Leer hoe u een CMUcam camera kunt aansturen en toepassen in uw applicaties, bijvoorbeeld als alarm.
Leer hoe u met behulp van de gratis PC programmeertaal Visual Basic met uw ARM microcontroller kunt communiceren met gebruik van multi-threading.
Voorbeelden van projecten in dit boek: internet-server, automatisch twitteren, digitaal naar analoog conversie, USB HID, automatisch metingen in een spreadsheet plaatsen, met een camera bewegingen waarnemen, seriële communicatie met een zelfgeschreven PC-programma, gebruik van een LCD en SPI en I²C communicatie.
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.
If you enjoy DIY electronics, projects, software and robots, you’ll find this book intellectually stimulating and immediately useful. With the right parts and a little guidance, you can build robot systems that suit your needs more than overpriced commercial systems can.
20 years ago, robots based on simple 8-bit processors and touch sensors were the norm. Now, it’s possible to build multi-core robots that can react to their surroundings with intelligence. Today’s robots combine sensor readings from accelerometers, gyroscopes and computer vision sensors to learn about their environments. They can respond using sophisticated control algorithms and they can process data both locally and in the cloud.
This book, which covers the theory and best practices associated with advanced robot technologies, was written to help roboticists, whether amateur hobbyist or professional, take their designs to the next level. As will be seen, building advanced applications does not require extremely costly robot technology. All that is needed is simply the knowledge of which technologies are out there and how best to use each of them.
Each chapter in this book will introduce one of these different technologies and discuss how best to use it in a robotics application. On the hardware side, we’ll cover microcontrollers, servos, and sensors, hopefully inspiring you to design your own awe-inspiring, next-generation systems. On the software side, we’ll cover programming languages, debugging, algorithms, and state machines. We’ll focus on the Arduino, the Parallax Propeller, Revolution Education PICAXE and projects I’ve with which I’ve been involved, including the TBot educational robot, the PropScope oscilloscope, the 12Blocks visual programming language, and the ViewPort development environment. In addition, we’ll serve up a comprehensive introduction to a variety of essential topics, including output (e.g. LEDs, servo motors), and communication technologies (e.g. infrared, audio), that you can use to develop systems that interact to stimuli and communicate with humans and other robots. To make these topics as accessible as possible, handy schematics, sample code and practical tips regarding building and debugging have been included.
Hanno Sander
Christchurch, New Zealand
Die Mikrocontrollertechnologie ist eines der wichtigsten Gebiete der modernen Elektronik. Mikrocontroller haben sich in den letzten Jahren in allen Bereichen der modernen Technik etabliert. Der vorliegende Kurs gibt eine umfassende Einführung in die faszinierende Welt der Controllertechnik.
Nach grundlegenden Betrachtungen zur Controllertechnologie wird bereits im ersten Teil des Kurses auf die praktische Umsetzung des Stoffes eingegangen. Als Basis dafür dient ein modernes Entwicklungsboard (XMEGA-A3BU Xplained), das mit einem der aktuellsten Controller des Herstellers Atmel ausgestattet ist.
Der zweite Teil beschäftigt sich detailliert mit der Programmierung des Controllers. Hier kommt die Sprache „C“ zum Einsatz, da diese in der Firmware-Entwicklung eine dominierende Stellung einnimmt. Die bei weitem überwiegende Mehrheit der professionellen Entwicklungsarbeit wird in C ausgeführt. Diese Programmiersprache bietet eine umfassende Grundlage für alle Controlleranwendungen.
Im dritten Teil des Kurses wird schließlich auf die hardwarenahe Programmierung eingegangen. Nach der Durchsprache von Pin-Ansteuerung, Takterzeugung und Oszillatoroptionen werden die anspruchsvolleren Themen wie Interrupts, Timer und Counter, Pulsweitenmodulation und Analog-Digitalwandlung behandelt.
Der Kurs setzt auf die Philosophie des „Learning by Doing“. Er eignet sich dadurch hervorragend als praktische Ergänzung für Unterricht und Vorlesungen in
Weiterführenden Schulen
Technischen Berufsschulen und Fachakademien
Fachhochschulen und Universitäten
Aber auch der ambitionierte, nichtprofessionelle Anwender kann sich mit dem Lernmaterial einen Überblick über den neuesten Stand der Controllertechnik verschaffen.Umfangreiche Praxisbeispiele und Übungsprogramme runden den Kurs ab und lassen keine Fragen offen.
The Piccolino rapid development board can be used to design microcontroller circuits quickly. The Piccolino has a fast 16f887 PIC microcontroller, voltage regulator, and communications module, and can be easily extended using its four headers.
This e-book contains 30 projects based on the Piccolino. We'll use its unique communications facilities and get the Piccolino to communicate with programs on a PC. On the PC, we use the free programming language Small Basic. You can use this to create Windows programs with buttons and graphs quickly. You will learn how to analyze components such as inductors, capacitors, and OPAMPs, and how to display the measurement results in a graphical format. This will help you to design your circuits easily.
We will then start to adapt to the Piccolino. We'll add components to it to make it more powerful, with extra features such as flow control and digital to analog conversion. The clear instructions will enable you to design and build your adaptations. This way you can make your custom designed Piccolino.
We'll end up making an extension: a PCB that that can be mounted on the Piccolino headers. As an example, we'll design and build an extension for an LCD. You can use the included board layout to make your PCB or have it made for you. At the same time, you will learn how to make your extensions. The only limitation is your imagination!
The clear descriptions along with circuit diagrams and photos, will make the building of these projects an enjoyable experience. Each project has a clear explanation of the reasons why it was designed in a particular way. This helps you learn a lot about the Piccolino, as well as Small Basic, and the components that are used in this e-book. You can adapt the projects to suit your requirements or combine several projects.
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
Introduction to PLC programming with OpenPLC, the first fully open source Programmable Logic Controller on the Raspberry Pi, and Modbus examples with Arduino Uno and ESP8266
PLC programming is very common in industry and home automation. This book describes how the Raspberry Pi 4 can be used as a Programmable Logic Controller. Before taking you into the programming, the author starts with the software installation on the Raspberry Pi and the PLC editor on the PC, followed by a description of the hardware.
You'll then find interesting examples in the different programming languages complying with the IEC 61131-3 standard. This manual also explains in detail how to use the PLC editor and how to load and execute the programs on the Raspberry Pi. All IEC languages are explained with examples, starting with LD (Ladder Diagram) over ST (Structured Control Language) to SFC (Special Function Chart). All examples can be downloaded from the author's website.
Networking gets thorough attention too. The Arduino Uno and the ESP8266 are programmed as ModbusRTU or ModbusTCP modules to get access to external peripherals, reading sensors and switching electrical loads. I/O circuits complying with the 24 V industry standard may also be of interest for the reader.
The book ends with an overview of commands for ST and LD. After reading the book, the reader will be able to create his own controllers with the Raspberry Pi.
In this book the author presents all essential aspects of microcontroller programming, without overloading the reader with unnecessary or quasi-relevant bits of information. Having read the book, you should be able to understand as well as program, 8-bit microcontrollers.
The introduction to microcontroller programming is worked out using microcontrollers from the PIC series. Not exactly state-of-the-art with just 8 bits, the PIC micro has the advantage of being easy to comprehend. It is offered in a DIP enclosure, widely available and not overly complex. The entire datasheet of the PIC micro is shorter by decades than the description of the architecture outlining the processor section of an advanced microcontroller. Simplicity has its advantages here. Having mastered the fundamental operation of a microcontroller, you can easily enter into the realms of advanced softcores later.
Having placed assembly code as the executive programming language in the foreground in the first part of the book, the author reaches a deeper level with ‘C’ in the second part. Cheerfully alongside the official subject matter, the book presents tips & tricks, interesting measurement technology, practical aspects of microcontroller programming, as well as hands-on options for easier working, debugging and faultfinding.
Dit is een ideaal boek voor hobbyisten, studenten en ingenieurs die op een eenvoudige manier C en het gebruik van een mbed ARM microcontroller willen leren, rechtstreeks op internet zonder ingewikkelde software installatie.
ARM mbed microcontroller NXP LPC1768
De projecten in dit boek zijn bedoeld voor beginners op het gebied van ARM microcontrollers of de programmeertaal C. Dat wil niet zeggen dat de projecten allemaal eenvoudig zijn, maar wel dat ze gemakkelijk te begrijpen zijn. We maken bijvoorbeeld gebruik van USB communicatie, een onderwerp dat door de mbed zo eenvoudig wordt gemaakt dat het geschikt is voor een beginners boek.
Cloud technologie
De mbed NXP LPC1768 maakt gebruik van cloud technologie, een revolutionair concept voor software ontwikkeling. Dit houdt in dat u geen software hoeft te installeren om de mbed te kunnen programmeren! Het enige dat u nodig heeft is een internet browser zoals Microsoft Internet Explorer, en een USB poort op uw PC. U kunt vanaf elke willekeurige PC waar dan ook ter wereld toegang krijgen tot uw project en er aan verder werken. Wanneer u klaar bent kunt u met een paar eenvoudige klikjes met uw muis het programma overzetten naar uw mbed hardware. Uiteraard kunt u de projecten ook downloaden en op uw eigen PC opslaan wanneer u dat liever heeft.
Onderwerpen die aan de orde komen
Leer het programmeren van een ARM microcontroller via cloud technologie. Geen moeilijke software installatie op uw eigen PC.
Leer de programmeertaal C door leuke en interessante projecten uit te voeren. Geen ervaring of kennis noodzakelijk.
Voorbeelden van projecten in dit boek: knipperlicht, tijdschakelaar, donkerschakelaar, digitale thermometer, mensen detector, USB communicatie, pratende microcontroller, fout zoeken, geluidsschakelaar, en nog veel meer - totaal 35 projecten.
Voorbeelden van C onderwerpen in dit boek: variabelen, opdrachten, functies, programmaverloop, pointers (inleidend).