Engineering Blog

Learn it. Build it. Simulate it.

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

2692 articles found.

PZEM-017 DC Energy Meter Library for Proteus Simulation

PZEM-017 DC Energy Meter Library for Proteus Simulation: an Arduino UNO V4.0, a MAX485 module, the PZEM-017, a shunt, a load and a lead-acid battery

Hello friends, I hope you all are doing great. Today, I am going to share the new PZEM-017 DC Energy Meter Library for Proteus Simulation, the next library of our renewable energy series. If you have searched for a Proteus simulation of the PZEM-017, the small DC energy meter that solar and battery projects read over RS485, this library brings it into Proteus with its real Modbus registers, so that the same Arduino code runs on the simulation and on the real module. The meter is drawn compact, and at run time its three lamps work on your sheet, while its label plate shows the volts, the amps, the watts and the watt-hours it has measured. The simulation model measures the supply and the current through an external shunt, counts the energy, watches two voltage alarms, and answers Modbus-RTU requests byte for byte like the real module. The demo is a battery energy monitor: our lead-acid battery feeds a load, and an Arduino reads the meter through our MAX485 module. 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 Motor Driver board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the PZEM-017 DC Energy Meter Library for Proteus Simulation: The PZEM-017 is a DC energy meter in a small plastic case. It has no ...

Focus Stacking Rail on Raspberry Pi 5: Proteus Simulation Project

Focus Stacking Rail on Raspberry Pi 5: Proteus Simulation Project: the Raspberry Pi 5, the TMC2209, the NEMA 17 stage and the PC817 camera trigger

Hello friends, I hope you all are doing great. Today, I am going to share the Focus Stacking Rail on Raspberry Pi 5: Proteus Simulation Project, the thirty-eighth project of our IoT Projects series. If you have searched for a Proteus simulation of a Raspberry Pi stepper motor project for macro photography, here is a complete one. A Raspberry Pi 5 drives a TMC2209 stepper driver and a NEMA 17 linear stage that carries a camera in steps of a few microns, finds its zero on an end switch, and takes a photo at every step through two PC817 optocouplers wired like a camera's remote cable. A live web dashboard, on a laptop or a phone, sets the near and far ends and the step, and starts or stops the stack. Anyone who has photographed a fly's eye or the pins of a chip knows the problem: up close, only a sliver of the subject is sharp, often less than half a millimetre. Focus stacking solves it by taking many photos, each focused a little deeper, and merging the sharp parts in software. Doing that by hand is slow and shaky, so macro photographers use a motorized focus rail. In this tutorial, we will go through the circuit, work out how many shots a subject needs from the depth of field, learn how a lead screw and microstepping give 5 micron steps, home the rail on its end switch, trigger a camera safely through optocouplers, walk through the Python program, and then run the simulation: homing, a 9-shot stack with the camera's LEDs caught mid-shot, new settings from the phone, and a ...

ESP32 4-20 mA Gas Detector with an MQ-4 Sensor - Proteus Simulation

ESP32 4-20 mA Gas Detector with an MQ-4 Sensor - Proteus Simulation: the ESP32, the MQ-4, the MCP4725, the LM358, the 2N7000 and the panel meter

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 4-20 mA Gas Detector with an MQ-4 Sensor - Proteus Simulation, the thirty-seventh project of our IoT Projects series. If you have searched for a Proteus simulation of an ESP32 with a 4-20 mA current loop output, here is a complete one. An ESP32 DevKit V1 reads an MQ-4 methane sensor and sends the gas reading the way industry does, as a current between 4 and 20 milliamperes: an MCP4725 DAC, an LM358 op-amp and a 2N7000 MOSFET turn the reading into the loop current, the ESP32 reads that current back to catch a cut cable, an analog panel meter shows it in the "control room", and a live web dashboard on a laptop or a phone shows the gas in ppm and in percent of the lower explosive limit. Walk into any factory, boiler house or gas station and the sensors on the walls are not sending numbers over WiFi: they send a current on two wires, 4 mA for nothing and 20 mA for the top of the range. That old, simple signal is still the backbone of industrial measurement, because a current does not care about the length of the cable, noise has a hard time changing it, and a broken wire shows up at once as zero. In this tutorial, we will go through the circuit, learn why the loop starts at 4 mA, measure methane with an MQ-4 and turn its resistance into ppm, build a voltage-to-current converter from a DAC, an op-amp and a MOSFET, read the loop back to find faults, check the loop's voltage budget, walk through the ...

Anemometer Wind Speed Sensor Library for Proteus Simulation

