Developing CoAP applications for Thread networks with Zephyr
This book will guide you through the operation of Thread, the setup of a Thread network, and the creation of your own Zephyr-based OpenThread applications to use it. You’ll acquire knowledge on:
The capture of network packets on Thread networks using Wireshark and the nRF Sniffer for 802.15.4.
Network simulation with the OpenThread Network Simulator.
Connecting a Thread network to a non-Thread network using a Thread Border Router.
The basics of Thread networking, including device roles and types, as well as the diverse types of unicast and multicast IPv6 addresses used in a Thread network.
The mechanisms behind network discovery, DNS queries, NAT64, and multicast addresses.
The process of joining a Thread network using network commissioning.
CoAP servers and clients and their OpenThread API.
Service registration and discovery.
Securing CoAP messages with DTLS, using a pre-shared key or X.509 certificates.
Investigating and optimizing a Thread device’s power consumption.
Once you‘ve set up a Thread network with some devices and tried connecting and disconnecting them, you’ll have gained a good insight into the functionality of a Thread network, including its self-healing capabilities. After you’ve experimented with all code examples in this book, you’ll also have gained useful programming experience using the OpenThread API and CoAP.
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.
Modelle für 3D-Druck, CNC-Fräsen, Prozesskommunikation und Dokumentation erstellen
Das Design dreidimensionaler Modelle mit Werkzeugen wie Blender oder 3D Studio Max ist eine Aufgabe, die ingenieurwissenschaftlich begabte Personen nur allzu gern delegieren.
OpenSCAD wählt einen erfrischend anderen Zugang. Anstatt ein Objekt als Punktwolke zu betrachten, schreibt der Modellerzeuger in einer an JavaScript erinnernden Sprache ein Programm. Dieses beschreibt die zu erzeugende Geometrie als eine Serie von Arbeitsschritten. Dreidimensionale Modelle entstehen so in einem Workflow, der an die Entwicklung klassischer ingenieurwissenschaftliche Güter erinnert. Wegen der Nähe zur manuellen Fertigung mit Werkzeug ist das ein Prozess, der Ingenieuren gut in die Hände spielt.
Aber Achtung: trotz der Einfachheit der Syntax ist OpenSCAD kein primitives Modellierungsprogramm. Umfangreiche Scriptingmöglichkeiten sorgen dafür, dass sich die Modelle dynamisch an geänderte Situationen anpassen.
Dieses Lehrbuch demonstriert die Möglichkeiten von OpenSCAD anhand praktischer Beispiele. Freuen Sie sich auf Ersatzknöpfe für ein LeCroy-Oszilloskop, Garderobenstangenhalter, einen Halter für Seifenspender und diverse andere Beispiele aus dem realen Leben.
Der mit mehr als 15 Dienstjahren Erfahrung ausgestattete Autor entwickelte dieses für Linux und Windows gleichermaßen geeignete Buch explizit für informatikaffine Personen. Wenn Sie mit irgendeiner Programmiersprache Erfahrung haben, ist dieses Buch ihr Weg zum schnellen und unbürokratischen Erzeugen dreidimensionaler Modelle.
Hands-on in more than 50 projects
STM32 Nucleo family of processors are manufactured by STMicroelectronics. These are low-cost ARM microcontroller development boards. This book is about developing projects using the popular STM32CubeIDE software with the Nucleo-L476RG development board. In the early Chapters of the book the architecture of the Nucleo family is briefly described.
The book covers many projects using most features of the Nucleo-L476RG development board where the full software listings for the STM32CubeIDE are given for each project together with extensive descriptions. The projects range from simple flashing LEDs to more complex projects using modules, devices, and libraries such as GPIO, ADC, DAC, I²C, SPI, LCD, DMA, analogue inputs, power management, X-CUBE-MEMS1 library, DEBUGGING, and others. In addition, several projects are given using the popular Nucleo Expansion Boards. These Expansion Boards plug on top of the Nucleo development boards and provide sensors, relays, accelerometers, gyroscopes, Wi-Fi, and many others. Using an expansion board together with the X-CUBE-MEMS1 library simplifies the task of project development considerably.
All the projects in the book have been tested and are working. The following sub-headings are given for each project: Project Title, Description, Aim, Block Diagram, Circuit Diagram, and Program Listing for the STM32CubeIDE.
In this book you will learn about
STM32 microcontroller architecture;
the Nucleo-L476RG development board in projects using the STM32CubeIDE integrated software development tool;
external and internal interrupts and DMA;
DEBUG, a program developed using the STM32CubeIDE;
the MCU in Sleep, Stop, and in Standby modes;
Nucleo Expansion Boards with the Nucleo development boards.
What you need
a PC with Internet connection and a USB port;
STM32CubeIDE software (available at STMicroelectronics website free of charge)
the project source files, available from the book’s webpage hosted by Elektor;
Nucleo-L476RG development board;
simple electronic devices such as LEDs, temperature sensor, I²C and SPI chips, and a few more;
Nucleo Expansion Boards (optional).
De OWON SDS1102 is een betaalbare benchtop digitale oscilloscoop die solide prestaties combineert met essentiële meetfuncties. Deze 2-kanaals oscilloscoop biedt een bandbreedte van 100 MHz, een sample rate van 1 GS/s, een 7-inch LCD-display en een geheugendiepte van 10 kpts. Daarmee is het een praktische keuze voor dagelijkse elektronicatests, foutopsporing en onderwijs.
De SDS1102 beschikt over een vereenvoudigd triggersysteem met niveau- en flanktriggering, waardoor gangbare signalen eenvoudig kunnen worden vastgelegd en geanalyseerd. Het apparaat is ontworpen voor toepassingen waarvoor geen grote geheugendiepte of geavanceerde triggerfuncties nodig zijn, en biedt een eenvoudige en kostenefficiënte oplossing voor basis-signaalanalyse.
Kenmerken
Bandbreedte: 100 MHz
2 kanalen
Bemonsteringssnelheid: 1 GS/s
Ultradunne behuizing
7-inch lcd met hoge resolutie
Ondersteuning voor SCPI en LabVIEW
Specificaties
Bandbreedte
100 MHz
Horizontale schaal (s/div)
5 ns/div - 1000 s/div
Kanalen
2
Verticale gevoeligheid
5 mV/div - 5 V/div (bij ingang)
DC Gain nauwkeurigheid
3%
Verticale resolutie (A/D)
8 bits (2 kanalen tegelijk)
Ingang
Ingangsimpedantie
1 MΩ, 10 pF
Ingangskoppeling
AC, DC, GND
Max ingangsspanning
± 400 V, CATI, CATII
Passieve probes
x1; 10
Probe verzwakkingsfactor
x1; x10; x100; x1000
Triggersysteem
Trigger mode
Auto, Normal, Single
Trigger type
Flank, Video
Flank triggerbron
CH1, CH2
Video trigger
Sampletype
Real-time
Samplefrequentie
1 GS/s
Equivalente samplesnelheid
No
Golflengte
10K pts
Interpolatie
sin(x)/x
Meet- en rekenkundig bewerkingssysteem
Automatische meting
Vpp, Vavg, RMS, Frequency, Period, Vmax, Vmin, Vtop, Vbase, Width, Overshoot, Pre-shoot Rise time, Fall time, +Width, -Width, +Duty, -Duty, Delay A->B, Delay A->B, area, cycle area
Rekenkundige functies
Addition, Subtraction, Multiplication, Division, FFT
Algemene kenmerken
Display maat
7" color LCD
Display resolutie
800 x 480
Voeding
100-240 V, 45-440 Hz, <15 W
Afmetingen
301 x 70 x 152 mm
Gewicht
1,1 kg
Inbegrepen
1x OWON SDS1102 Oscilloscoop
2x Oscilloscoopsonde
1x Sonde aanpassen
1x Netsnoer
1x USB-kabel
1x CD-Rom
1x Snelstartgids
Downloads
Quick Guide
Manual
PC Software
SCPI Commands
Meer dan 180 projecten met Raspberry Pi, Pico W Arduino en ESP32
Deze bundel bevat de Universal Maker Sensor Kit, die bestaat uit veel sensoren, actuatoren, displays en motoren. Het is perfect voor omgevingsbewaking, smart home-projecten, robotica en gamecontrollers.
Het nieuwe Elektor-boek beschrijft het ontwerp van veel projecten met behulp van de kit samen met de populaire Raspberry Pi, Raspberry Pi Pico W, Arduino Uno en de ESP32-familie van ontwikkelborden. U kunt elk van deze ontwikkelborden voor uw projecten kiezen en de meegeleverde programma's gebruiken zoals ze zijn, of deze programma's aanpassen aan uw toepassingen.
Deze bundel bevat:
Boek: Universal Maker Sensor Kit (normale prijs: € 45)
Universal Maker Sensor Kit voor Raspberry Pi, Pico W, Arduino, ESP32 (normale prijs: € 70)
Boek: Universal Maker Sensor Kit
Leer meer dan 35 sensoren en actuatoren te gebruiken met C++, Python en MicroPython
Dit boek bevat meer dan 180 projecten voor alle vier de grote ontwikkelborden (Raspberry Pi, Pico W Arduino en ESP32). Afhankelijk van het ontwikkelbord zijn projecten beschikbaar in de programmeertalen C, Python of MicroPython.
De projecttitels, korte beschrijvingen, bedradingsschema's en volledige programmalijsten, samen met de gedetailleerde beschrijvingen, zijn in het boek opgenomen.
Universal Maker Sensor Kit (Raspberry Pi, Pico W, Arduino, ESP32)
Ontdek eindeloze creativiteit met de Universal Maker Sensor Kit, ontworpen voor gebruik met Raspberry Pi, Pico W, Arduino en ESP32. Deze veelzijdige kit biedt compatibiliteit met populaire ontwikkelingsplatforms, waaronder Arduino Uno R4 Minima/WiFi, Uno R3, Mega 2560, Raspberry Pi 5, 4, 3B+, 3B, Zero, Pico W en ESP32.
Met meer dan 35 sensoren, actuatoren en displays is het perfect voor projecten variërend van omgevingsmonitoring en slimme huisautomatisering tot robotica en interactief gamen. Stapsgewijze tutorials in C/C++, Python en MicroPython begeleiden zowel beginners als ervaren makers door 169 spannende projecten.
Kenmerken
Brede compatibiliteit: Ondersteunt volledig Arduino (Uno R3, Uno R4 Minima/WiFi, Mega 2560), Raspberry Pi (5, 4, 3B+, 3B, Zero, Pico W) en ESP32, wat uitgebreide flexibiliteit op verschillende ontwikkelingsplatforms mogelijk maakt. Bevat instructies voor het bouwen van 169 projecten.
Uitgebreide componenten: Bevat meer dan 35 sensoren, actuatoren en displaymodules die geschikt zijn voor uiteenlopende projecten zoals omgevingsbewaking, slimme huisautomatisering, robotica en interactieve gamecontrollers.
Gedetailleerde tutorials: Biedt duidelijke, stapsgewijze tutorials over Arduino, Raspberry Pi, Pico W, ESP32 en elk inbegrepen component. Tutorials zijn beschikbaar in C/C++, Python en MicroPython, en zijn effectief afgestemd op zowel beginners als ervaren makers.
Geschikt voor alle vaardigheidsniveaus: Biedt gestructureerde projecten die zijn ontworpen om gebruikers naadloos te begeleiden van beginners tot gevorderden in elektronica en programmeren, wat de creativiteit en technische expertise vergroot.
Kit bevat
Breadboard
Knopmodule
Capacitieve bodemvochtigheidsmodule
Vlamsensormodule
Gas-/rooksensormodule (MQ2)
Gyroscoop & Accelerometermodule (MPU6050)
Hall-sensormodule
Infraroodsnelheidssensormodule
IR-obstakelvermijdingssensormodule
Joystickmodule
PCF8591 ADC DAC-convertermodule
Fotoweerstandsmodule
PIR-bewegingsmodule (HC-SR501)
Potentiometermodule
Pulsoximeter- en hartslagsensormodule (MAX30102)
Regendruppeldetectiemodule
Realtimeklokmodule (DS1302)
Rotary Encoder-module
Temperatuursensormodule (DS18B20)
Temperatuur- en vochtigheidssensormodule (DHT11)
Temperatuur, vochtigheid en Druksensor (BMP280)
Time of Flight Micro-LIDAR afstandssensor (VL53L0X)
Touch Sensor Module
Ultrasone sensormodule (HC-SR04)
Trillingssensormodule (SW-420)
Waterniveausensormodule
I²C LCD 1602
OLED-displaymodule (SSD1306)
RGB LED-module
Verkeerslichtmodule
5 V relaismodule
Centrifugaalpomp
L9110 motordrivermodule
Passieve zoemermodule
Servomotor (SG90)
TT Motor
ESP8266-module
JDY-31 Bluetooth-module
Voedingsmodule
Documentatie
Online Tutorial
Architecture, Programming and Applications
The MSP430 is a popular family of microcontrollers from Texas Instruments. In this book we will work with the smallest type, which is the powerful MSP430G2553. We will look at the capabilities of this microcontroller in detail, as it is well-suited for self-made projects because it is available in a P-DIP20 package.
We will take a closer look at the microcontroller and then build, step by step, some interesting applications, including a 'Hello World' blinking LED and a nice clock application, which can calculate the day of the week based on the date.
You also will learn how to create code for the MSP microcontroller in assembler. In addition to that, we will work with the MSP-Arduino IDE, which makes it quite easy to create fast applications without special in-depth knowledge of the microcontrollers.
All the code used in the book is available for download from the Elektor website.
Architecture, Programming and Applications
The MSP430 is a popular family of microcontrollers from Texas Instruments. In this book we will work with the smallest type, which is the powerful MSP430G2553. We will look at the capabilities of this microcontroller in detail, as it is well-suited for self-made projects because it is available in a P-DIP20 package.
We will take a closer look at the microcontroller and then build, step by step, some interesting applications, including a 'Hello World' blinking LED and a nice clock application, which can calculate the day of the week based on the date.
You also will learn how to create code for the MSP microcontroller in assembler. In addition to that, we will work with the MSP-Arduino IDE, which makes it quite easy to create fast applications without special in-depth knowledge of the microcontrollers.
All the code used in the book is available for download from the Elektor website.
De FNIRSI HT-P1B Pro is een compacte mini-verwarmingsplaat, ontworpen voor het solderen en desolderen van printplaten (PCB's) en het bewerken van SMD-componenten. Met een verwarmingsvermogen tot 150 W, nauwkeurige PID-temperatuurregeling en een instelbaar temperatuurbereik van 100°C tot 350°C, zorgt het apparaat voor een snelle en stabiele verhitting bij elektronicaprojecten.
Het verwarmingsoppervlak van 50 x 50 mm is ideaal voor kleine printplaten en elektronische componenten. Dankzij twee gebruiksmodi – verwarming op een constante temperatuur en gesimuleerd reflow-solderen – is het apparaat flexibel inzetbaar voor uiteenlopende toepassingen. Een 1,44-inch kleurendisplay, drie temperatuurpresets en ingebouwde veiligheidsfuncties zorgen voor een gebruiksvriendelijke bediening.
Met ondersteuning voor zowel DC-voeding als USB-C PD 3.1, een compact ontwerp en een meegeleverde 100 W USB-C-oplader, is de HT-P1B Pro een praktisch hulpmiddel voor makers, elektronicahobbyisten en reparatieprofessionals.
Kenmerken
Verwarmingsvermogen tot 150 W: Snelle opwarming met instelbaar vermogen van 30 W tot 150 W.
Nauwkeurige PID-temperatuurregeling: Instelbaar bereik van 100°C tot 350°C met een temperatuurstabiliteit van ±3°C.
Twee bedrijfsmodi: Verwarming op constante temperatuur en gesimuleerd reflow-solderen.
Verwarmingsoppervlak van 50 × 50 mm: Ideaal voor kleine printplaten (PCB's), SMD-solderen en het herwerken van componenten.
Flexibele stroomvoorziening: DC 12–28 V (tot 150 W) en USB-C PD 3.1 (tot 140 W).
Drie temperatuurpresets: Snelle toegang tot veelgebruikte temperatuurinstellingen.
1,44-inch kleurendisplay: Geeft temperatuur, spanning, vermogen, opwarmtijd en bedrijfsstatus weer.
Ingebouwde veiligheidsfuncties: Beveiliging tegen oververhitting, onderspanning, langdurige verwarming en kantelen.
Specificaties
Voedingsingang
DC 12-28 V / USB-C PD
Vermogensbereik
30-150 W
Stand-byvermogen
1,6 W
Temperatuurbereik
100-350 °C
Temperatuurstabiliteit
±3 °C
Verwarmingsvlak
50 x 50 mm
Display
1,44" kleurenscherm
Kanteldetectie
20°-50°
Protocol
PD 3.1
Afmetingen
68,8 x 81,8 x 44,5 mm
Gewicht
157 g
Inbegrepen
1x FNIRSI HT-P1B voorverwarmingsstation
1x FNIRSI 100 W PD GaN-oplader (EU)
1x FNIRSI 100 W USB-C snellaadkabel
1x Hittebestendige siliconen hoes
1x Opbergetui
1x Manual
Downloads
Manual
Construisez votre station météo idéale ou explorez les données environnementales avec le monde entier. Avec de nombreux projets pratiques pour Arduino, Raspberry Pi, NodeMCU, ESP32 et autres cartes de développement.
Les stations météo jouissent d’une grande popularité depuis des décennies. Tous les magazines d’électronique, qu’ils soient récents ou non, ont publié et publient régulièrement des articles sur la construction d’une station météo. Au fil des années, elles sont devenues de plus en plus sophistiquées et peuvent aujourd’hui être entièrement intégrées dans la maison intelligente. Ceci implique toutefois souvent une fidélité à un fabricant de produits de marque (coûteux) pour tous les composants.
Cependant, avec votre propre station météo, vous pouvez facilement suivre le rythme et même capturer des relevés que les appareils commerciaux ne peuvent pas réaliser. Le plaisir ne manque pas : vous développerez de manière ludique vos connaissances en électronique, en cartes de développement de microcontrôleurs modernes et en langages de programmation. Pour moins de dix euros, vous pouvez collecter des données environnementales initiales et étendre votre système au fur et à mesure que votre intérêt grandit.
Dans ce numéro
Sur la route du vent et de la météo
Écran météo OpenWeatherMap à affichage fluorescent
Les composés organiques volatils dans l‘air que nous respirons
Travailler avec les capteurs MQ : mesurer le monoxyde de carbone
Détecteur de CO2 avec connexion IdO vers ThingSpeak
Un arrosage automatique pour vos plantes
Un climat intérieur sain : la température et l‘humidité de l‘air sont importants
Thermomètre avec tubes Nixie
Une maison météo rétro pour toute la famille
Mesurez la pression atmosphérique et la température avec précision
Un détecteur de coups de soleil
Capteur maison pour la durée d‘ensoleillement
Le smartphone l‘indique : brouillard ou bonne visibilité ?
Détecter les tremblements de terre
Les niveaux des cours d‘eau et des réservoirs
Évaluer la valeur du pH de l’eau
Détecter les rayonnements radioactifs
Avec le GPS, vous savez où se trouve votre capteur
Enregistrer les fichiers journaux avec horodatage sur des cartes SD
LoRaWAN, The Things Network et ThingSpeak
Exploiter la passerelle LoRaWAN pour le TTN
Affichage géant à led avec prévisions météo
Projects with Thonny-IDE, uPyCraft-IDE, and ESP32
The 'Python' programming language has enjoyed an enormous upswing in recent years. Not least, various single-board systems such as the Raspberry Pi have contributed to its popularity. But Python has also found widespread use in other fields, such as artificial intelligence (AI) or machine learning (ML). It is obvious, therefore, to use Python or the 'MicroPython' variant for use in SoCs (Systems on Chip) as well.
Powerful controllers such as the ESP32 from Espressif Systems offer excellent performance as well as Wi-Fi and Bluetooth functionality at an affordable price. With these features, the Maker scene has been taken by storm. Compared to other controllers, the ESP32 has a significantly larger flash and SRAM memory, as well as a much higher CPU speed. Due to these characteristics, the chip is not only suitable for classic C applications, but also for programming with MicroPython.
This book introduces the application of modern one-chip systems. In addition to the technical background, the focus is on MicroPython itself. After the introduction to the language, the programming skills learned are immediately put into practice. The individual projects are suitable for use in the laboratory as well as for everyday applications. So, in addition to the actual learning effect, the focus is also on the joy of building complete and useful devices. By using laboratory breadboards, circuits of all kinds can be realized with little effort, turning the testing and debugging of the 100% homebrew projects into an instructive pleasure.
The various applications, such as weather stations, digital voltmeters, ultrasound range finders, RFID card readers or function generators, make the projects presented ideally suited for practical courses or subject and study work in the natural sciences, or in science and technology classes.
ARM Cortex-M Embedded Design from 0 to 1
Hobbyists can mash together amazing functional systems using platforms like Arduino or Raspberry Pi, but it is imperative that engineers and product designers understand the foundational knowledge of embedded design. There are very few resources available that describe the thinking, strategies, and processes to take an idea through hardware design and low-level driver development, and successfully build a complete embedded system. Many engineers end up learning the hard way, or never really learn at all.
ARM processors are essentially ubiquitous in embedded systems. Design engineers building novel devices must understand the fundamentals of these systems and be able to break down large, complicated ideas into manageable pieces. Successful product development means traversing a huge amount of documentation to understand how to accomplish what you need, then put everything together to create a robust system that will reliably operate and be maintainable for years to come.
This book is a case study in embedded design including discussion of the hardware, processor initialization, low‑level driver development, and application interface design for a product. Though we describe this through a specific application of a Cortex-M3 development board, our mission is to help the reader build foundational skills critical to being an excellent product developer. The completed development board is available to maximize the impact of this book, and the working platform that you create can then be used as a base for further development and learning.
The Embedded in Embedded program is about teaching fundamental skill sets to help engineers build a solid foundation of knowledge that can be applied in any design environment. With nearly 20 years of experience in the industry, the author communicates the critical skill development that is demanded by companies and essential to successful design. This book is as much about building a great design process, critical thinking, and even social considerations important to developers as it is about technical hardware and firmware design.
Downloads
EiE Software Archive (200 MB)
IAR ARM 8.10.1 (Recommended IDE version to use) (1.2 GB)
IAR ARM 7.20.1 (Optional IDE version to use) (600 MB)