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.

L293D Motor Shield Library for Proteus Simulation

L293D Motor Shield Library for Proteus Simulation: an Arduino UNO V4.0, the L293D shield and four 130 DC motors

Hello friends, I hope you all are doing great. Today, I am going to share the new L293D Motor Shield Library for Proteus Simulation, the 48th library of our motor series. If you have searched for a Proteus simulation of the L293D motor driver shield, the board that turns an Arduino UNO into the brain of a four-wheel robot car, this library brings the whole shield into Proteus: its two L293D chips, the 74HC595 shift register that holds the motor directions, the four speed pins and the two servo headers. The shield is drawn at its true size, the 68.6 x 53.3 mm board of the UNO's own outline, with its chips, its blue terminal blocks for M1 to M4 and the external power, the servo headers, the PWR jumper, the LED and the reset key. The simulation model follows the shield bit by bit: the eight direction bits travel through the 74HC595 exactly as on the real board, the L293D enables take the speeds, and the four motor outputs carry the real drops of the L293D's Darlington transistors. In the demo an Arduino drives four of our 130 DC motors as a robot car: forward, a turn, a spin and backward. 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 L293D ...

DRV8833 Motor Driver Library for Proteus Simulation

DRV8833 Motor Driver Library for Proteus Simulation: an Arduino UNO V4.0, the DRV8833 module and two TT gear motors

Hello friends, I hope you all are doing great. Today, I am going to share the new DRV8833 Motor Driver Library for Proteus Simulation, the 47th library of our motor series. If you have searched for a Proteus simulation of the DRV8833, the small dual H-bridge that runs the two wheels of so many robot cars, this library brings the module into Proteus with both of its bridges, its input table, the slow and fast decay of its PWM, the sleep pin and the fault pin. The module is drawn at its true size, the little 18.5 x 16 mm red board with the DRV8833 chip in the middle and its two rows of six pins. The simulation model drives each motor through an H-bridge of four switches, solved together with the motor, so you can see what the input table really does to a motor: forward, reverse, brake and coast, and the two different ways the same PWM can slow a motor down. In the demo an Arduino drives two of our TT gear motors and puts the two bridges side by side, so every difference shows on the wheels. 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 DRV8833 Motor Driver Library for Proteus Simulation: A microcontroller pin can give a few milliamperes; a ...

TMC2209 Stepper Driver Library for Proteus Simulation

TMC2209 Stepper Driver Library for Proteus Simulation: an Arduino UNO V4.0, the TMC2209 module and a 100 mm linear stage

Hello friends, I hope you all are doing great. Today, I am going to share the new TMC2209 Stepper Driver Library for Proteus Simulation, the 46th library of our motor series. If you have searched for a Proteus simulation of the TMC2209, the quiet stepper driver module found in most new 3D printers and CNC boards, this library brings the module itself into Proteus: STEP and DIR from your Arduino, the microsteps set by MS1 and MS2, the current set by VREF, and two coil currents you can watch following their sine and cosine. The module is drawn at its true size, the small black StepStick board with the chip's thermal pad, the VREF trimmer, its two rows of pins and the DIAG and INDEX pins on top. The simulation model drives the motor's two coils through four half-bridges with a current loop on each coil, exactly the job the real chip does, so the current reaches the motor only as fast as the supply voltage and the coil can allow. In the demo an Arduino moves our 100 mm linear stage the same 20 mm at 1/8, 1/16, 1/32 and 1/64 microsteps, then switches the driver off and on. 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 TMC2209 Stepper Driver ...

NEMA 17 Linear Stage Library for Proteus Simulation

NEMA 17 Linear Stage Library for Proteus Simulation: an Arduino UNO V4.0, a TMC2209 driver and the 100 mm stage

Hello friends, I hope you all are doing great. Today, I am going to share the new NEMA 17 Linear Stage Library for Proteus Simulation, the 45th library of our motor series. If you have searched for a Proteus simulation of a lead-screw linear stage, the part that moves the head of a 3D printer, a laser engraver or a small CNC machine, this library gives you a complete one: a NEMA 17 stepper, a T8 lead screw, a carriage on two rods and an end switch at each side, all moving in your simulation. The stage is drawn at its true size from the top, the motor, the two end plates, the rods, the screw and the carriage with its brass nut, and at run time the carriage really slides along the sheet as the motor turns. The simulation model solves the motor's two coils with the driver, turns the rotor through its 50 teeth, and moves the carriage 8 mm for every turn of the screw. In the demo an Arduino homes the stage on its MIN switch and then moves it to three positions through our TMC2209 driver. 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 NEMA 17 Linear Stage Library for Proteus Simulation: A linear stage turns the rotation of a motor into a ...

