Engineering Blog

Learn it. Build it. Simulate it.

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

2724 articles found.

ESP32 Ball and Beam PID Balancer in Proteus Simulation

ESP32 Ball and Beam PID Balancer in Proteus Simulation: the ESP32, the ball and beam lab, the knob and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 Ball and Beam PID Balancer in Proteus Simulation, the sixty-fifth project of our IoT Projects series. If you have searched for a ball and beam PID project, an ESP32 servo control loop, or a Proteus simulation of a classic control lab, here is a complete one. A table-tennis ball rolls in a 250 mm aluminium channel, an MG996R servo tilts the channel, and a Sharp infrared sensor at one end watches the ball. The ESP32 holds the ball wherever you ask, from a knob or from a dashboard on a laptop or a phone. And before it balances anything, it does what a control engineer would do: it measures the lab, works out the model from the measurement, and designs its own gains. The ball and beam is the most famous balancing experiment of control courses, because the ball never settles by itself: tilt the beam a little and the ball keeps speeding up until it hits the end. In this tutorial, we will go through the circuit, see why a rolling ball accelerates less than a sliding one, read the ball's position through the infrared sensor's curved response, run a tilt test and fit the ball's path to find the plant's gain, and turn that number into PD gains for a chosen overshoot and settling time. We will also meet two traps of real measurements on the way. Then we run the simulation: the self-test, steps to new positions, a faster design, a sine to follow, and the knob. At the end, you can download the project with ...

Raspberry Pi 5 Hydrogen Fuel Cell Monitor: INA219 Proteus Simulation

Raspberry Pi 5 Hydrogen Fuel Cell Monitor: INA219 Proteus Simulation: the Raspberry Pi 5, the PEM fuel cell stack, the INA219, the DC load, the OLED and the ALARM LED

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Hydrogen Fuel Cell Monitor in Proteus Simulation, the sixty-fourth project of our IoT Projects series. If you have searched for a fuel cell monitoring project, an INA219 project on the Raspberry Pi, or a Proteus simulation of a PEM fuel cell, here is a complete one. A small 12 W hydrogen fuel cell stack feeds an electronic load, an INA219 sensor sits in its positive line, and a Raspberry Pi 5 watches it all. As you turn the load up, the Pi records the stack's polarization curve point by point, works out how much hydrogen it is burning and how efficient it is, and shows everything on an OLED and on a dashboard. Then the hydrogen pressure drops, and the Pi notices the stack starving long before its own controller has to switch it off. Fuel cells are turning up everywhere: in buses, forklifts, backup power for telecom towers, drones and school science kits. They all have the same weak spot: a fuel cell that does not get enough hydrogen or air still gives a voltage, just a lower one, and the cells can be damaged if the load keeps pulling. In this tutorial, we will go through the circuit, see what happens inside a PEM cell, read the three regions of the polarization curve, count the hydrogen with Faraday's law, work out the efficiency against the hydrogen's energy, and build a health check that compares the stack with its own curve. Then we run the simulation: a load sweep, a starving ...

Microchip Cat Flap with ESP32 and EM-18 RFID - Proteus Simulation

Microchip Cat Flap with ESP32 and EM-18 RFID - Proteus Simulation: the ESP32, the EM-18 reader, the two IR beams, the two SG90 latches and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the Microchip Cat Flap with ESP32 and EM-18 RFID in Proteus Simulation, the sixty-third project of our IoT Projects series. If you have searched for an ESP32 RFID project, a smart pet door, or a Proteus simulation of an EM-18 reader, here is a complete one. An ordinary cat flap lets in every cat in the street; this one opens only for its own cats. A 125 kHz RFID reader round the tunnel reads the tag on each cat's collar, two infrared beams tell whether the cat went in or out, two small servos are the latches, and the ESP32 keeps a record of who is at home. At night a curfew lets the cats come in but not go out, and a dashboard on a laptop or a phone shows it all. Microchip cat flaps are a familiar sight in homes with cats, and they are a neat lesson in RFID, sensors and simple state machines. In this tutorial, we will go through the circuit, see how a 125 kHz reader and its tags work and what the EM-18 sends, check the tag's checksum, find the direction of a trip from the order of two beams, drive the two latches, add the OPEN, IN ONLY and LOCKED modes, walk through the code, and then run the simulation: a cat going out, a neighbour's cat refused, the cat coming back, a cat that changes its mind, and the night curfew. At the end, you can download the project with the sketch and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the ...

OBD-II Scanner on CAN Bus with Raspberry Pi 5 - Proteus Simulation

OBD-II Scanner on CAN Bus with Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5 scan tool, two MCP2515 CAN modules, the UNO engine ECU and the LCD showing P0217

