Programming the Finite State Machine with 8-Bit PICs in Assembly and C
Andrew Pratt provides a detailed introduction to programming PIC microcontrollers, as well as a thorough overview of the Finite State Machine (FSM) approach to programming. Most of the book uses assembly programming, but do not be deterred. The FSM gives a structure to a program, making it easy to plan, write, and modify. The last two chapters introduce programming in C, so you can make a direct comparison between the two techniques. The book references the relevant parts of the Microchip datasheet as familiarity with it is the best way to discover detailed information.
This book is aimed at Microsoft Windows and Linux users. To keep your costs to a minimum and to simplify the toolchain, specific applications are provided as a free download to enable you to use an FTDI serial lead as the programmer. The assembler used is the open-source "gpasm". All programming can be done in a text editor. There are detailed instructions on how to perform the necessary installations on Windows, Linux Debian, and derivatives such as Ubuntu and Fedora. For programming in C, Microchip's XC8 compiler is used from the command line. In addition to the programming applications, two serial read and serial write applications can be used for communicating with the PICs from a computer.
A voltmeter project including practical instructions on building a circuit board from scratch is included. All theory is covered beforehand, including how to do integer arithmetic in assembly.
Two PICs are covered: the PIC12F1822 and the PIC16F1823. Both can run at 32 MHz with an internal oscillator. You do not need to buy a factory-made development board and programmer. With relatively inexpensive parts including a serial lead, microcontroller, a few resistors, and LEDs, you can get started exploring embedded programming.
Links
Updated Programmer
Projets pratiques en électronique analogique, audio et bien plus encore
Découvrez une remarquable collection de plus de 240 projets électroniques publiés dans Elektor Magazine et soigneusement sélectionnés par Ton Giesberts, ingénieur renommé du laboratoire Elektor.
La clé USB réunit une grande variété de circuits, de conceptions et d’idées de projets pratiques réalisés au fil des années par de nombreux auteurs et ingénieurs Elektor. Couvrant un large éventail de domaines de l’électronique, cette vaste archive constitue une précieuse source de connaissances et d’inspiration pour les ingénieurs, les makers, les étudiants et les passionnés d’électronique.
Plus de 240 projets Elektor sélectionnés
Soigneusement compilés par l’ingénieur Elektor Ton Giesberts
Idéal pour construire, expérimenter et découvrir de nouvelles idées
Découvrez plusieurs décennies d’expertise Elektor réunies dans une collection complète de projets.
Points forts
Amplificateur audio Q-Watt
Amplificateur haut de gamme Fortissimo-100
Carte tampon pour Raspberry Pi 400
Convertisseur série USB multiprotocole
Générateur de fonctions DDS
Wattmètre AC/DC
Chargeur de téléphone
Spécifications
Mémoire
8 Go
Connecteurs
1x USB-A1x USB-C
Matériel et logiciel requis
Ordinateur avec Adobe Reader version 7 ou sup.
Navigateur Internet
Practical Multitasking Fundamentals
Programming embedded systems is difficult because of resource constraints and limited debugging facilities. Why develop your own Real-Time Operating System (RTOS) as well as your application when the proven FreeRTOS software is freely available? Why not start with a validated foundation?
Every software developer knows that you must divide a difficult problem into smaller ones to conquer it. Using separate preemptive tasks and FreeRTOS communication mechanisms, a clean separation of functions is achieved within the entire application. This results in safe and maintainable designs.
Practicing engineers and students alike can use this book and the ESP32 Arduino environment to wade into FreeRTOS concepts at a comfortable pace. The well-organized text enables you to master each concept before starting the next chapter. Practical breadboard experiments and schematics are included to bring the lessons home. Experience is the best teacher.
Each chapter includes exercises to test your knowledge. The coverage of the FreeRTOS Application Programming Interface (API) is complete for the ESP32 Arduino environment. You can apply what you learn to other FreeRTOS environments, including Espressif’s ESP-IDF. The source code is available from GitHub. All of these resources put you in the driver’s seat when it is time to develop your next uber-cool ESP32 project.
What you will learn:
How preemptive scheduling works within FreeRTOS
The Arduino startup “loopTask”
Message queues
FreeRTOS timers and the IDLE task
The semaphore, mutex, and their differences
The mailbox and its application
Real-time task priorities and its effect
Interrupt interaction and use with FreeRTOS
Queue sets
Notifying tasks with events
Event groups
Critical sections
Task local storage
The gatekeeper task
Program and Build Raspberry Pi 5 Based Ham Station Utilities with the RTL-SDR
The RTL-SDR devices (V3 and V4) have gained popularity among radio amateurs because of their very low cost and rich features. A basic system may consist of a USB based RTL-SDR device (dongle) with a suitable antenna, a Raspberry Pi 5 computer, a USB based external audio input-output adapter, and software installed on the Raspberry Pi 5 computer. With such a modest setup, it is possible to receive signals from around 24 MHz to over 1.7 GHz.
This book is aimed at amateur radio enthusiasts and electronic engineering students, as well as at anyone interested in learning to use the Raspberry Pi 5 to build electronic projects. The book is suitable for both beginners through experienced readers. Some knowledge of the Python programming language is required to understand and eventually modify the projects given in the book. A block diagram, a circuit diagram, and a complete Python program listing is given for each project, alongside a comprehensive description.
The following popular RTL-SDR programs are discussed in detail, aided by step-by-step installation guides for practical use on a Raspberry Pi 5:
SimpleFM
GQRX
SDR++
CubicSDR
RTL-SDR Server
Dump1090
FLDIGI
Quick
RTL_433
aldo
xcwcp
GPredict
TWCLOCK
CQRLOG
klog
Morse2Ascii
PyQSO
Welle.io
Ham Clock
CHIRP
xastir
qsstv
flrig
XyGrib
FreeDV
Qtel (EchoLink)
XDX (DX-Cluster)
WSJT-X
The application of the Python programming language on the latest Raspberry Pi 5 platform precludes the use of the programs in the book from working on older versions of Raspberry Pi computers.
In Elektronica Kunst & Kunde worden alle onderwerpen behandeld die ook in standaard elektronica-leerboeken aan de orde komen, plus een groot aantal belangrijke maar vaak veronachtzaamde zaken.
In dit tweede deel aandacht voor onder meer de volgende onderwerpen:
phase-locked loop-schakelingen, opto-elektronica, busschakelingen, capacitieve belasting, bekabeling, interfacing
timing, naaldpulsen, klokvertraging, monostabiele multivibratoren
de IBM-PC en de Intel-fanilie, RS232-kabels, seriële poorten, ASCII, modems, SCSI, IPI, GPIB, parallele poorten, local-area-networks
de 68000-microprocessorfamilie, perifere LSI-chips, geheugen, programmeerbare instrumenten
prototypering, het ontwerpen van printplaten, wire-wrap-technieken, CAD/CAM technieken, de bouw van schakelingen
HF-modules, vereenvoudigd ontwerp van HF-versterkers en high-speed schakelaars
batterijen, accu's en zonnecellen; micropower-regelaars, -opamps en -microprocessoren
methoden om de bandbreedte te beperken, middeling van signalen, lock-in versterkers, pulshoogte-analyse, 'multichannel-scaling'
Using the RFID Starter Kit
An Arduino board has now become ‘the’ basic component in the maker community. No longer is an introduction to the world of microcontrollers the preserve of the expert. When it comes to expanding the capabilities of the basic Arduino board however, the developer is still largely on his own. If you really want to build some innovative projects it’s often necessary to get down to component level. This can present many beginners with major problems. That is exactly where this book begins.
This book explains how a wide variety of practical projects can be built using items supplied in a single kit together with the Arduino board. This kit, called the 'RFID Starter Kit for Arduino' (SKU 17240) is not just limited to RFID applications but contains more than 30 components, devices and modules covering all areas of modern electronics.
In addition to more simple components such as LEDs and resistors there are also complex and sophisticated modules that employ the latest technology such as:
A humidity sensor
A multicolor LED
A large LED matrix with 64 points of light
A 4-character 7-segment LED display
An infra red remote-controller unit
A complete LC-display module
A servo
A stepper motor and controller module
A complete RFID reader module and security tag
On top of that you will get to build precise digital thermometers, hygrometers, exposure meters and various alarm systems. There are also practical devices and applications such as a fully automatic rain sensor, a sound-controlled remote control system, a multifunctional weather station and so much more.
All of the projects described can be built using the components supplied in the Elektor kit.
Le Joy-Pi Note 2 est une plateforme tout-en-un, portable, dédiée à l'apprentissage et à l'expérimentation en électronique ; elle est entièrement compatible avec les Raspberry Pi 4 et 5. Alliant un écran IPS de 11,6 pouces, un clavier sans fil détachable et un boîtier compact et robuste, elle offre un environnement flexible pour le développement électronique, la programmation et l'enseignement.
Grâce à plus de 45 cours et projets pratiques, le Joy-Pi Note 2 facilite l'apprentissage et l'expérimentation autour de Python, de Scratch, de la robotique et des applications liées à l'Internet des objets (IoT). Sa plateforme pédagogique intégrée propose des instructions étape par étape, ce qui la rend idéale pour les débutants, les étudiants, les enseignants et les passionnés d'électronique expérimentés.
Le système intègre plus de 22 capteurs et modules, notamment des capteurs de température, de luminosité, de mouvement et de distance, ainsi que des affichages LED et des interfaces pour moteurs. Des options de connectivité supplémentaires, incluant des ports USB-C et des interfaces d'extension GPIO, permettent aux utilisateurs de développer et de tester leurs propres projets.
Grâce à sa compatibilité avec le Raspberry Pi 5, le Joy-Pi Note 2 bénéficie également d'une puissance de traitement et de performances graphiques accrues, s'imposant comme une plateforme polyvalente pour l'enseignement de l'électronique, le prototypage et l'expérimentation avancée.
Caractéristiques
Kit complet d'expérimentation électronique
Plateforme tout-en-un d'apprentissage et d'expérimentation
Compatible avec Raspberry Pi 4 et 5
Plateforme d'apprentissage interactive préinstallée
Clavier sans fil détachable
Compartiment de rangement intégré pour batterie externe et accessoires
Spécifications
Écran
Écran LCD 11,6"
Caméra
2 MP
Plateforme d'apprentissage
Plus de 45 cours et projets
Écrans
Afficheur 7 segments, écran 16x2, écran TFT 1,8", écran OLED 0,96", matrice RVB 8x8
Alimentation
5 V/5 A, USB-C
Écrans
Afficheur 7 segments, module LCD 16x2, matrice RVB 8x8
Capteurs
Capteur de température et d'humidité DHT, capteur d'inclinaison, capteur de mouvement, capteur sonore, capteur tactile, module RFID, capteur de luminosité, capteur à ultrasons
Moteurs
Interface pour servomoteur, interface pour moteur pas à pas, moteur vibrant
Système de contrôle
Joystick, matrice de boutons 4x4, commutateur de connexion (Raspberry Pi/PC), réglage de sensibilité (capteur de mouvement, capteur sonore), réglage de luminosité (module LCD 16x2)
Divers
Relais, ventilateur, extension GPIO, indicateur LED GPIO, plaque d'essai (breadboard), interface d'extension (E/S, ADC, I²C, UART), interface pour capteur infrarouge, buzzer, contrôleur d'affichage
Accessoires
Puce RFID, carte RFID, bloc d'alimentation, servomoteur, moteur pas à pas, récepteur infrarouge, télécommande infrarouge, moteur CC avec ventilateur, tournevis, carte microSD (32 Go), lecteur de carte SD, accessoires électroniques, souris sans fil, clavier sans fil
Dimensions
291 x 190 x 46 mm
Poids
1,3 kg
Inclus
Joy-Pi Note 2 ordinateur portable
Raspberry Pi 5 (8 Go de RAM)
Accessoires
Bloc d'alimentation USB-C
Guide de démarrage rapide
Téléchargements
Joy-Pi website
Fiche technique
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
Super-Servo-TesterBis zu vier Servos einzeln oder eingebaut testen
Analoge Signale und der MikrocontrollerADCs, DACs, Strommessung und mehr
embedded world 2023
Sub-Nyquist-Sampling in der PraxisHöhere Frequenzen mittels Unterabtastung sicher erfassen
Hier Android-Smartphone, dort ESP32?Praxisprojekt mit der Android WiFi-API
Aktives 1-kHz-Filter für VerzerrungsmessungenBessere Messungen durch Optimierung des Messsignals
Aller Anfang...muss nicht schwer sein: Wir multivibrieren weiter!
Projekt 2.0Korrekturen, Updates und Leserbriefe
Das neue I3C-ProtokollWürdiger I2C-Nachfolger oder viel Rauch um Nichts?
BlueRC: IR-Fernsteuerung mit Smartphone und ESP32Anpassungsfähig und universell
Mikrocontroller-Dokumentationen verstehenTeil 2: Register und Blockschaltbilder
Automatisierung der Prüf- und MesstechnikProgrammieren von Prüfgeräten, damit sie tun, was Sie wollen
Infografik: Messen und Testen
Überspannungsschutz für sicheren BetriebTransientenschutz für nicht-isolierte DC/DC-Leistungsmodule
Mess- und Prüfgeräte von WihaInstallationstester und Messgeräte, auf die Sie sich verlassen können
Automatisierung von Tests und Zusammenarbeit bei Testergebnissen
Aus dem Leben gegriffenElektronik auf hohem Niveau
EnergieloggerEnergie messen und aufzeichnen
Aufgebaut: Das 4tronix M.A.R.S. Rover Kit
Parkscheibe mit E-Paper DisplayEin innovativer digitaler Ersatz
eCO2-Telegram-BotLuftqualitätsmessung mit Telegram-Anbindung
Hinter den Kulissen von High-End-Audio im EigenbauElektor-Ingenieur Ton Giesberts im Interview über die hohe Kunst des Analogdesigns
Das besondere ProjektEs gibt noch viel zu tun!
RFID-Tag lesen und RFID-TürschlossProjektbeispiele aus dem Arduino-Experimentierpaket von Elektor
Oszilloskop-Stromsonde für HFHochfrequenz-Strommessung leichtgemacht
Nichts für Anfänger – Makerfabs 6 DOF Robot ArmMit Raspberry Pi Pico und MicroPython
Generative KIWer hat das eigentlich gemacht?
Hexadoku
Dispositif de communication LoRa haute performance
L'Elecrow ThinkNode M5 est un dispositif de communication LoRa compact et portable, conçu pour la messagerie hors réseau, le partage de position et une utilisation en extérieur. Équipé d'un processeur ESP32-S3 et d'une puce LoRa SX1262, il est livré avec le micrologiciel Meshtastic préinstallé et se configure aisément via Bluetooth grâce à l'application officielle Meshtastic.
Son module multi-GNSS intégré prend en charge les systèmes GPS, GLONASS, BeiDou et QZSS pour assurer une localisation et un partage de position fiables. Les messages et les informations de l'appareil s'affichent sur un écran e-paper de 1,54 pouce économe en énergie, tandis que la batterie rechargeable intégrée de 1200 mAh permet une utilisation mobile prolongée.
Grâce à son antenne LoRa intégrée, son boîtier compact, son horloge temps réel (RTC) et sa compatibilité avec les micrologiciels Meshtastic et MeshCore, le ThinkNode M5 constitue une solution de communication pratique pour la randonnée, le camping, les zones isolées et les situations d'urgence où les réseaux mobiles conventionnels sont indisponibles.
Caractéristiques
Communication LoRa
Positionnement multi-GNSS
Batterie rechargeable de 1200 mAh
Écran à encre électronique de 1,54 pouce
Horloge en temps réel (RTC) intégrée
Compatible avec MeshCore
Compatible avec Meshtastic
Spécifications
Processeur principal (ESP32-S3)
CPU/SoC
Processeur double cœur Xtensa LX7 32 bits, cadencé jusqu'à 240 MHz
Mémoire système
512 Ko de SRAM, 8 Mo de PSRAM
Stockage
4 Mo de Flash, 384 Ko de ROM
Firmware
Entièrement compatible avec le firmware Meshtastic ; transmission du signal en mode LoRa
EPD (Écran à encre électronique)
Taille de l'écran
EPD de 1,54 pouce (écran à encre monochrome)
Technologie d'affichage
E-Ink (encre électronique)
Résolution
200 x 200
Contrôleur
SSD1681 (via interface SPI ou I²C)
Temps de rafraîchissement global
2 s
Communication sans fil
Bluetooth
Bluetooth Low Energy et Bluetooth 5.0 (configuration via smartphone)
LoRa
Module LoRa SX1262, bande EU 868 MHz (antenne externe)
Matériel
Interfaces
USB-C, RP-SMA
Fonctions
Localisation GPS (GPS, GLONASS, BeiDou, QZSS), affichage EPD, RTC, USB 2.0, gestion de l'alimentation PMU (batterie au lithium intégrée de 1200 mAh), buzzer, etc.
Boutons
Commutateur rotatif, bouton de fonction, bouton de changement de page, interrupteur GPS, bouton de réinitialisation
Indicateur LED
Alimentation, Indication GPS/LoRa
Autres
Alimentation
5 V/1 A, prise en charge de l'alimentation par USB ou batterie au lithium
Consommation électrique
Le courant de fonctionnement maximal est d'environ 340 mA (CPU + module LoRa) ; la consommation en mode basse consommation est d'environ 34 µA
Température de fonctionnement
-10 à 50°C
Température de stockage
-20 à 60°C
Humidité relative
10 à 95% à 40°C (sans condensation)
Boîtier
Plastique ABS
Dimensions
82 x 51,6 x 26,3 mm
Poids
81 g
Inclus
1x Elecrow ThinkNode M5
1x Antenne LoRa
1x Câble USB-C
1x Manuel
Téléchargements
Manual
Der ESP8266 ist ein programmierbares WLAN-Funkmodul mit zahlreichen Schnittstellen wie UART, I²C und SPI. Das Board ist sehr preiswert und bereits für unter 3 Euro verfügbar. Die UART-Schnittstelle sorgt dabei für eine einfache Integration in Mikrocontrollerprojekte. Das ESP8266-Modul kann hervorragend mit dem Arduino zusammenarbeiten und ermöglicht ihm über die serielle Schnittstelle den Zugang zum Netzwerk und Internet. Es existiert eine Implementierung des ESP8266-Moduls in die Arduino-Entwicklungsumgebung. Aber auch als Standalone-Modul kann das ESP8266 eigenständig Programme abarbeiten und mit dem Internet kommunizieren, da es über einen eigenen Mikroprozessor und Speicher auf dem Board verfügt.
Mittlerweile existiert auch das Entwickler-Board NodeMCU, auf dem der ESP8266-Chip mit einem USB/Seriell-Adapter versehen wurde. Mit den integrierten Sockelleisten ist ein direkter Einsatz auf üblichen Breadboards möglich. Über den USB-Anschluss wird das Board mit Strom versorgt und kann über eine Software direkt angesprochen werden. Auch das NodeMCU-Board ist sehr preiswert und bereits für unter 5 Euro zu haben.
Der Bestseller-Autor Erik Bartmann hat sich ausführlich mit dem ESP8266 und dem NodeMCU beschäftigt. Heraus gekommen ist dabei Das ESP8266-Praxisbuch, in dem er die Leser Schritt für Schritt in die Arbeit mit diesen neuen, preiswerten Bauteilen einführt, mögliche technische Stolpersteine ausführlich behandelt und in zahlreichen Projekten die Praxistauglichkeit – angefangen bei einem selbst gebauten Webserver bis hin zu klugen Relay-Ansteuerung – belegt.
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
USB Measurement AdapterTesting Current and Signal Quality of USB Ports
4...20 mA Current Output for Arduino UnoA Reliable, EMI-Insensitive Current Loop Interface
Vacuum Cleaner Automatic ControlKeep Your Tools’ Work Area Clean
DDS Generator with ATtiny
Opamp-Tester V2New PCB – Now Also Suitable for SMDs
550-mW “Lamp” Audio AmplifierGet the Warm Sound of Vacuum Tubes With Ease
Fuse GuardMonitoring a Fuse with a Flashing LED
HQ RIAA PreamplifierGet the Most Out of Your Vinyl Records!
Turntable Speed CalibratorAn Arduino-Based 100–120 Hz Strobe Light Generator
Elektor Classics: video buffer/repeater
Infrared Remote-Controlled DimmerControl Your Halogen or LED Floor Lamp Effortlessly and With Style
How to Use switch…case on Strings in C++/Arduino IDE
Magnet FinderWith a Simple Hall-Effect Sensor
Raspberry Pi Smart Power ButtonA Solution for Raspberry Pi Up to Model 4
Essential Maker TipsProfessional Insights for Everyday Making
Practical Projects with the 555 TimerDC Motor Control and Fast Reaction Challenges
Basic AC-Load-On MonitorSave Energy with a Simple Device
Power Banks in ParallelA Three-Day Continuous Power Solution
VFO Up to 15 MHzAn Implementation With Raspberry Pi Pico
Violin Tuner with ATtiny202
Elektor Classics: video amplifier for B/W television sets
Capacitance Meter20 pF to 600 nF
Quasi-Analog Clockwork Mk IITwo LED Rings for Hours and Minutes
You Can Do Anything You Want(with the Arduino Ecosystem at Your Side)
Neon Lamp Dice
Elektor Classics: RTTY calibrator indicator
Inspiring Hardware Designs for Your ESPs
Elektor Classics: variable 3 A power supply
RGB LEDs with Integrated Control CircuitLight with Precision: ICLEDs Set Standards
Experiment: Towards a Mixed-Signal Theremin?Blending Modern Time-of-Flight Sensors With the Timeless XR2206 Analog Generator
ESP32 Audio Transceiver Board (Part 1)SD Card WAV File Player Demo
Infographics: Circuits and Circuit Design 2025
Small Audio MixerA Simple and Versatile Scalable Design
Smart Staircase Light TimerSave More Money on the Energy Bill!
Smarten Up Your ShuttersControlling Velux Hardware With an ESP32 and MQTT
Solid-State Foot WarmerEnergy-Efficient Comfort
Is the M5Stamp Fly Quadcopter the Next Tello?
Boosting Wi-Fi Range of the ESP32-C3 SuperMiniA Simple and Effective Antenna Mod
ZD-8968 Hot-Air Soldering StationA Budget-Friendly Workhorse or Just Hot Air?
Parking Sensor TesterFinding Defects in the PDC System of a Car
Le téléchargement intégral de ce numéro est disponible pour nos membres GOLD et GREEN sur le site Elektor Magazine !
Pas encore membre ? Cliquez ici.
tableau de bord OBD2Des cadrans anciens aux données en temps réel
OBD2 : ajoutez un compte-tours et un indicateur de changement de vitesse à votre voitureRétro, mais extrêmement utile
capteurs de vision et LiDAR pour la robotique
Sensor+Test 2025 et PCIM 2025
mesures sans contact du champ électrique (1)Membrane vibrante pour mesurer des tensions continues ou des champs électriques statiques
détecteur de courrier sans filCapteurs optiques, radars… quelques options à explorer
Elektor Mini-WheelieUn robot auto-équilibré
cellules solairesDrôles de composants, la série
premiers pas avec un capteur radar moderneUn capteur précis qui ne passe pas inaperçu
sur le vifUsine de papier
CybersécuritéDes temps difficiles pour les hackers
Infographie : IdO et capteurs
le Bluetooth 6.0 pour des applications de télémétrie amélioréesCette nouvelle version offre des fonctions de localisation améliorées
découvrez la communication sans fil avec BeagleY-AI
Projet 2.0Corrections, mises à jour et courrier des lecteurs
démarrer en électronique……Conclusion sur les ampli-op
un puissant assistant de codage de l'IAAccélérez votre développement avec Continue et Visual Studio Code
contrôleur de charge solaire avec MPPT (2)Le circuit
détecteur d'obstacles à ultrasonsUn projet simple pour aider les malvoyants
une odyssée de l'IABilan du premier semestre
synthétiseur MIDI autonome Raspberry Pi (3)plus intelligent avec une interface utilisateur
Meshtastic : un projet de démoUn réseau intelligent de noeuds LoRa
générateur analogique de fréquences audioGénérateur de signaux sinusoïdaux de haute qualité à fréquence réglable