Anemometer Wind Speed Sensor Library for Proteus Simulation: an Arduino UNO V4.0 and the three-cup anemometer in a gale

Hello friends, I hope you all are doing great. Today, I am going to share the new Anemometer Wind Speed Sensor Library for Proteus Simulation, the next library of our renewable energy series. If you have searched for a Proteus simulation of an anemometer, the spinning three-cup wind speed sensor on every weather station, crane and wind turbine, this library brings one with a pulse output into Proteus, ready for an Arduino. The sensor is drawn compact, a little smaller than an Arduino UNO, and at run time its label shows the wind speed it reports and its pulse frequency, with the wind's name on the Beaufort scale above the cups. The simulation model makes the wind, steady, gusty or rising, lets the cups follow it with their natural lag, and puts out the pulses that a real sensor of this kind gives. The demo is a wind speed monitor with a gale warning, the same job that protects a small wind turbine in a storm. 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 Motor Driver board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Anemometer Wind Speed Sensor Library for Proteus Simulation: An anemometer is an instrument that measures the speed of the wind. The most common kind is the cup anemometer: three hollow ...

IoT People Counter with Raspberry Pi 5 - Proteus Simulation

IoT People Counter with Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, two IR beams on photodiodes, the ADS1115, the L9110S and the counter

Hello friends, I hope you all are doing great. Today, I am going to share the IoT People Counter with Raspberry Pi 5 - Proteus Simulation, the thirty-sixth project of our IoT Projects series. If you have searched for a Proteus simulation of a Raspberry Pi people counter with infrared beams, here is a complete one. A Raspberry Pi 5 watches two infrared beams across a doorway, tells from the order they are broken whether someone walked in or out, keeps the number of people inside, clicks a real electromechanical counter for every visitor, lights a FULL lamp at the room's limit, and serves a live web dashboard that you can open on a laptop or a phone. Shops, libraries, meeting rooms and buses all want to know how many people are inside, and the classic way is a pair of light beams across the door. One beam can count, but it cannot tell in from out; two beams a hand's width apart can, because whoever walks through breaks them one after the other, and the order gives the direction. In this tutorial, we will go through the circuit, learn how an IR LED and a photodiode make a beam, measure the photodiode with an ADS1115, turn the beams' order into a direction with a small state machine, drive an electromechanical counter through an H-bridge, walk through the Python program, and then run the simulation: four people in, the room full, one out, a hand through one beam, and the dashboard. At the end, you can download the project with the program, every library file and the Python ...

12V to 230V Pure Sine Wave Inverter Library for Proteus Simulation

12V to 230V Pure Sine Wave Inverter Library for Proteus Simulation: an Arduino UNO V4.0, the inverter, our INA219, a lead-acid battery and a mains lamp

Hello friends, I hope you all are doing great. Today, I am going to share the new 12V to 230V Pure Sine Wave Inverter Library for Proteus Simulation, the next library of our renewable energy series. If you have searched for a Proteus simulation of an inverter, the box that turns the 12 V of a battery into the 230 V of a wall socket, this library brings a 300 W pure sine wave inverter into Proteus, with its efficiency, its low-battery alarm and its protections. The inverter is drawn at its true size, and at run time its two lamps work on your sheet, while its label plate shows its state and both sides of the conversion: the volts and amps taken from the battery, and the volts, amps and watts given to the load. The simulation model makes a real 50 Hz sine wave on its output, takes the matching current from the battery, warns when the battery runs low and shuts down before the battery is harmed. The demo runs a mains lamp from our lead-acid battery, with an Arduino as the battery monitor. 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 Motor Driver board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the 12V to 230V Pure Sine Wave Inverter Library for Proteus Simulation: A battery gives direct current, DC: a ...

IoT Haptic Notifier with ESP32 - Proteus Simulation

IoT Haptic Notifier with ESP32 - Proteus Simulation: the ESP32, the DRV2605L haptic driver, the coin LRA and the answer button

Hello friends, I hope you all are doing great. Today, I am going to share the IoT Haptic Notifier with ESP32 - Proteus Simulation, the thirty-fifth project of our IoT Projects series. If you have searched for a Proteus simulation of an ESP32 with a DRV2605L haptic driver and a vibration motor, here is a complete one. An ESP32 DevKit V1 is the brain of a vibrating wristband: a DRV2605L plays a different feel for every kind of notification on a 10 mm coin LRA, a message, a call, an alarm or a timer, a button answers a call, DO NOT DISTURB holds everything but alarms, and a live web dashboard, on a laptop or a phone, sends the notifications. Phones and watches speak to us through vibration, and the good ones do it with more than a buzz: a crisp click, a double tap, a swelling ramp. That is haptics, and the DRV2605L is the chip that makes it easy: you choose an effect from its built-in library and press GO. In this tutorial, we will go through the circuit, learn how a linear resonant actuator works and why it needs AC at its resonance, set up the DRV2605L and run its auto calibration, build vibration patterns from its sequencer, add a button and a do-not-disturb mode, walk through the Arduino sketch, and then run the simulation: a message, a call answered with the button, an alarm that comes through do-not-disturb, and a timer. 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, ...