Hello friends, I hope you all are doing great. Today, I am going to share the OBD-II Scanner on CAN Bus with Raspberry Pi 5 in Proteus Simulation, the sixty-second project of our IoT Projects series. If you have searched for a Raspberry Pi OBD-II reader, a CAN bus project with the MCP2515, or a Proteus simulation of car diagnostics, here is a complete one. Every car built in the last twenty-five years has a diagnostic port under the dashboard, and behind it a CAN bus where the engine's control unit answers questions: how fast the engine turns, how hot the coolant is, whether the check engine lamp is on and why. Here a Raspberry Pi 5 is the scan tool, and an Arduino UNO plays the engine's control unit, with a throttle knob and a real coolant temperature sensor. In this tutorial, we will go through the circuit, see how a CAN bus works and why every node hears every frame, how an OBD-II request and its answer fit in one 8-byte frame, how the Pi drives the MCP2515 CAN controller with its own SPI instructions and no library, how the engine values are packed into bytes, how a trouble code like P0217 is stored and decoded, walk through both programs, and then run the simulation: idle, driving, an overheating engine that lights the check engine lamp, reading the code, cooling down and clearing it. At the end, you can download the project with both programs and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the ...

Sign Language Glove with ESP32 and Flex Sensors - Proteus Simulation

Sign Language Glove with ESP32 and Flex Sensors - Proteus Simulation: the ESP32, five flex sensor modules, the OLED and the piezo, showing I LOVE YOU

Hello friends, I hope you all are doing great. Today, I am going to share the Sign Language Glove with ESP32 and Flex Sensors in Proteus Simulation, the sixty-first project of our IoT Projects series. If you have searched for an ESP32 flex sensor project, a smart glove, or a Proteus simulation of gesture recognition, here is a complete one. A flex sensor runs along the back of each finger of a glove; when a finger bends, its sensor's resistance rises. The ESP32 reads all five, works out how far each finger is bent, recognises the hand shape, shows the word on a small OLED, chirps, and builds a sentence on a dashboard that a laptop or a phone can show to someone who does not know the signs. Gloves like this are a well-known assistive technology project and the first step into gesture recognition: the same idea drives data gloves for virtual reality, remote robot hands and rehabilitation tools. In this tutorial, we will go through the circuit, see what a flex sensor is and how a voltage divider reads it, why the program converts the voltage back to a resistance before anything else, how a two-point calibration fits the glove to any hand, how the nearest-shape method recognises a sign, why the hand must be still before a sign counts, walk through the code, and then run the simulation: the calibration, seven signs, the OK sign with two half-bent fingers, and a hand shape that is not a sign. At the end, you can download the project with the sketch and every library file. NOTICE: ...

Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation

Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation: the Raspberry Pi 5, the coupled tanks, the ADS1115, the OLED, the knob and the ALARM LED

Hello friends, I hope you all are doing great. Today, I am going to share the Coupled Tank Water Level Control on Raspberry Pi 5 in Proteus Simulation, the sixtieth project of our IoT Projects series. If you have searched for a Raspberry Pi water level controller, a PID level control project, or a Proteus simulation of cascade control, here is a complete one. Two tanks hang one above the other: a pump fills the top tank, the top tank drains into the bottom one, and the bottom one drains away. The Raspberry Pi 5 reads both levels, drives the pump, and holds either tank at the level you set with a knob, while a dashboard on a laptop or a phone shows everything. Then a leak opens in the bottom tank, and the Pi not only keeps the level, it works out how much water is being lost and how big the hole is. Coupled tanks are the classic process control lab of engineering courses, because they behave like the real thing: chemical reactors, boilers, water towers and treatment plants are all tanks connected by pipes and valves. In this tutorial, we will go through the circuit, see how Torricelli's law gives the flow out of a tank, turn that into a model the Pi can use, design the PI controllers from the model with a little algebra instead of trial and error, see why a textbook PI overshoots and how setpoint weighting fixes it, build a cascade for the bottom tank, and find a leak with a mass balance. Then we run the simulation: a fill, two setpoint steps, the cascade, the leak, and manual ...

SMS Solar Pump Controller with ESP32 and SIM800L: Proteus Simulation

SMS Solar Pump Controller with ESP32 and SIM800L: Proteus Simulation: the ESP32, the SIM800L GSM module, the relay module, the 12 V solar pump, the soil sensor and the tank sensor

Hello friends, I hope you all are doing great. Today, I am going to share the SMS Solar Pump Controller with ESP32 and SIM800L in Proteus Simulation, the fifty-ninth project of our IoT Projects series. If you have searched for an ESP32 SIM800L project, a GSM pump controller, or a Proteus simulation of an SMS-controlled relay, here is a complete one. A solar water pump stands in a field far from any WiFi; its owner switches it on and off from any phone, with a text message or simply a missed call, and the ESP32 answers every command by SMS. When the tank runs low, the pump stops before it can run dry and the owner gets an alert; in AUTO mode a soil moisture sensor decides when to water. GSM control is still the way many farmers run pumps in remote fields: a mobile signal reaches places that WiFi and wired internet never will, and every phone can send an SMS. In this tutorial, we will go through the circuit, see how the ESP32 talks to the SIM800L with AT commands, how an SMS arrives and how one is sent, why a missed call is a free remote control, how the soil sensor is calibrated, how the pump is protected from running dry, walk through the code, and then run the simulation: commands by SMS, a status report, an empty tank with its alert, a missed call, AUTO watering on dry and wet soil, and an unknown message. At the end, you can download the project with the sketch and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and ...

Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation

