Engineering Blog

Learn it. Build it. Simulate it.

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

2756 Items

2756 articles found.

ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation

ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation: the ESP32, the SHT40, the ACS712, the SSR-25DA and the 230 V fan

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation, the ninety-ninth project of our IoT Projects series. If you have searched for an ESP32 humidity-controlled fan, how to switch a 230 V load with a solid-state relay, how to measure AC current with an ACS712, or how to tell if a motor is really running, here is a complete one in a Proteus simulation. Switching a mains load from a microcontroller is easy; knowing that the load actually did what it was told is the part most projects leave out. This project is a smart bathroom exhaust fan. An SHT40 sensor measures the humidity; when a shower pushes it past 70 %, the ESP32 switches the 230 V fan on through an SSR-25DA solid-state relay, and when the air is dry again it lets the fan run on for a while and stops it. An ACS712 current sensor sits in the fan's line wire, so the ESP32 also knows how much current the fan really draws. After every start it learns the fan's normal current; no current at all means a broken wire or a dead relay, and too much current means jammed blades, so the relay is switched off before the motor overheats. A dashboard shows everything, with a BOOST and a RESET. In this tutorial, we will go through the circuit, how the SHT40 measures humidity, how a zero-crossing solid-state relay switches the mains, how an ACS712 measures an AC current, and the code. Then we take a shower and jam the fan in the simulation. ...

TCS3200 Color Sensor Library for Proteus Simulation

TCS3200 Color Sensor Library for Proteus Simulation: the TCS3200 module, an I2C LCD 16x2 and an RGB LED on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new TCS3200 Color Sensor Library for Proteus Simulation. The TCS3200 turns colour into frequency: under its four white LEDs it looks at an object through tiny red, green, blue and clear filters and gives out a square wave whose frequency tells how much of each colour comes back. With this library you can run a full Proteus simulation of the common TCS3200 module, drive its filter and scaling pins from your Arduino, measure the pulses and teach your sketch to name colours. The demo is a colour detector on a conveyor: an Arduino UNO V4.0 calibrates the sensor on a white and a black card, then names each coloured card that passes, shows the red, green and blue values on a 16x2 LCD and lights an RGB LED in the colour it measured. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the photodiode board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the TCS3200 Color Sensor Library for Proteus Simulation: Inside the TCS3200 is a tiny grid of 8 x 8 photodiodes. Sixteen of them sit under red filters, sixteen under green, sixteen under blue and sixteen have no filter at all - the clear ones. They are interleaved across the grid so that every colour ...

MCP23017 Door and Window Alarm on Raspberry Pi 5 - Proteus Simulation

MCP23017 Door and Window Alarm on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the MCP23017, four MC-38 contacts and the siren

Hello friends, I hope you all are doing great. Today, I am going to share the MCP23017 Door and Window Alarm on Raspberry Pi 5 - Proteus Simulation, the ninety-eighth project of our IoT Projects series. If you have searched for a Raspberry Pi burglar alarm, how to use an MCP23017 with a Raspberry Pi, MCP23017 interrupts in Python, or how magnetic door contacts work, here is a complete one in a Proteus simulation. A wired alarm panel is a surprisingly good lesson in embedded design: inputs that must never be missed, a state machine with delays, and a failure mode that has to be the safe one. This project turns a Raspberry Pi 5 into an alarm panel for a small house. Four MC-38 magnetic contacts guard the front door, the back door, the kitchen window and the bedroom window. They are wired to an MCP23017 16-bit I/O expander, so all four zones cost the Pi only its two I2C wires and one interrupt line, and twelve pins are left for more. The MCP23017 raises its interrupt the moment a contact changes; the Pi reads which pin changed and what the port looked like at that instant. The panel chimes when a door opens while it is disarmed, refuses to arm with a window open, gives you an exit delay to leave and an entry delay to come home, and sounds the siren for anything else. A dashboard arms and disarms it from a laptop or a phone. In this tutorial, we will go through the circuit, how a reed contact works, the MCP23017's registers and its interrupt-on-change, the alarm's state machine ...

ESP32 E-Scooter Speedometer with A3144 and GC9A01 - Proteus Simulation

