Engineering Blog

Learn it. Build it. Simulate it.

2,738 step-by-step tutorials and projects on Arduino, ESP32, Raspberry Pi and Proteus.

2738 articles found.

Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation

Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation: the gateway ESP32 with its SX1278, the field node ESP32 with its SX1278, the soil sensor, the DS18B20 probe and the solenoid valve

Hello friends, I hope you all are doing great. Today, I am going to share the Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation, the fifty-first project of our IoT Projects series. If you have searched for an ESP32 LoRa project with the SX1278 (Ra-02), a LoRa sender and receiver with an answer, or a Proteus simulation of a long-range sensor link, here is a complete one. A soil station out in a field, kilometres from the farmhouse and far from any Wi-Fi, measures the soil and sends its readings over LoRa to a gateway at the farmhouse; the gateway answers each reading with the valve command, switches both radios to a longer range mode when the signal fades, raises an alarm when the field goes silent, and shows everything on a web dashboard on a laptop or a phone. Wi-Fi reaches across a house, Bluetooth across a room, but farms, pipelines and water tanks are kilometres wide. LoRa fills that gap: a radio that trades speed for range, sending a few bytes kilometres away on a tiny battery. In this tutorial, we will go through the circuit with two ESP32 boards and two SX1278 modules, see how LoRa spreads a signal in chirps and what the spreading factor does to range and time on air, work out a link budget for 2 km and 10 km, see why a LoRa sensor only listens right after it sends, build an answer-and-fallback protocol on top, drive a solenoid valve the efficient way and make it fail safe, walk through both Arduino sketches, and then run the simulation: the field at ...

nRF52840 Dongle Library for Proteus: Bluetooth LE USB Simulation

nRF52840 Dongle Library for Proteus simulation: the busy light at BUSY, the RGB LED red and the phone connected

Hello friends, I hope you all are doing great. Today, I am going to share the nRF52840 Dongle Library for Proteus, so you can run a Bluetooth LE simulation of Nordic Semiconductor's smallest nRF52840 board: a USB stick about the size of a thumb drive. The nRF52840 inside is an Arm Cortex-M4F with 1 MB of flash, 256 KB of RAM, Bluetooth LE, 802.15.4 for Thread and native USB. With this library the dongle runs your Arduino sketch in Proteus 8.5, lights its green and RGB LEDs, reads its button and talks to a phone over Bluetooth LE. For the demo we built a Bluetooth busy light for an office door. The RGB LED shows FREE, BUSY, AWAY or DO NOT DISTURB, one click on the dongle's button moves to the next status, and a phone shows the status and how long it has lasted. NOTICE: Proteus has no nRF52840 model, so our team has put a lot of effort into building this board ourselves: the LEDs, the button and Bluetooth LE are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the nRF52840 Dongle Library for Proteus: The nRF52840 Dongle (PCA10059) is Nordic Semiconductor's low-cost USB stick for the nRF52840. The PCB itself forms the USB-A plug, so it goes straight into a laptop without a cable. On the board are the nRF52840 with its crystal, a printed antenna at the ...

A Complete Guide to Integrating AI Voice Agents into IoT Projects

Six-step loop of an AI voice agent in an IoT project: voice command, speech recognition, command processing, IoT device over MQTT, status check and spoken reply

Imagine walking into a room and saying, “Turn on the desk lamp.” The light switches on, and a voice confirms it. You can build this kind of feature with a small IoT device, a microphone, and a service that understands speech. If you are starting from scratch, an AI voice agent for developers can be one part of the system. Your code still decides which commands are safe and how devices respond. This guide explains how to connect those parts. An AI voice agent lets people speak to software instead of using buttons or screens. It listens to speech, works out what the person wants, and responds. In an IoT project, the flow often looks like this: Voice command → Speech recognition → Command processing → IoT device → Status check → Spoken reply For example, when someone asks to turn on a lamp, the system identifies the lamp and the action. It sends a command and waits for the device to report its status before saying the light is on. You can build a basic project with a few parts: You do not need every feature on the first day. Start with one device and one command. Pick one task, such as switching a desk lamp on and off. Write down the phrases users might say, including “switch on the lamp” and “turn the light off.” Decide what should happen if the command is unclear. For safety, the app should ask again rather than guess. Connect your lamp through a suitable smart plug or approved relay module. Set up the controller, microphone, and speaker. Test the lamp from a basic script ...

Rehost, Refactor, or Rebuild? How to Choose the Right Legacy Modernization Strategy

Three legacy modernization strategies compared: rehost (moving house without unpacking, fast, low risk, limited payoff), refactor (renovate room by room) and rebuild (knock it down and start over, slow, high risk, highest payoff)