Raspberry Pi 5 Earthquake Detector - Proteus Simulation

Raspberry Pi 5 Earthquake Detector - Proteus Simulation: the Raspberry Pi 5, the ADXL345 accelerometer, the LCD 16x2, the RGB LED and the buzzer during an earthquake

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Earthquake Detector - Proteus Simulation, the eighteenth project of our IoT Projects series. If you have searched for a Proteus simulation of an earthquake detector with a Raspberry Pi and an accelerometer, here is a complete one. A Raspberry Pi 5 reads an ADXL345 accelerometer fixed to a floor or a wall; it tells a real shake from a single knock, rates every earthquake on the intensity scale seismologists use, warns when the building tilts or the sensor falls, and shows it all on an LCD, an RGB LED, a buzzer and a live web dashboard. Seismometers in observatories are large and expensive, but the same idea works on a small scale with a MEMS accelerometer: measure the acceleration many times a second, take gravity away, and watch what is left. Hobbyists, schools and citizen-science networks build such detectors to learn about earthquakes and to sound an alarm in a lab or a server room. In this tutorial, we will go through the circuit, learn how the ADXL345 measures and what its built-in tap and free-fall detectors do, separate shaking from gravity, tell an earthquake from a knock, turn the peak acceleration into an intensity, measure a tilt, walk through the Python program, and then run the simulation: a knock, an earthquake, a tilting building and a falling sensor. At the end, you can download the project with the program, every library file and the Python runtime the Pi needs. ...

IoT Smart Curtain with ESP32 - Proteus Simulation

IoT Smart Curtain with ESP32 - Proteus Simulation: the ESP32, the ULN2003 driver, the 28BYJ-48 stepper, the LDR, the TTP223 touch pad and the LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the IoT Smart Curtain with ESP32 - Proteus Simulation, the seventeenth project of our IoT Projects series. If you have searched for a Proteus simulation of an automatic curtain with an ESP32 and a stepper motor, here is a complete one. A 28BYJ-48 stepper on a ULN2003 driver rolls the curtain up and down; an LDR opens it when the sun comes up and closes it when night falls; a TTP223 touch pad opens, closes or stops it with a tap; and a web dashboard moves it to any position from your laptop or your phone. Motorised curtains and blinds are a favourite of home automation: they wake you with daylight, keep a room cool on a hot afternoon and give privacy at night, all without anyone pulling a cord. A stepper motor suits the job perfectly, because it moves in exact steps: count the steps and you always know where the curtain is, with no sensor on the curtain at all. In this tutorial, we will go through the circuit, learn how the 28BYJ-48 and its gearbox turn steps into a position, drive it in half steps from the ESP32, decide from the daylight without reacting to every cloud, walk through the sketch, and then run the simulation: night, sunrise, a tap, half open, AUTO again and nightfall. At the end, you can download the project with the code and every library file it needs. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the simulation are our own work, and ...

Raspberry Pi 5 Fingerprint Attendance System - Proteus Simulation

Raspberry Pi 5 Fingerprint Attendance System - Proteus Simulation: the Raspberry Pi 5, the R307 fingerprint sensor with its finger cards, the LCD 20x4 and the LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Fingerprint Attendance System - Proteus Simulation, the sixteenth project of our IoT Projects series. If you have searched for a Proteus simulation of a fingerprint attendance system with a Raspberry Pi, here is a complete one. A Raspberry Pi 5 reads fingerprints with an R307 optical sensor, marks each person IN on arrival and OUT on leaving, greets them by name on a 20x4 LCD, enrols new people from a web page, and shows the whole register, with a CSV download, on your laptop and your phone. Attendance by fingerprint is everywhere now: schools, offices, factories and gyms use it because a finger cannot be forgotten at home or lent to a friend like a card. Under the hood, a fingerprint module is a small computer of its own that talks to the host through simple packets on a serial port. In this tutorial, we will go through the circuit, learn how the sensor takes an image, turns it into a template and searches its library, build those packets by hand in Python, enrol a new finger, walk through the program, and then run the simulation: arrivals, a double tap, a stranger, a badly placed finger, a new student and a departure. 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 code and every part in the simulation are our own work, and you get them all ...