ESP32 E-Scooter Speedometer with A3144 and GC9A01 - Proteus Simulation: the ESP32, the A3144 Hall switch and the GC9A01 round display showing the speed

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 E-Scooter Speedometer with A3144 and GC9A01 - Proteus Simulation, the ninety-seventh project of our IoT Projects series. If you have searched for an ESP32 speedometer, how a Hall sensor measures speed, a bike computer with a round display, or how to drive a GC9A01 without a library, here is a complete one in a Proteus simulation. Every bike computer and most scooter dashboards work the same way: a small magnet on the wheel, a sensor on the fork that notices it once a turn, and a microcontroller with a stopwatch. This project builds that speedometer for an electric scooter with a 10-inch wheel. An A3144 Hall switch sees the magnet pass; the ESP32 timestamps every pass with an interrupt and turns the time of one wheel turn into km/h. A 1.28-inch GC9A01 round display shows a dial of 36 segments, the speed in big digits, the trip and the highest speed, and turns red with SLOW above 25 km/h, the legal limit for e-scooters in much of Europe. The trip, the ride time and the average are on a dashboard, with a reset and a km/h / mph switch. In this tutorial, we will go through the circuit, how a Hall switch works and why it needs 5 V, how speed comes from one turn of the wheel, how the round display is driven with plain SPI, and the code. Then we ride a full speed run in the simulation, from walking pace past the limit and back to a stop. At the end, you can download the project with the sketch and ...

Raspberry Pi 5 Climate Monitor with TCA9548A - Proteus Simulation

Raspberry Pi 5 Climate Monitor with TCA9548A - Proteus Simulation: the Raspberry Pi 5, the TCA9548A, four AHT20 sensors and the HT16K33 display

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Climate Monitor with TCA9548A - Proteus Simulation, the ninety-sixth project of our IoT Projects series. If you have searched for how to use several I2C sensors with the same address, a TCA9548A with a Raspberry Pi, a multi-room temperature and humidity monitor, or an HT16K33 14-segment display in Python, here is a complete one in a Proteus simulation. Sooner or later every I2C project hits the same wall: you want four sensors, and all four have the same address burned into the chip. This project watches four rooms, the living room, the bedroom, the bathroom and the freezer, each with an AHT20 temperature and humidity sensor at the fixed address 0x38. A TCA9548A I2C multiplexer sits between the Raspberry Pi 5 and the sensors and connects one of them at a time. The Pi reads every room every two seconds, checks each reading's CRC, works out the dew point and watches for trouble: the bathroom so humid that mould can grow, the freezer warming up, a room too hot or too cold. An HT16K33 14-segment display shows each room in turn and blinks on an alarm until someone acknowledges it from the dashboard. In this tutorial, we will go through the circuit, why I2C addresses clash and how a multiplexer solves it, the AHT20's measurement and its CRC, the dew point, the HT16K33's segments, and the code. Then we take a shower in the bathroom and leave the freezer door open in the simulation. At the ...

5-Channel Line Tracker Library for Proteus Simulation

5-Channel Line Tracker Library for Proteus Simulation: the tracker bar, an I2C LCD 16x2 and motor LEDs on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new 5-Channel Line Tracker Library for Proteus Simulation. A line-following robot needs eyes on the floor, and this is the classic set: a bar with five reflective infrared sensors that see a black line on a white floor, plus a front obstacle sensor and a bump switch. With this library you can run a full Proteus simulation of the bar on a whole course - curves, a junction, a gap, an obstacle and a collision - and write and test the brain of your robot before it ever touches the floor. The demo is that brain: an Arduino UNO V4.0 reads the five channels, works out where the line is, steers two motors with a PD controller (shown as two green LEDs whose brightness is the motor speed), handles a lost line and a cross line, slows down for an obstacle, stops on a bump and shows everything on a 16x2 LCD. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the infrared sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the 5-Channel Line Tracker Library for Proteus Simulation: Each channel of the bar is a TCRT5000 reflective sensor - an infrared LED and a phototransistor side by side, looking down at the floor. White floor returns plenty of ...

PS2 Controller Robot Rover with ESP32 and VL53L1X - Proteus Simulation

PS2 Controller Robot Rover with ESP32 and VL53L1X - Proteus Simulation: the ESP32, the PS2 receiver, the VL53L1X, the L298N and two TT gear motors with their wheels

Hello friends, I hope you all are doing great. Today, I am going to share the PS2 Controller Robot Rover with ESP32 and VL53L1X - Proteus Simulation, the ninety-fifth project of our IoT Projects series. If you have searched for an ESP32 PS2 controller robot, how the PS2 controller protocol works, collision avoidance with a time-of-flight sensor, or an L298N robot car with an ESP32, here is a complete rover in a Proteus simulation. A PS2 wireless controller is one of the cheapest ways to drive a robot: a game pad with sixteen buttons, two sticks and two rumble motors, and a small receiver that speaks a simple serial protocol. This rover adds the thing every remote-control car is missing: a sense of what is in front of it. A VL53L1X time-of-flight sensor in its nose measures the distance with a laser sixteen times a second. Within 2.5 m the ESP32 cuts the forward speed in proportion, and at 30 cm it blocks forward completely. It tells the driver too, through the controller's own rumble motors: a buzz in the slow zone, a strong rumble at the wall. Back and turns still work, so you can always drive away. In this tutorial, we will go through the circuit, the PS2 protocol byte by byte, how a time-of-flight sensor measures, the L298N and the differential drive, the collision assist, and the code. Then we drive the rover at a white card, a black object and a wall in the simulation, turn away and race off at full speed. The black object teaches the most. At the end, you can download ...