Every company has one. That ancient application humming away in a corner of the data center, written in COBOL, VB6, or a Java version so old it predates smartphones. Nobody fully understands it. The two people who did retired years ago. And yet, somehow, it still processes half your revenue. So what do you do with it? Lift it into the cloud as-is? Clean it up piece by piece? Or tear it down and start fresh? That's the question at the heart of every legacy modernization strategy, and honestly, there's no universal right answer. Based on our firsthand experience running modernization projects for insurers, logistics firms, and mid-sized SaaS companies, the wrong choice rarely fails loudly on day one. It fails quietly, eighteen months later, when the budget is gone and the "new" system has inherited every old problem. In this guide, I'll walk you through the three big options — rehost, refactor, and rebuild — plus their lesser-known cousins. You'll get comparison tables, a practical decision framework, real-world cases from the industry, and the mistakes we've watched teams (including ours) make. Let's dig in. Think of a legacy system like an old house. The foundation might be solid, but the wiring is a fire hazard, the plumbing leaks, and every renovation uncovers something worse behind the drywall. You can keep living in it. You just pay more every year for the privilege. Most teams underestimate how much their legacy stack actually costs them. It's not just hosting and ...

nRF52833 DK Library for Proteus: nRF52833 Bluetooth LE Simulation

nRF52833 DK Library for Proteus simulation: the parking assistant with the HC-SR04, the DK and the phone

Hello friends, I hope you all are doing great. Today, I am going to share the nRF52833 DK Library for Proteus, so you can run a Bluetooth LE simulation of Nordic Semiconductor's nRF52833 development kit. The nRF52833 is an Arm Cortex-M4F with 512 KB of flash, 128 KB of RAM, Bluetooth LE, 802.15.4 for Thread, NFC and USB - a chip built for products that must work for years, such as industrial sensors and smart home devices. With this library the DK runs your Arduino sketch in Proteus 8.5, reads sensors on its Arduino header and talks to a phone over Bluetooth LE. For the demo we built a Bluetooth parking assistant. An HC-SR04 ultrasonic sensor on the garage wall measures the distance to the car, the four LEDs of the DK show how close it is, and a phone shows the distance, the zone and the cars parked. NOTICE: Proteus has no nRF52833 model, so our team has put a lot of effort into building this board ourselves: the pins, the LEDs, the buttons and Bluetooth LE are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the nRF52833 DK Library for Proteus: The nRF52833 DK (PCA10100) is Nordic Semiconductor's development kit for the nRF52833. The chip sits between the popular nRF52832 and the bigger nRF52840: it keeps the Cortex-M4F with its floating-point ...

nRF52 DK Library for Proteus: nRF52832 Bluetooth LE Simulation

nRF52 DK Library for Proteus simulation: the Bluetooth classroom poll with the phone

Hello friends, I hope you all are doing great. Today, I am going to share the nRF52 DK Library for Proteus, so you can run a Bluetooth LE simulation of Nordic Semiconductor's classic development kit. The nRF52 DK carries the nRF52832, an Arm Cortex-M4F at 64 MHz with Bluetooth LE and NFC, the chip inside countless wearables, beacons and sensors. With this library it runs your Arduino sketch in Proteus 8.5, talks to a phone over Bluetooth LE, and its four LEDs and four buttons behave exactly like on the real board - even the way they share the Arduino header pins. For the demo we built a Bluetooth classroom poll. The four buttons are the answers A to D, the LED of the leading answer lights up, and the teacher's phone shows every count as the votes come in. NOTICE: Proteus has no nRF52832 model, so our team has put a lot of effort into building this board ourselves: the pins, the LEDs, the buttons and Bluetooth LE are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the nRF52 DK Library for Proteus: The nRF52 DK (PCA10040) is Nordic Semiconductor's development kit for the nRF52832, one of the most widely used Bluetooth LE chips. The nRF52832 combines an Arm Cortex-M4F at 64 MHz, 512 KB of flash, 64 KB of RAM, a 2.4 GHz radio and NFC. The kit adds a ...

xG26 Dev Kit Library for Proteus: EFR32MG26 Bluetooth Simulation

xG26 Dev Kit Library for Proteus simulation: the Bluetooth storm station with the phone

Hello friends, I hope you all are doing great. Today, I am going to share the xG26 Dev Kit Library for Proteus, so you can run a Bluetooth LE simulation of Silicon Labs' newest compact development kit. The xG26 Dev Kit carries the EFR32MG26, an Arm Cortex-M33 wireless SoC with 3200 kB of flash and 512 kB of RAM, together with temperature, humidity, pressure, light and motion sensors, an RGB LED and two buttons. With this library it runs your Arduino sketch in Proteus 8.5, reads its sensors, talks to a phone over Bluetooth LE and lights its LED just like the real kit. For the demo we built a Bluetooth storm station. The kit watches the air pressure: when it falls, the weather is changing; when it falls a lot, a storm is coming. The RGB LED shows the forecast and a phone reads every value. NOTICE: Proteus has no EFR32MG26 model, so our team has put a lot of effort into building this board ourselves: the pins, the sensors, the RGB LED, the buttons and Bluetooth LE are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the xG26 Dev Kit Library for Proteus: The EFR32xG26 Dev Kit (xG26-DK2608A, board BRD2608A) is Silicon Labs' small development board for its xG26 family. Its EFR32MG26 is an Arm Cortex-M33 running at 78 MHz with 3200 kB of flash and 512 kB ...

