Projekte mit Arduino Uno und Raspberry Pi
In diesem Buch werden Anwendungen von Arduino Uno und Raspberry Pi 4 in praxisnahen Projekten auf Basis von CAN-Bus detailliert beschrieben. Durch den Einsatz von entweder Arduino Uno oder Raspberry Pi in Verbindung mit handelsüblichen CAN-Bus-Schnittstellenmodulen werden die Entwicklung, Fehlersuche und Fehlerbeseitigung sowie die Überprüfung von Projekten auf CAN-Bus-Basis erheblich erleichtert.
Dieses Buch richtet sich an jeden, der mehr über den CAN-Bus lernen möchte und mit den Grundlagen der Elektronik vertraut ist. Hilfreich ist auch Erfahrung mit den Programmiersprachen C und Python sowie mit der Programmierung von Arduino Uno unter Verwendung seiner IDE und von Raspberry Pi zu haben.
Das Buch ist eine nützliche Informationsquelle und ein Nachschlagewerk für jeden, der Antworten auf eine oder mehrere der folgenden Fragen sucht:
Welche Bussysteme stehen für die Automobilindustrie zur Verfügung?
Was sind die Grundprinzipien des CAN-Bus?
Welche Arten von Frames (oder Datenpaketen) stehen in einem CAN-Bussystem zur Verfügung?
Wie können Fehler in einem CAN-Bussystem erkannt werden, und wie zuverlässig ist ein CAN-Bussystem?
Welche Arten von CAN-Bus-Controllern gibt es?
Welches sind die Funktionsprinzipien des MCP2515 CAN-Bus-Controllers?
Wie kann ich ein CAN-Bus-Projekt mit Arduino Uno realisieren?
Wie kann ich Arduino oder Raspberry Pi CAN-Bus-Projekte mit 2 und 3 Knoten erstellen?
Wie kann ich die Daten auf dem CAN-Bus analysieren?
Wie kann ich ein CAN-Bus-Projekt mit Raspberry Pi ausführen?
In dit boek worden een serie spannende en leuke projecten voor de Arduino behandeld, zoals een stil alarm, mensensensor, lichtmeter, besturing van een motor, internet en draadloze bediening (via een radioverbinding). In tegenstelling tot veel gratis projecten op internet zijn de projecten in dit boek in de praktijk getest, en werken gegarandeerd!
U kunt dit boek gebruiken als projectenboek, en de 45 projecten nabouwen en in de praktijk inzetten. Door de duidelijke uitleg, schema's en zelfs foto's van de opstelling op is het nabouwen een erg leuke bezigheid. De foto's zijn gemaakt van een werkende opstelling, dus u weet zeker dat ze kloppen.
U kunt de projecten in dit boek ook met elkaar combineren om zo uw eigen projecten te maken. Per project wordt duidelijk uitgelegd waarom het project op die manier is uitgevoerd. Al doende leert u veel over het project en de gebruikte onderdelen, en kunt u het project zelf aanpassen en uitbreiden naar uw eigen wensen.
Daarnaast is het boek ook als naslagwerk inzetbaar. Via de index vindt u gemakkelijk projecten die als voorbeeld voor het gebruik van C++ opdrachten en Arduino-functionaliteit kunnen dienen. Zelfs als u alle projecten gemaakt hebt zal dit boek om die reden nog lang een plekje naast uw PC behouden.
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.
Analogue Electronics and Microcontrollers Projects
Hobbyist electronics can be a fun way to learn new skills that can be helpful to your career. Those who understand the basics of electronics can design their own circuits and projects. However, before you run, you need to learn to walk.
It all starts with analogue electronics. You should be familiar with the simple components and circuits and understand their basic behaviors and the issues you may encounter. The best way to do this is through real experiments. Theory alone is not enough. This book offers a large number of practical entry-level circuits, with which everyone can gain the basic experience.
Through the widespread introduction of microcontrollers, a new chapter in electronics has begun. Microcontrollers are now performing more and more tasks that were originally solved using discrete components and conventional ICs. Starting out has become easier and easier thanks to platforms including Bascom, Arduino, micro:bit. The book introduces numerous manageable microcontroller applications. It’s now a case of less soldering and more programming.
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.
Praktische Anwendungen und Projekte mit Arduino, ESP32 und RP2040
Tauchen Sie ein in die faszinierende Welt der Regelungstechnik mit Arduino und ESP32! Dieses Buch bietet Ihnen einen praxisnahen Einstieg in die klassischen und modernen Methoden der Regelung, darunter PID-Regler, Fuzzy-Logik und Sliding-Mode-Regler.
Im ersten Teil lernen Sie die Grundlagen der beliebten Arduino-Controller, wie den Arduino Uno und den ESP32, sowie die Integration von Sensoren für Temperatur- und pH-Messung (NTC, PT100, PT1000, pH-Sensor). Sie erfahren, wie diese Sensoren in verschiedenen Projekten eingesetzt werden und wie Sie Daten auf einem Nextion TFT-Display visualisieren.
Weiter geht es mit der Einführung in Stellglieder wie MOSFET-Schalter, H-Brücken und Solid-State-Relais, die zur Steuerung von Motoren und Aktoren verwendet werden. Sie lernen, Regelstrecken zu analysieren und zu modellieren, einschließlich PT1- und PT2-Regelungen.
Der Schwerpunkt des Buches liegt auf der Implementierung von Fuzzy- und PID-Reglern zur Regelung von Temperatur und DC-Motoren. Dabei werden sowohl der Arduino Uno als auch der ESP32 eingesetzt. Zudem wird der Sliding-Mode-Regler vorgestellt.
Im vorletzten Kapitel erkunden Sie die Grundlagen neuronaler Netze und lernen, wie maschinelles Lernen auf einem Arduino eingesetzt werden kann. Im letzten Kapitel gibt es noch ein praktisches Beispiel für einen Fuzzy-Regler zur Stromeinspeisung ins Hausnetz.
Dieses Buch ist die perfekte Wahl für Ingenieure, Studierende und Elektroniker, die ihre Projekte mit innovativen Regelungstechniken erweitern möchten.
In 35 Projects with the Raspberry Pi and Arduino
The Internet of Things (IoT) is a trend with a strong technological impulse. At home, we want to do everything on our tablets, from browsing Facebook to watching TV, from operating lights to keeping an eye on the temperature.
In 35 fun projects, this book will show you how to build your own Internet of Things system. We'll cover the hardware (primarily the Raspberry Pi and Arduino) and the software that makes control via Internet possible. We employ Wi-Fi and radio links so no requirement any longer to install cabling crisscross through your home.
Assuming the projects in the book are finished, you have a complete Internet of Things system that allows you to control and view of everything in your home. For example, if there's something in the mail box or the car is securely in the garage. Also, you can switch on the lights and the alarm from your couch. The crisp explanations allow the projects to be customized with ease, for example, to turn on your coffee machine or TV remotely. The index gives easy access to creative projects that can serve as an example, enabling you to do all the connecting to the IoT independently. All project software can be downloaded free of charge from the Elektor website.
In this unique book, Raspberry Pi, Arduino and HTML webpages with stylesheets and JavaScript come together in clearly-described, easy-to-build projects. This special book is an essential part of your collection!
In ESP32 programmeren voor beginners bekijken we de ESP32 en zijn voorganger, de ESP8266. Deze kleine, maar zeer krachtige Chinese chips bestaan uit een processor, geheugen, input- en outputaansluitingen en hebben draadloze netwerktoegang via WiFi.
Met dit boek tonen we hoe de programmeeromgeving Arduino werkt en hoe die kan gebruikt worden met ESP-hardware. Aan de hand van voorbeelden en projecten verduidelijken we hoe de ESP-hardware kan worden toegepast.
In vogelvlucht:
We beschrijven de opbouw van ESP-experimenten.
We tonen hoe displays worden aangesloten.
Eeprom_24c16 demonstreert hoe een externe geheugenchip wordt gebruikt om getallen en tekst op te slaan en weer uit te lezen.
Project Klok is de eenvoudige implementatie van een digitale klok.
We geven een handleiding voor het gebruik van temperatuur- en luchtvochtigheidsensoren.
Webclient laat zien hoe de ESP32 gegevens van het internet kan halen.
Met Webserver kunnen we op afstand met een pc of smartphone gegevens halen uit een ESP32, sensoren uitlezen en toestellen aan- en uitschakelen.
Een NTP-klok haalt tijdinformatie van Tijdserver. Die geeft zowel de tijd als het aantal seconden sinds 1 januari 1900. Het boek beschrijft hoe hieruit de tijd kan worden berekend.
In het laatste hoofdstuk gebruiken we het internet om nauwkeurige weerinformatie en voorspellingen op te vragen.
Een op de Raspberry Pi Pico gebaseerde Eye Catcher
Een standaard zandklok laat meestal slechts zien hoe de tijd verstrijkt. Deze door een Raspberry Pi Pico aangestuurde zandklok toont daarentegen de exacte tijd door de vier cijfers voor uren en minuten in een zandlaag te "graveren". Na een vooraf ingestelde periode wordt het zand door twee trilmotoren vlak getrild en begint alles weer van voren af aan.
Het hart van de zandklok wordt gevormd door twee servomotoren, die via een pantograafmechanisme een schrijfpen aandrijven. Een derde servomotor tilt deze pen op en neer. Het zandbakje is voorzien van twee trilmotoren om het zand weer vlak te trillen. Het elektronische deel van de zandklok bestaat uit een Raspberry Pi Pico en een RTC/driverbord met een real-time klok, plus drivercircuits voor de servomotoren.
Een gedetailleerde bouwhandleiding is beschikbaar via download.
Kenmerken
Afmetingen: 135 x 110 x 80 mm
Bouwtijd: ca. 1,5 tot 2 uur
Inbegrepen
3x Voorgesneden acrylaatplaten met alle mechanische onderdelen
3x Mini servomotoren
2x Trilmotoren
1x Raspberry Pi Pico
1x RTC/driverkaart met geassembleerde onderdelen
Moeren, boutjes, afstandhouders en draden voor de montage
Fijnkorrelig wit zand
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
USB-meetadaptertest stroom en signaalkwaliteit van USB-poorten
4...20 mA stroom-uitgang voor Arduino Unobetrouwbare, EMI-ongevoelige current loop-interface
Automatische stofzuigerschakelaarhoud uw werkplek schoon
DDS-generator met ATtiny
Opamp-tester v2nieuwe print – nu ook voor SMD’s
550-mW audio ‘Lamp-Amp’voor die warme buizenklank
Zekeringbewakerhoud zekeringen in de gaten met een knipper-LED
Hoogwaardige RIAA-voorversterkerhaal het beste uit uw vinylplaten!
Kalibratie voor draaitafelsArduino-gebaseerde 100/120Hz-stroboscoop
Elektor Classics: Video-versterker
Dimmer met IR-afstandsbedieningcomfortabel en elegant staande halogeen- of LED-lampen regelen
Het gebruik van switch…case bij strings in C++/Arduino IDE
Magneetzoekermet een eenvoudige Hall-effect-sensor
Raspberry Pi: slimme aan/uit-knopeen oplossing voor de Raspberry Pi tot aan model 4
Professionele tipsvan makers voor makers
Praktische projecten met de 555-timerDC-motorbesturing en snelle reactie-uitdaging
Eenvoudige ‘aan-verklikker’spaar energie met een simpele schakeling
Powerpacks parallelschakelendrie dagen ononderbroken stroom
VFO tot 15 MHzimplementatie met Raspberry Pi Pico
Vioolstemmer met ATtiny202
Elektor Classics: Video-ingangsversterker voor zwart/wit-TV
Capaciteitsmeter20 pF tot 600 nF
Quasi-analoog uurwerk Mk IItwee LED-ringen – voor uren en minuten
Niets is onmogelijk(met hulp van het Arduino-ecosysteem)
Neon dobbelsteen
Elektor Classics: RTTY-afstemhulp
Inspirerende hardware-ontwerpen voor uw ESP’s
Elektor Classics: 3 A voeding
RGB-LED’s met geïntegreerde stuurkringlicht met precisie: ICLED’s zetten de standaard
Experiment: een mixed-signal Theremin?moderne time-of-flight sensoren plus de tijdloze analoge XR2206
ESP32 audio-transceiver (deel 1)SD-kaart WAV-speler demo
Elektor infographicschakelingen en schakelingontwerp 2025
Kleine audiomixereenvoudig, veelzijdig en schaalbaar
Slimme timer voor trapverlichtingbespaar op uw energierekening!
Maak uw rolluiken slimmerVelux-hardware besturen met een ESP32 en MQTT
Solid-state voetenwarmercomfortabel en energiezuinig
Is de M5Stamp Fly-quadcopter de nieuwe Tello?
Vergroot het WiFi-bereik van de ESP32-C3 SuperMinieenvoudige en effectieve antennemodificatie
ZD-8968 hetelucht-soldeerstationbudgetvriendelijk werkpaard of gebakken lucht?
Parkeersensor-testervind defecten in het PDC-systeem van een auto
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
PC USB Logic Analyzers with Arduino, Raspberry Pi, and Co.
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.