Engineering Blog

Learn it. Build it. Simulate it.

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

2781 articles found.

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 ...

AC Dimmer Module Library for Proteus Simulation

AC Dimmer Module Library for Proteus Simulation: an Arduino UNO V4.0, the AC dimmer module and a 120 mm 230 V fan

Hello friends, I hope you all are doing great. Today, I am going to share the new AC Dimmer Module Library for Proteus Simulation, the 43rd library of our motor series and the driver for the 230 V fan of the last one. If you have searched for a Proteus simulation of an AC dimmer, of triac phase control or of zero-cross detection with an Arduino, this is the small board that does all three: the common 1-channel AC light dimmer module with a BTA16 triac, a MOC3021 gate driver and a zero-cross output, for 3.3 V and 5 V controllers. Our library brings that board into your Proteus simulation at its true size, 63 x 30 mm, with its logic header, the two optocouplers, the triac upright on its finned heatsink, the resistors, the bridge rectifier and the two screw terminals; at run time its PWM LED glows with the gate. The simulation model works like the real circuit: the zero-cross output pulses high around every zero of the mains, the triac fires when its gate path can push enough current, and then it stays on by itself until its current dies at the end of the half-cycle, even when a motor makes that current lag. In the demo an Arduino fires it at 1.5, 3, 5 and 7 ms after each zero and dims a 120 mm 230 V fan. 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 ...

120mm 230V AC Fan Library for Proteus Simulation

120mm 230V AC Fan Library for Proteus Simulation: an Arduino UNO V4.0, the AC dimmer module and the 120 mm fan

Hello friends, I hope you all are doing great. Today, I am going to share the new 120mm 230V AC Fan Library for Proteus Simulation, the 42nd library of our motor series. If you have searched for a Proteus simulation of an AC fan, or of AC fan speed control with an Arduino, this is the fan you meet in control cabinets, amplifiers and machines: a 120 mm axial fan that runs straight from the 230 V mains, with a shaded-pole induction motor inside its hub. Our library brings that fan into your Proteus simulation at its true size, the 119 mm frame with its four corner holes, five swept metal blades and the rating label on the hub; at run time the blades turn, and over 400 RPM they become a blur, as the eye sees them. The simulation model is a real induction motor: a forward and a backward magnetic field, the slip, the torque and the power factor at every speed, fitted to the figures of this class of fan, and the fan's air load that rises with the speed squared. In the demo an Arduino sets the fan's speed through our AC dimmer module on 230 V 50 Hz: full speed, two lower settings and off. 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 120mm 230V ...

SimpleFOC Mini Driver Library for Proteus Simulation

SimpleFOC Mini Driver Library for Proteus Simulation: an Arduino UNO V4.0, the SimpleFOC Mini and a 2204 gimbal motor

Hello friends, I hope you all are doing great. Today, I am going to share the new SimpleFOC Mini Driver Library for Proteus Simulation, the 41st library of our motor series. If you have searched for a Proteus simulation of a SimpleFOC driver, this is the small open-source board that the SimpleFOC project made for gimbal motors and field-oriented control (FOC). It carries a DRV8313 with three half-bridges, takes three PWM signals from a microcontroller and turns them into three phase voltages for a brushless motor, with enable, sleep, reset and fault pins around it. Our library brings the SimpleFOC Mini v1.1 into your Proteus simulation at its true size, 26 x 20 mm, with the chip, the input header, the motor and power pads and the optional header. The simulation model follows the DRV8313 datasheet and the board's documentation: every input's PWM is measured period by period, the three outputs follow their inputs, EN opens them all, sleep and reset work as on the chip, and the faults pull nFT low. The pop-up shows the three half-bridges with their duty and current and, above all, the voltage vector that the three outputs make together, which is exactly what a FOC library sets. In the demo an Arduino drives our 2204 gimbal motor through it, the way SimpleFOC does in open loop. 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 ...