32 new Projects, Practical Examples and Exercises with the Elektor Arduino Nano MCCAB Training Board
Electronics and microcontroller technology offer the opportunity to be creative. This practical microcontroller course provides you with the chance to bring your own Arduino projects and experience such moments of success. Ideally, everything works as you imagined when you switch it on for the first time. In practice, however, things rarely work as expected. At that point, you need knowledge to efficiently search for and find the reason for the malfunction.
In this book for advanced users, we delve deep into the world of microcontrollers and the Arduino IDE to learn new procedures and details, enabling you to successfully tackle and solve even more challenging situations.
With this book, the author gives the reader the necessary tools to create projects independently and also to be able to find errors quickly. Instead of just offering ready-made solutions, he explains the background, the hardware used, and any tools required. He sets tasks in which the reader contributes their own creativity and writes the Arduino sketch themselves.
If you don’t have a good idea and get stuck, there is, of course, a suggested solution for every project and every task, along with the corresponding software, which is commented on and explained in detail in the book.
This practical course will teach you more about the inner workings of the Arduino Nano and its microcontroller. You will get to know hardware modules that you can use to realize new and interesting projects. You will familiarize yourself with software methods such as ‘state machines,’ which can often be used to solve problems more easily and clearly.
The numerous practical projects and exercise sketches are once again realized on the Arduino Nano MCCAB Training Board, which you may already be familiar with from the course book ‘Microcontrollers Hands-on Course for Arduino Starters’, and which contains all the hardware peripherals and operating elements we need for the input/output operations of our sketches.
Readers who do not yet own the Arduino Nano MCCAB Training Board can purchase the required hardware separately, or alternatively, build it on a breadboard.
For Raspberry Pi, ESP32 and nRF52 with Python, Arduino and Zephyr
Bluetooth Low Energy (BLE) radio chips are ubiquitous from Raspberry Pi to light bulbs. BLE is an elaborate technology with a comprehensive specification, but the basics are quite accessible.
A progressive and systematic approach will lead you far in mastering this wireless communication technique, which is essential for working in low power scenarios.
In this book, you’ll learn how to:
Discover BLE devices in the neighborhood by listening to their advertisements.
Create your own BLE devices advertising data.
Connect to BLE devices such as heart rate monitors and proximity reporters.
Create secure connections to BLE devices with encryption and authentication.
Understand BLE service and profile specifications and implement them.
Reverse engineer a BLE device with a proprietary implementation and control it with your own software.
Make your BLE devices use as little power as possible.
This book shows you the ropes of BLE programming with Python and the Bleak library on a Raspberry Pi or PC, with C++ and NimBLE-Arduino on Espressif’s ESP32 development boards, and with C on one of the development boards supported by the Zephyr real-time operating system, such as Nordic Semiconductor's nRF52 boards.
Starting with a very little amount of theory, you’ll develop code right from the beginning. After you’ve completed this book, you’ll know enough to create your own BLE applications.
Projects Using Arduino IDE and the LVGL Graphics Library
The ESP32 is probably one of the most popular microcontrollers used by many people, including students, hobbyists, and professional engineers. Its low cost, coupled with rich features makes it a popular device to use in many projects. Recently, a board called the ESP32 Cheap Yellow Display (CYD for short) is available from its manufacturers. The board includes a standard ESP32 microcontroller together with a 320x240 pixel TFT display. Additionally, the board provides several connectors for interfaces such as GPIO, serial port (TX/RX), power and Ground. The inclusion of a TFT display is a real advantage as it enables users to design complex graphics-based projects without resorting to an external LCD or graphics displays.
The book describes the basic hardware of the ESP32 CYD board and provides details of its on-board connectors. Many basic, simple, and intermediate-level projects are given in the book based on the ESP32 CYD, using the highly popular Arduino IDE 2.0 integrated development environment. The use of both the basic graphics functions and the use of the popular LVGL graphics library are discussed in the book and projects are given that use both types of approaches.
All the projects given in the book have been tested and are working. The block diagram, circuit diagram, and the complete program listings and program descriptions of all the projects are given with explanations. Readers can use the LVGL graphics library to design highly popular eye-catching full-color graphics projects using widgets such as buttons, labels, calendars, keypads, keyboards, message boxes, spinboxes, sliders, charts, tables, menus, bars, switches, drop-down lists, animations, and many more widgets.
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.
A Practical Guide to Tube Electronics
Vacuum tubes continue to exert a special fascination. Their long-lasting operation, robustness, and characteristic behavior fundamentally distinguish them from modern semiconductor technology. Despite their age, tubes are by no means merely historical components; they are still used today in audio technology, measurement technology, and especially in hobbyist applications.
This book is aimed at electronics enthusiasts and hobbyists who want to not only learn about and understand vacuum tubes in theory, but also use them in practice. It conveys the fundamentals of tube technology, explains the different designs and designations, shows typical circuits, and addresses power supplies, measurements, and safety-related aspects. The focus is on practical explanations and realistic examples from the workshop. Numerous tips help you avoid typical mistakes, build circuits, and understand tube devices and their construction. Basic knowledge of electronics is assumed.
Vacuum Tubes: A Practical Guide to Tube Electronics offers an accessible and thorough introduction to tube technology – factual, comprehensible, and with a clear focus on practical applications.
De Elektor Laserkop transformeert de Elektor Sand Clock in een klok die de tijd op glow-in-the-dark-film schrijft in plaats van op zand. Naast het weergeven van de tijd kan het ook worden gebruikt om kortstondige tekeningen te maken. De 5 mW laserpointer, met een golflengte van 405 nm, produceert heldergroene tekeningen op de glow-in-the-dark-film. Voor het beste resultaat gebruikt u de kit in een slecht verlichte kamer. Waarschuwing: Kijk nooit rechtstreeks in de laserstraal!
De kit bevat alle benodigde componenten, maar het solderen van drie draden is vereist.
Opmerking: Deze kit is ook compatibel met de originele Arduino-gebaseerde Zandklok uit 2017. Voor meer details, zie Elektor 1-2/2017 en Elektor 1-2/2018.
A Combat Guide against E-waste and Throwawayism
This book is for anyone who enjoys tinkering with analog and digital hardware electronics. Regardless of the sophistication of your workspace, only basic tools are required to achieve truly satisfying results. It is intended as a reference guide among other hardware repair publications you may have in your library. However, the book goes a step further than most other repair guides in addressing issues in the modern era of discarded electronics called e-waste.
E-waste should be put to good use. Producing anything new requires not just precious resources and labor, but also energy to make and deliver it to global retail shelves. Your talents and love of electronics can be put to good use by rescuing and resurrecting at least selected units from this endless stream of e-waste. Examples include either restoring through repair, or salvaging reusable electronic and mechanical components for your next project.
Smart tips are provided throughout the book, and much information is tabulated for easy reference. The book expands age-old repair and hacking techniques applied for repair on the workbench into clever methods and applications to achieve effective results with discarded or “non-servicable” electronic consumer products. The final chapter provides real-life examples using all of the previously discussed content in a summarized form for each example repair type.
Leer hoe je de ESP32 Microcontroller en het programmeren met MicroPython in je toekomstige projecten kunt gebruiken!
Het (Engelstalige) projectboek, geschreven door de bekende Elektor auteur Dogan Ibrahim, bevat vele software- en hardware-gebaseerde projecten die speciaal voor de MakePython ESP32 ontwikkelkit ontwikkeld zijn. De kit wordt geleverd met verschillende LED's, sensoren, en actuatoren. De kit helpt je de basiskennis op te doen om eigen IoT projecten te maken.
Alle volledig geëvalueerde projecten in het boek zijn voorzien van de bijgeleverde componenten. Elk project bevat een blokschema, een schakelschema, een volledige programmalijst, en een volledige programma beschrijving.
Inbegrepen in de kit
1x MakePython ESP32 ontwikkelingsboard met LCD
1x Ultrasone afstandsmeter
1x Temperatuur- en luchtvochtigheidssensor
1x Zoemer module
1x DS18B20 module
1x Infrarood module
1x Potentiometer
1x WS2812 module
1x Geluidssensor
1x Trilsensor
1x Module met lichtgevoelige weerstand
1x Puls sensor
1x Servo motor
1x USB kabel
2x Knop
2x Breadboard
45x Schakeldraad
10x Weerstand 330R
10x LED (Rood)
10x LED (Groen)
1x Projectboek (Engelstalig, 206 pagina's)
Boek met 46 projecten
LED Projecten
Knipperende LED
SOS knipperende LED
Knipperende LED – met behulp van een timer
Afwisselend knipperende LEDs
Knopbediening
De knippersnelheid van de LED's veranderen met drukknop onderbrekingen
Chasing-LEDs
Binaire teller met LEDs
Kerstverlichting (willekeurig-knipperende 8 LEDs)
Elektronische dobbelsteen
Geluksdag van het week
Projecten voor Pulsewidth Modulation (PWM)
Genereer een PWM golfvorm van 1000 Hz met 50% duty cycle
LED helderheid regelen
Meten van de frequentie en duty cycle van een PWM golfvorm
Melodieën maker
Eenvoudig elektronisch orgel
Servo motor besturing
Servo motor DS18B20 thermometer
Projecten voor analoog naar digitaal converteren (ADC)
Voltmeter
Plotten van de analoge ingangsspanning
Interne temperatuursensor van de ESP32
Ohmmeter
Lichtgevoelige weerstandsmodule
Projecten voor digitaal naar analoog converteren (DAC)
Opwekken van vaste spanningen
Opwekken van een zaagtand-golf signaal
Opwekken van een driehoek-golf signaal
Golfvorm met willekeurige periode
Genereren van een sinus-golf signaal
Genereren van een nauwkeurig sinus-golf signaal met behulp van een timer interrupts
Gebruik van het OLED Display
Seconden teller
Gebeurtenisteller
DS18B20 digitale thermometer met OLED
ON-OFF temperatuur regelaar
Meten van temperatuur en luchtvochtigheid
Ultrasone afstandsmeting
Hoogte van een persoon (stadiometer)
Hartslag (polsslag) meten
Andere bij de set geleverde sensoren
Diefstal alarm
Met geluid geactiveerd licht
Infrarood obstakel-vermijding met zoemer
WS2812 RGB LED ring
Tijdregistratie van temperatuur en luchtvochtigheid
Netwerkprogrammering
Wi-Fi scanner
Bediening op afstand vanuit de Internet browser (met een smartphone of PC) – Webserver
Temperatuur- en luchtvochtigheidsgegevens opslaan in de Cloud
Werking met Low-Power
Gebruik een timer om de processor te laten ontwaken
Meer dan 40 volledig geteste ESP32-projecten met Arduino IDE en de LVGL grafische bibliotheek
Deze bundel bevat de ESP32 Cheap Yellow Display (CYD) – een compact ontwikkelbord dat een standaard ESP32-microcontroller combineert met een TFT-kleurendisplay van 320 x 240 pixels. Het bord beschikt ook over meerdere aansluitingen voor GPIO, seriële communicatie (TX/RX), voeding en aarde. Het ingebouwde display is een groot voordeel, omdat gebruikers hiermee complexe, grafische projecten kunnen maken zonder dat er externe LCD's of displays nodig zijn.
Het bijbehorende boek introduceert de hardware en de ingebouwde aansluitingen van het CYD-bord in detail. Het biedt een reeks projecten van beginners- tot gevorderdenniveau, ontwikkeld met de populaire Arduino IDE 2.0. Zowel basis grafische functies als de krachtige LVGL grafische bibliotheek worden behandeld, met praktische projecten die elke aanpak illustreren.
Alle meegeleverde projecten zijn volledig getest en klaar voor gebruik. Het boek bevat blokdiagrammen, circuitschema's, complete codelijsten en stapsgewijze uitleg. Met de LVGL-bibliotheek kunnen lezers moderne, kleurrijke grafische interfaces maken met behulp van widgets zoals knoppen, labels, schuifregelaars, kalenders, toetsenborden, grafieken, tabellen, menu's, animaties en meer.
ESP32 Cheap Yellow Display Board
Dit ontwikkelbord (ook bekend als "Cheap Yellow Display") wordt aangedreven door de ESP-WROOM-32, een dual-core MCU met geïntegreerde Wi-Fi- en Bluetooth-mogelijkheden. Het werkt op een hoofdfrequentie tot 240 MHz, met 520 KB SRAM, 448 KBROM en 4 MB Flash-geheugen. Het bord is voorzien van een 2,8-inch scherm met een resolutie van 240 x 320 en resistieve aanraking.
Bovendien bevat het bord een achtergrondverlichtingsbesturingscircuit, aanraakbesturingscircuit, luidsprekeraandrijfcircuit, lichtgevoelig circuit en RGB-LED-besturingscircuit. Het biedt ook een TF-kaartsleuf, seriële interface, DHT11 temperatuur- en vochtigheidssensorinterface en extra IO-poorten.
De module ondersteunt ontwikkeling in Arduino IDE, ESP-IDE, MicroPython en Mixly.
Toepassingen
Beeldoverdracht voor Smart Home-apparaat
Draadloze bewaking
Slimme landbouw
Draadloze QR-herkenning
Signaal van draadloos positioneringssysteem
En andere IoT-toepassingen
Specificaties
Microcontroller
ESP-WROOM-32 (Dual-core MCU met geïntegreerde Wi-Fi en Bluetooth)
Frequentie
Tot 240 MHz (rekenkracht is maximaal 600 DMIPS)
SRAM
520 KB
ROM
448 KB
Flash
4 MB
Bedrijfsspanning
5 V
Stroomverbruik
ca. 115 mA
Display
2,8" TFT-kleurenscherm (240 x 320)
Touch
Resistief Touch
Driver chip
ILI9341
Afmetingen
50 x 86 mm
Gewicht
50 g
Downloads
GitHub
Deze bundel bevat:
The ESP32 Cheap Yellow Display Book (normale prijs: € 35)
ESP32 Cheap Yellow Display Board (normale prijs: € 25)
1x ESP32 Dev Board met 2,8" display en acryl-behuizing
1x Touchpen
1x Aansluitkabel
1x USB-kabel
Elektronica moeilijk? De titel van dit boek geeft het antwoord!
In deze 3-in-1-band wordt de elektronica vanuit de praktijk benaderd. Dat wil zeggen veel praktijk in de vorm van experimenten en een minimum aan theorie. Zo raakt u stap voor stap vertrouwd met de behandelde onderwerpen. Daarbij ontstaan gaandeweg ook een flink aantal praktisch bruikbare schakelingen. Het gaat bij de elektronicahobby tenslotte om het bouwen of uitdenken van allerlei praktische of leuke schakelingen.
Aan het eind van elk deel is een aanhangsel opgenomen met aanvullende informatie en de gegevens van een groot aantal elektronische componenten, zodat na dit boek ook eigen ideeën en experimenten kunnen worden aangepakt.
In deze 3-in-1-band zijn de eerste drie delen uit de serie “Elektronica echt niet moeilijk” samengevoegd:
Deel 1: experimenten met gelijkstroom
Deel 2: experimenten met wisselstroom
Deel 3: experimenten met digitale techniek
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.
Bouw uw eigen projecten met het Elektor Arduino Nano MCCAB Training Board
De microcontroller is waarschijnlijk het meest fascinerende onderwerp van de moderne elektronica. Door de veelheid aan functies die hij op zijn chip combineert is het een universeel multi-tool voor ontwikkelaars om hun projecten mee te bouwen. Vrijwel elk dagelijks gebruikt apparaat wordt tegenwoordig bestuurd door een microcontroller. Voor een elektronica-leek is het realiseren van de eigen ideeën met een microcontroller echter tot nu toe een utopie gebleven vanwege de complexiteit ervan. Het Arduino-concept heeft het gebruik van microcontrollers sterk vereenvoudigd, zodat zelfs onervaren starters nu hun eigen elektronica ideeën kunnen realiseren met een microcontroller.
Book & Hardware in de bundel: 'Leren door te doen'
Het boek, dat ook in de bundel zit, leert ons hoe je zelfs zonder veel ervaring met elektronica en programmeertalen je eigen projecten met een microcontroller kunt bouwen. Het is een echte hands-on cursus microcontrollers voor starters. Want na een beschrijving van het inwendige van de microcontroller en een introductie in de programmeertaal C, ligt de focus van de cursus op praktische oefeningen. De lezer bouwt de nodige kennis op met 'leren door te doen': in het uitgebreide praktische gedeelte van het boek, met 12 projecten en 46 oefeningen, wordt het geleerde in het voorste deel van het boek met veel voorbeelden onderbouwd. Elke oefening wordt gevolgd door een uitgewerkt voorbeeld met uitleg en toelichting, wat de lezer helpt om de vraagstukken op te lossen en met de eigen oplossing te vergelijken.
Arduino IDE
De Arduino IDE is een software ontwikkelomgeving die gratis op de eigen pc kan worden gedownload, en die alle software bevat die nodig is voor uw eigen microcontroller-projecten. U schrijft de programma's ('apps') met de editor van de IDE in de programmeertaal C. En U vertaalt ze naar bits en bytes die de microcontroller begrijpt met behulp van de ingebouwde compiler van de Arduino IDE. En kunt ze vervolgens via een USB-kabel laden naar het geheugen van de microcontroller op het Elektor Arduino MCAB Nano Training Board.
Externe sensoren, motoren of schakelingen checken of besturen
Naast een Arduino Nano microcontroller module bevat het Elektor Arduino Nano MCCAB Training Board ook alle componenten die nodig zijn voor de oefeningen, zoals LED’s, schakelaars, drukknoppen, buzzer enz. Ook externe sensoren, motoren of modules kunnen worden gecheckt of bestuurd met dit microcontroller-trainingssysteem.
Specificaties (Arduino Nano Training Board MCCAB)
Voeding
Via de USB-aansluiting van de aangesloten pc of een externe voeding (niet inbegrepen)
Spanning
+5 Vcc
Ingangsspanning
Alle ingangen
0 V tot +5 V
VX1 en VX2
+8 V tot +12 V (alleen bij gebruik van een externe voeding)
Hardware
LCD
2x16 karakters
Potentiometer P1 & P2
JP3: Selectie van de werkspanning van P1 & P2
Verdelers
SV4: Verdeler voor de werkspanningenSV5, SV6: Verdelers voor de in-/uitgangen van de microcontroller
Schakelaars en knoppen
RESET knop op de Arduino Nano module; 6x drukknop schakelaars K1 ... K6; 6x Schuifschakelaars S1 ... S6; JP2: Jumper van de schakelaars met de ingangen van de microcontroller
Buzzer
Piezo buzzer ‘Buzzer1’ met jumper op JP6
Indicator LED’s
11 x LED: Status indicator voor de ingangen/uitgangen LED L op de Arduino Nano module, aangesloten op GPIO D13 JP6; Aansluiting van LED's LD10 ... LD20 met GPIO's D2 ... D12
Seriële interfacesSPI & I²C
JP4: Selectie van het signaal op pin X van de SPI-connector SV12 SV9 naar SV12: SPI-interface (3,3 V/5 V) of I²C-interface
Uitgangen voor externe apparaten
SV1, SV7: Geschakelde uitgang (maximaal +24 V/160 mA, extern aangesloten) SV2: 2x13 pinnen voor aansluiting van externe modules
3x3 LED matrix(9 rode LED's)
SV3: Kolommen van de 3x3 LED matrix (uitgangen D6 ... D8) JP1: Verbinding van de rijen met de GPIO's D3 ... D5
Software
MCCABLib library
Controle van hardware componenten (schakelaars, knoppen, LED's, 3x3 LED matrix, buzzer) op het MCCAB Training Board
Werktemperatuur
Tot +40 °C
Afmetingen
100 x 100 x 20 mm
Specificaties (Arduino Nano)
Microcontroller
ATmega328P
Architectuur
AVR
Spanning
5 V
Flash memory
32 KB, waarvan 2 KB gebruikt door de bootloader
SRAM
2 KB
Kloksnelheid
16 MHz
Analoge IN Pinnen
8
EEPROM
1 KB
DC stroom per I/O-pin
40 mA op één I/O-pin, totaal maximaal 200 mA op alle pinnen samen
Ingangsspanning
7-12 V
Digitale I/O-pinnen
22 (waarvan 6 PWM)
PWM Uitgangen
6
Stroomverbruik
19 mA
Afmetingen
18 x 45 mm
Gewicht
7 g
Inbegrepen
Elektor Arduino Nano MCCAB Training Board
Arduino Nano
Boek: Microcontrollers Hands-on Course for Arduino Starters