Wind Turbine Charge Controller Library for Proteus Simulation

Wind Turbine Charge Controller Library for Proteus Simulation: an Arduino UNO V4.0, the wind charge controller, a wind turbine, a generator and a battery

Hello friends, I hope you all are doing great. Today, I am going to share the new Wind Turbine Charge Controller Library for Proteus Simulation, the next library of our renewable energy series. If you have searched for a Proteus simulation of a wind charge controller, the box between a small wind turbine and its battery, with a dump load that burns off the surplus and a brake that stops the rotor, this library brings a compact 12 V / 24 V one into Proteus. The controller is drawn at its true size, and at run time its four lamps work on your sheet, while its label plate shows what it is doing, the generator's frequency and current, and the battery's volts and amps. The simulation model rectifies the three wires of a wind generator, charges the battery, pulses a dump load when the battery is full and shorts the generator when even that is not enough. The demo is a complete small wind power system built from our own libraries: a turbine, a generator, this controller, a battery and an Arduino that watches it all. 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 Motor Driver board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Wind Turbine Charge Controller Library for Proteus Simulation: A solar panel can ...

IoT Split-Flap Message Board with Raspberry Pi 5 - Proteus Simulation

IoT Split-Flap Message Board with Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, four ULN2003 boards and four split-flap modules

Hello friends, I hope you all are doing great. Today, I am going to share the IoT Split-Flap Message Board with Raspberry Pi 5 - Proteus Simulation, the thirty-fourth project of our IoT Projects series. If you have searched for a Proteus simulation of a Raspberry Pi split-flap display, the clattering flaps of old railway and airport departure boards, here is a complete one. A Raspberry Pi 5 drives four split-flap modules through four ULN2003 boards, finds each module's home with its hall sensor, steps all four from one Python thread, shows words and the time, and serves a live web dashboard that you can open on a laptop or a phone. A split-flap module is a lovely piece of mechanics: a spool of 40 printed flaps, a small stepper motor and a magnet. It only turns forwards, it has no idea where it is when it powers up, and every flap that falls adds a little load to the motor. In this tutorial, we will go through the circuit, learn how a split-flap module and its 28BYJ-48 stepper work, drive the stepper through a ULN2003 with half steps, find home with a hall sensor and keep the position right with every turn, step four motors at once from one thread with their own speed ramps, walk through the Python program, and then run the simulation: homing, OPEN, BUSY, FREE, a clock and homing again. At the end, you can download the project with the program, every library file and the Python runtime the Pi needs. NOTICE: Our team has put a lot of effort into this project: the circuit, the ...

IoT Aquarium Controller with ESP32 - Proteus Simulation

IoT Aquarium Controller with ESP32 - Proteus Simulation: the ESP32, the DS18B20 probe, two 74HC595, the LED bar graph, the L9110S and the air pump

Hello friends, I hope you all are doing great. Today, I am going to share the IoT Aquarium Controller with ESP32 - Proteus Simulation, the thirty-third project of our IoT Projects series. If you have searched for a Proteus simulation of an ESP32 aquarium controller with a 74HC595 shift register and an LED bar graph, here is a complete one. An ESP32 DevKit V1 measures the water's temperature with a DS18B20 waterproof probe, shows it on a 10-segment LED bar graph driven by two 74HC595 shift registers, runs the tank's air pump harder as the water warms, stops the pump while the fish are fed, warns when the water gets too warm, and serves a live web dashboard that you can open on a laptop or a phone. Fish breathe the oxygen dissolved in the water, and warm water holds less of it: that is why an aquarium needs more air on a hot day. In this tutorial, we will go through the circuit, learn how a 74HC595 turns three pins into eight outputs and how two of them share a clock to give sixteen, light an LED bar graph safely, read a DS18B20 on OneWire, see how much oxygen water can hold at each temperature, drive a 6 V air pump through an L9110S with PWM, walk through the Arduino sketch, and then run the simulation: the water warming from 24 to 31 degrees, the pump speeding up, a feeding pause, a too-warm alarm and the water cooling again. 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 ...