IoT Smart Dustbin with ESP32 - Proteus Simulation

IoT Smart Dustbin with ESP32 - Proteus Simulation: the ESP32, the HC-SR04, the Sharp IR sensor, the SG90 lid servo, the TM1637 display and the LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the IoT Smart Dustbin with ESP32 - Proteus Simulation, the fifteenth project of our IoT Projects series. If you have searched for a Proteus simulation of a smart dustbin with an ESP32, here is a complete one. A Sharp infrared sensor on the lid sees a hand coming and an SG90 servo lifts the lid, so nobody has to touch it; an HC-SR04 ultrasonic sensor under the lid measures how full the bin is; a TM1637 display and three LEDs show the level on the bin itself; and a live web dashboard tells your laptop and your phone when the bin needs emptying. Smart dustbins are one of the most popular IoT projects, and for good reason: a touch-free lid is more hygienic, and a bin that reports its own fill level lets a school, an office or a city empty its bins when they are full instead of on a fixed round. In this tutorial, we will go through the circuit, learn how the IR sensor and the ultrasonic sensor measure distance in two very different ways, drive a servo with the ESP32's PWM hardware, talk to a TM1637 display with our own code, walk through the sketch, and then run the simulation: a hand at the lid, the bin filling up, a full bin that refuses more rubbish, and a remote OPEN for emptying. At the end, you can download the project with the code and every library file it needs. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the simulation are our own work, and ...

Raspberry Pi 5 Smart Greenhouse - Proteus Simulation

Raspberry Pi 5 Smart Greenhouse - Proteus Simulation: the Raspberry Pi 5, the DHT22, the soil, light and water sensors, the pump, the fan and the lamp

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Smart Greenhouse - Proteus Simulation, the fourteenth project of our IoT Projects series. If you have searched for a Proteus simulation of a smart greenhouse with a Raspberry Pi, here is a complete one. A Raspberry Pi 5 measures the air with a DHT22, the soil, the light and the water reservoir through an ADS1115 ADC, waters the plants with a 12 V peristaltic pump in measured doses, cools the air with a PC fan, switches a grow lamp on in the dark, and serves a live web dashboard for your laptop and your phone. A greenhouse is a small climate of its own: on a sunny afternoon it overheats, overnight it gets dark, and the soil dries at its own pace. Automating it is one of the most popular Raspberry Pi projects, because it brings together sensors, actuators and simple control rules. In this tutorial, we will go through the circuit, learn how each sensor measures, read analog sensors on a Pi through an ADC, water in doses with a soak in between, use hysteresis so nothing chatters, walk through the Python program, and then run the simulation: dry soil, a hot afternoon, nightfall and an empty reservoir. 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 code and every part in the simulation are our own work, and you get them all free. Your feedback is ...

NEMA 17 Closed-Loop Stepper Library for Proteus Simulation

NEMA 17 Closed-Loop Stepper Library for Proteus Simulation: an Arduino UNO V4.0 and two NEMA 17 closed-loop steppers

Hello friends, I hope you all are doing great. Today, I am going to share the new NEMA 17 Closed-Loop Stepper Library for Proteus Simulation, the 44th library of our motor series. If you have searched for a Proteus simulation of a closed-loop stepper motor, or wondered why a stepper loses steps and how an encoder stops it, this library answers both: a NEMA 17 stepper with a driver board on its back that reads the shaft with a magnetic encoder and never forgets where it is. Our library brings that motor into your Proteus simulation at its true size, the 42 mm motor's end with the black driver board, its OLED, three keys and the green terminal; at run time the OLED shows the shaft angle, the error and the pulses received, as on the real board. The simulation model runs both ways the board can: closed loop, where the encoder sets the current from the load, and open loop, an ordinary stepper at a fixed current. In the demo an Arduino drives one of each on the same three wires, and when a load is put on both, the difference is impossible to miss. 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 NEMA 17 Closed-Loop Stepper Library for Proteus ...