Cashless NFC Vending Machine on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the PN532 NFC reader, the 20x4 LCD, the L9110S with two N20 spiral motors and the FC-51 drop beam

Hello friends, I hope you all are doing great. Today, I am going to share the Cashless NFC Vending Machine on Raspberry Pi 5 in Proteus Simulation, the fifty-eighth project of our IoT Projects series. If you have searched for a Raspberry Pi vending machine, a PN532 NFC project with the Raspberry Pi, or a Proteus simulation of cashless payment with MIFARE cards, here is a complete one. The money is kept on the card itself, as on campus, canteen and transport cards: the Raspberry Pi 5 reads the credit from the card with a PN532 reader, takes the price off and writes it back, turns a spiral exactly one turn with an encoder gear motor, and checks with an infrared beam that the item really fell, giving the money back if it did not. A 20x4 LCD guides the customer, and a dashboard on a laptop or a phone tops up cards and restocks the machine. Vending machines have quietly gone cashless, and stored-value cards are one of the oldest ways to do it. In this tutorial, we will go through the circuit, see how an NFC reader talks to a MIFARE Classic card, store a wallet in one 16-byte block with a check that catches a wrong value, take the payment before anything moves and refund it when the item sticks, count one spiral turn with a motor encoder, catch the falling item with an infrared beam, ignore a bouncing button, walk through the Python program, and then run the simulation: a new card, a top-up, purchases, an item that does not drop, a card with too little credit, and the credit still ...

MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation

MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation: the ESP32, the MAX30102 pulse oximeter, the 128x32 OLED, the piezo, the LEDs and the START / STOP button

Hello friends, I hope you all are doing great. Today, I am going to share the MAX30102 Heart Rate Zone Trainer on ESP32 in Proteus Simulation, the fifty-seventh project of our IoT Projects series. If you have searched for an ESP32 heart rate monitor, a MAX30102 pulse oximeter project, or a Proteus simulation of SpO2 measurement, here is a complete one. A fingertip rests on a MAX30102 sensor; the ESP32 turns the light it measures into the pulse and the blood oxygen, shows them on a small OLED, beeps with every heartbeat like a hospital monitor, and coaches a workout: it names the heart-rate zone you are training in, counts the seconds in each zone, and raises an alarm when the oxygen drops. A dashboard on a laptop or a phone starts and stops the workout and draws the last 160 seconds. Pulse oximeters clip onto a finger in every hospital ward, and the same sensor sits on the back of every fitness watch. In this tutorial, we will go through the circuit, see how two LEDs and a photodiode can measure a pulse and the oxygen in the blood, find the beats in the infrared wave, work out SpO2 from the red and infrared pulses, turn the pulse into training zones, make the beep's pitch follow the oxygen, walk through the code, and then run the simulation: rest, a walk, a run, a drop in oxygen that sets off the alarm, a finger taken off the sensor, and the workout summary. At the end, you can download the project with the sketch and every library file. NOTICE: Our team has put a lot of ...

nRF9160 Feather Library for Proteus: Cellular SMS Simulation

nRF9160 Feather Library for Proteus simulation: the tank level alarm with the float sender, the LOW lamp lit

Hello friends, I hope you all are doing great. Today, I am going to share the nRF9160 Feather Library for Proteus, so you can run a cellular IoT simulation of Circuit Dojo's nRF9160 Feather. This small Feather board carries Nordic's nRF9160 - an Arm Cortex-M33 with an LTE-M and NB-IoT modem and GPS under one shield - so a project can send data and SMS from anywhere with mobile coverage. With this library the board runs your Arduino sketch in Proteus 8.5, talks to its modem with AT commands and sends and receives SMS. For the demo we built a cellular tank level alarm for a water tank on a farm, far from any Wi-Fi. A float sender reports the level; when the tank runs low the board sends a LOW LEVEL SMS, it counts the water used, and the owner asks for a report by SMS. NOTICE: Proteus has no nRF9160 model, so our team has put a lot of effort into building this board ourselves: the pins, the blue LED, the MODE button and the cellular modem with SMS 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 nRF9160 Feather Library for Proteus: The nRF9160 Feather is Circuit Dojo's development board for Nordic's nRF9160 SiP, in the popular Feather size: 50.8 x 22.86 mm, the same outline and pin layout as Adafruit's Feather boards. Besides the SiP it carries ...