TCRT5000 IR Sensor Library for Proteus Simulation

TCRT5000 IR Sensor Library for Proteus Simulation: the TCRT5000 module, an I2C LCD 16x2 and an Arduino UNO V4.0 as a tachometer

Hello friends, I hope you all are doing great. Today, I am going to share the new TCRT5000 IR Sensor Library for Proteus Simulation. The TCRT5000 is the little reflective sensor behind countless line-following robots, object counters and speed sensors: an infrared LED and a phototransistor look at a surface a few millimetres away, and the amount of light that comes back tells white from black, or something from nothing. With this library you can run a full Proteus simulation of the common TCRT5000 module with its comparator and trimmer, watch both of its outputs, and build a tachometer with your Arduino. The demo is a tachometer: a dark disc with one white mark turns 3 mm above the sensor, a motor runs it up to 1500 and 3000 rpm and lets it stop, an Arduino UNO V4.0 times every turn from the D0 output, and a 16x2 LCD shows the speed and how far the analog A0 signal swings. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the infrared sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the TCRT5000 IR Sensor Library for Proteus Simulation: The TCRT5000 is a reflective optical sensor: one small black housing with two windows side by side. Behind one is an infrared LED at about 950 nm, behind the other a ...

Nextion HMI Conveyor Control on Raspberry Pi 5 - Proteus Simulation

Nextion HMI Conveyor Control on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the Nextion 3.2 inch HMI, the L298N and the JGB37-520 encoder gear motor

Hello friends, I hope you all are doing great. Today, I am going to share the Nextion HMI Conveyor Control on Raspberry Pi 5 - Proteus Simulation, the ninety-fourth project of our IoT Projects series. If you have searched for a Nextion display with a Raspberry Pi, how an HMI talks over a UART, DC motor speed control with an encoder and a PI loop, or an L298N with a Raspberry Pi 5, here is a complete small production line in a Proteus simulation. Every machine on a factory floor has an operator panel next to it: a touchscreen with a big start button, the speed, and a graph of what the machine is doing. This project builds one for a conveyor belt. A Nextion 3.2" HMI shows the state, the set speed, the belt's real speed and the motor's duty, and its ON, OFF and GRAPH buttons send touch events back to a Raspberry Pi 5 over the UART. The Pi drives a JGB37-520 gear motor through an L298N, counts its encoder pulses, and runs a PI speed loop that keeps the belt at its set speed when boxes load it down. It starts and stops the belt softly, and when the belt jams it switches the motor off and turns the screen red. A dashboard on the network sets the speed and shows the counters. In this tutorial, we will go through the circuit, the Nextion's instruction set and return frames, how the L298N and the encoder work, the PI loop with its feed-forward and anti-windup, and the code. Then we load the belt, watch the speed on the HMI's graph, jam it and restart it in the simulation. At the end, ...

Arduino UNO Library for Proteus 9 Professional V5.0 (64-Bit)

Arduino UNO Library for Proteus 9 Professional V5.0 (64-Bit): the UNO V5.0 running 16 Proteus LEDs in a Proteus 9 simulation

Hello friends, I hope you all are doing great. Today, I am going to share the new Arduino UNO Library for Proteus 9 Professional V5.0 (64-Bit). Proteus 9 is a 64-bit program, and a 64-bit program cannot load the 32-bit model files that the Arduino libraries for Proteus 8 are built with - including our own V4.0. So we have rebuilt our Arduino UNO from the ground up as a 64-bit model, given the board a new, more polished look, and tested it in a real Proteus 9 simulation. Your Arduino sketch runs on the UNO's ATmega328P in Proteus 9, exactly as you are used to. The demo shows it at work in a Proteus 9 simulation with nothing but Proteus 9's own parts around the UNO: 16 LEDs that run a light along the pins and two push buttons that change the pattern and the speed. NOTICE: Our team has put a lot of effort into this board: the 64-bit model, the drawing and the demo are all our own work, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the Arduino board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Arduino UNO Library for Proteus 9 Professional V5.0 (64-Bit): Proteus 8 is a 32-bit program, and so is every model file (DLL) made for it. Proteus 9 Professional is 64-bit. Windows does not let a 64-bit program load a 32-bit DLL, so when a Proteus 9 design contains a part whose model is 32-bit, the simulation cannot start. Proteus 9 reports it in ...