Nordic Thingy:91 X Library for Proteus: nRF9151 LTE-M Simulation

Nordic Thingy:91 X Library for Proteus simulation: the cellular bike alarm, the RGB LED red

Hello friends, I hope you all are doing great. Today, I am going to share the Nordic Thingy:91 X Library for Proteus, so you can run a cellular IoT simulation of Nordic Semiconductor's newest prototyping platform. The Thingy:91 X carries the nRF9151, a system-in-package with an Arm Cortex-M33 and a complete LTE-M / NB-IoT modem with GNSS, plus environment and motion sensors, an RGB LED and a big button, all in a small battery-powered case. With this library it runs your Arduino sketch in Proteus 8.5, registers on a mobile network, sends and receives SMS, gets a GNSS position and reads its sensors. For the demo we built a cellular bike alarm. The Thingy hides under the saddle: press its button to arm it, and when someone moves the bike it sends an SMS with a map link to the owner's phone, then follows the bike until the owner disarms it by SMS. NOTICE: Proteus has no nRF9151 model, so our team has put a lot of effort into building this device ourselves: the modem, the sensors, the RGB LED and the button are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Nordic Thingy:91 X Library for Proteus: The Thingy:91 X is Nordic Semiconductor's prototyping platform for cellular IoT, the successor of the Thingy:91. At its heart is the nRF9151 ...

Feather nRF52840 Express Library for Proteus: Bluetooth Simulation

Feather nRF52840 Express Library for Proteus simulation: the Bluetooth reaction timer with the phone

Hello friends, I hope you all are doing great. Today, I am going to share the Feather nRF52840 Express Library for Proteus, so you can run a Bluetooth LE simulation of Adafruit's popular Feather board. The Feather nRF52840 Express carries Nordic's nRF52840, an Arm Cortex-M4F at 64 MHz with Bluetooth LE and native USB, on a board of just 2.0 x 0.9 inches. With this library it runs your Arduino sketch in Proteus 8.5, talks to a phone over Bluetooth LE with Adafruit's Bluefruit library, and its red LED, blue CONN LED and USER switch work just like on the real board. For the demo we built a Bluetooth reaction timer. Press USER, wait for the red LED, press USER again as fast as you can: the board measures your reaction in milliseconds, keeps the best one and sends every result to a phone. NOTICE: Proteus has no nRF52840 model, so our team has put a lot of effort into building this board ourselves: the pins, the LEDs, the USER switch and Bluetooth LE are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Feather nRF52840 Express Library for Proteus: The Feather nRF52840 Express is Adafruit's Bluetooth LE board in the Feather family, the small boards that all share one pinout so that add-on boards (FeatherWings) fit any of them. Its nRF52840 from Nordic ...

Electromagnetic Fire Door Holder with ESP32 | Proteus Simulation

Electromagnetic Fire Door Holder with ESP32 | Proteus Simulation: the ESP32, the L9110S, the holding electromagnet, the panel contact, the door contact and the flashing LED during a fire alarm

Hello friends, I hope you all are doing great. Today, I am going to share the Electromagnetic Fire Door Holder with ESP32 | Proteus Simulation, the forty-third project of our IoT Projects series. If you have searched for a Proteus simulation of an electromagnet controlled by an ESP32, or of the magnetic door holders that keep fire doors open in hospitals, schools and offices, here is a complete one. An ESP32 holds a fire door open with a 12 V holding electromagnet and lets it go the moment the fire alarm panel calls, when someone presses the RELEASE button, or when the power fails. Then it checks that the door really closed, and it serves a live web dashboard on a laptop or a phone. Fire doors stop smoke and flames from spreading along corridors and stairs, but only when they are shut, and a shut door in a busy corridor is a door that people wedge open with a chair. Magnetic door holders are the answer: the door stays open on a magnet during the day, and the fire alarm cuts the magnet's power so the door's closer pulls it shut. In this tutorial, we will go through the circuit, see how a holding electromagnet works and why it lets go some milliseconds after its power is cut, drive it from an ESP32 through an L9110S, learn why the fire panel's contact is normally closed and why the magnet is on only while it may hold, add a closing check that catches a jammed door, walk through the Arduino sketch, and then run the simulation: a release from the button, a fire alarm with a door ...