Engineering Blog

Learn it. Build it. Simulate it.

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

2735 articles found.

PAM8403 Audio Amplifier Library for Proteus Simulation

PAM8403 Audio Amplifier Library for Proteus Simulation: an Arduino UNO V4.0, the PAM8403 board and two 8 ohm loads

Hello friends, I hope you all are doing great. Today, I am going to share the new PAM8403 Audio Amplifier Library for Proteus Simulation. The PAM8403 is the little stereo amplifier behind countless DIY speakers, toys and gadgets: two channels of 3 W each from a 5 V supply, a class-D design that stays cool, and on the most common board a volume knob right next to the chip. You feed it a line-level signal, connect two small speakers, and it plays. With this library you can run a full Proteus simulation of a PAM8403 board: the AC-coupled inputs, the volume knob, the 24 dB gain, both bridge-tied outputs and the sound. The demo plays notes from an Arduino, one on the left speaker and the next on the right, so you can watch both channels and the way a pin's square wave becomes a speaker signal. 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 sound board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the PAM8403 Audio Amplifier Library for Proteus Simulation: The PAM8403 is a stereo class-D audio amplifier in a 16-pin package. It needs only 2.5 - 5.5 V and delivers up to 3 W per channel into 4 ohm speakers at 5 V. Like other filterless class-D amplifiers, it switches its outputs at a high frequency and lets the ...

MAX98357A I2S Amplifier Library for Proteus Simulation

MAX98357A I2S Amplifier Library for Proteus Simulation: an Arduino UNO V4.0 sends an I2S stream to the MAX98357A and an 8 ohm load

Hello friends, I hope you all are doing great. Today, I am going to share the new MAX98357A I2S Amplifier Library for Proteus Simulation. The MAX98357A is a tiny class-D amplifier with a digital input: it takes audio as an I2S stream of numbers and drives a 4 or 8 ohm speaker directly, up to 3.2 W from 5 V. There is no analog audio anywhere between your board and the speaker, so no hum, no DAC and no volume knob - just three digital wires. With this library you can run a full Proteus simulation of a MAX98357A breakout: the I2S receiver, the channel selection with SD, the gain set by the GAIN pin, the bridge-tied output and the sound itself. The demo goes one step further: an Arduino UNO, which has no I2S port at all, builds the I2S stream in software and plays a short arpeggio through the amplifier. 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 sound board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the MAX98357A I2S Amplifier Library for Proteus Simulation: The MAX98357A combines a digital audio interface, a digital-to-analog stage and a class-D power amplifier in a 3 x 3 mm package. The common breakout puts it on a small board with a few capacitors, a screw terminal for the speaker and a 7-pin header: ...

PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation

PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation: the ESP32, the TB6612FNG, the DC servo with its flywheel and encoder, and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the PID Auto-Tune DC Servo Motor with ESP32 - Proteus Simulation, the eighty-fifth project of our IoT Projects series. If you have searched for PID control of a DC motor with an ESP32, how to tune a PID controller, Ziegler-Nichols tuning, relay auto-tuning, or a DC servo with an encoder and a TB6612FNG, here is a complete one in a Proteus simulation. Anyone who has tuned a PID loop by hand knows the routine: raise the gain until the motor buzzes, back off, add some derivative, try again, and still the motor overshoots or crawls to the target. Industrial controllers have had a better way for decades: a button labelled TUNE. Press it and the controller tests the plant by itself and works out its own gains. That is what this ESP32 does with a DC servo. A bump test measures how fast the motor answers a step of voltage. A relay test makes the loop oscillate on purpose, just a little, to find the gain at which it would go unstable and the period of that oscillation. The Ziegler-Nichols rules then turn those two numbers into PID gains, and every move the servo makes is measured: rise time, overshoot and settling time. In this tutorial, we will go through the circuit, quadrature encoders, PID control, the bump test, the relay test, the tuning rules, integral windup and how a move is measured. Then we watch the whole auto-tune in the simulation and compare the quick Ziegler-Nichols gains with a no-overshoot ...

IRF520 MOSFET Module Library for Proteus Simulation

IRF520 MOSFET Module Library for Proteus Simulation: an Arduino UNO V4.0 dims a 12 V bulb through the IRF520 module

Hello friends, I hope you all are doing great. Today, I am going to share the new IRF520 MOSFET Module Library for Proteus Simulation. The IRF520 module is the little board that promises to let an Arduino switch a 12 or 24 V load - an LED strip, a pump, a motor, a lamp - with one pin. It carries an IRF520 power MOSFET, a gate resistor, a pull-down, a signal LED and screw terminals. It works, but with a catch that surprises almost everyone: the IRF520 is not a logic-level MOSFET, so a 5 V pin turns it only half on. With this library you can run a full Proteus simulation of the module and see that catch for yourself - the gate voltage, the drop across the MOSFET, its curves, its loss and its temperature. The demo dims a 12 V 21 W bulb with PWM from an Arduino and then switches it fully on - and the pop-up shows where the power goes. 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 IRF520 MOSFET Module Library for Proteus Simulation: The IRF520 is an N-channel power MOSFET in a TO-220 package: 100 V, 9.2 A, and 0.27 ohm between drain and source when its gate is at 10 V. The module puts it on a small board as a low-side switch. The supply goes ...

SSR-25DA Solid State Relay Library for Proteus Simulation

SSR-25DA Solid State Relay Library for Proteus Simulation: an Arduino UNO V4.0 switches a 230 V AC fan through the relay

Hello friends, I hope you all are doing great. Today, I am going to share the new SSR-25DA Solid State Relay Library for Proteus Simulation. A solid-state relay does the job of a mechanical relay - a small DC signal switches a mains load - but with no coil, no contacts and no click. The SSR-25DA is the familiar white block with four big screws: 3 to 32 V DC on one side, up to 380 V AC and 25 A on the other. Inside, an LED shines on a light-sensitive triac driver, and a triac switches the load, timed to the zero crossings of the mains. With this library you can run a full Proteus simulation of the SSR-25DA: the input current, the zero-cross turn-on, the turn-off at the load current's zero, the voltage across it, its leakage and its heat. The demo is the classic one: an Arduino switching a 230 V load. Our 120 mm AC fan runs from Proteus's own AC source through the relay, and the pop-up captures the exact moments the relay switches on 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 relay board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SSR-25DA Solid State Relay Library for Proteus Simulation: The name tells you its class: SSR for solid-state relay, 25 for 25 amps, D for a DC control input and ...

L298N Motor Driver Library for Proteus Simulation

L298N Motor Driver Library for Proteus Simulation: an Arduino UNO V4.0, the L298N board and two 12 V gear motors

Hello friends, I hope you all are doing great. Today, I am going to share the new L298N Motor Driver Library for Proteus Simulation. The L298N is the red board with the big black heatsink that sits in almost every first robot kit: two H-bridges on one ST L298 chip, so a single Arduino can drive two DC motors forward and backward and set their speed with PWM. It is simple, sturdy and cheap - and it has habits every maker should know, from the voltage it swallows to the jumpers that decide where its 5 V comes from. With this library you can run a full Proteus simulation of the L298N: its truth table, the speed from a PWM on ENA and ENB, braking and coasting, the drop in its bipolar outputs, the onboard regulator and the heat on the heatsink. The board drives real motor models on the sheet. The demo connects two of our 12 V planetary gear motors: one lifts a weight on a winch, the other turns freely, and an Arduino runs them through a sequence of soft start, brake, lowering and reversing. 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 L298N Motor Driver Library for Proteus Simulation: The L298 is a dual full-bridge driver from ST in a 15-pin ...

SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation

SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the SCD41 and SGP40 sensors, the TFT and the traffic light on red

Hello friends, I hope you all are doing great. Today, I am going to share the SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation, the eighty-fourth project of our IoT Projects series. If you have searched for an SCD41 CO2 sensor with a Raspberry Pi, how much CO2 is too much in a classroom, what rebreathed air means, or an SGP40 VOC sensor in a Proteus simulation, here is a complete one. Thirty people in a closed room breathe out about two litres of carbon dioxide a minute between them. CO2 itself is harmless at these levels, but it is a perfect tracer: every bit of extra CO2 came out of someone's lungs, together with everything else that comes out with a breath. So the CO2 level tells something more useful than "the air is stale": it tells what share of each breath you take has already been breathed by someone else in the room. This Raspberry Pi 5 reads an SCD41 CO2 sensor and an SGP40 VOC sensor and turns the numbers into what a teacher can act on: the rebreathed fraction, the fresh air each person is getting, how fast the room clears when the windows open, and whether something like a cleaning spray is in the air. A traffic light of three LEDs says it at a glance, a TFT shows the numbers and a chart, and a dashboard serves them to a laptop or a phone. In this tutorial, we will go through the circuit, CO2 as a tracer of breath, the rebreathed fraction and the ventilation rate, how the SCD41 and SGP40 work, Sensirion's I2C commands and CRC, and the program. ...

A7670C 4G LTE Module Library for Proteus Simulation

A7670C 4G LTE Module Library for Proteus Simulation: an Arduino UNO V4.0 with the A7670C 4G modem and an SMS-controlled LED

Hello friends, I hope you all are doing great. Today, I am going to share the new A7670C 4G LTE Module Library for Proteus Simulation. The A7670C is a small LTE Cat-1 modem: it puts an Arduino or an ESP32 on the 4G mobile network through a plain UART and AT commands. With it a board can send and receive SMS, call a web server over HTTP and stay online where there is no Wi-Fi - the reason it shows up in so many trackers, alarms and remote sensors now that the old 2G networks are switching off. With this library you can run a full Proteus simulation of an A7670C breakout: the power key, the start-up messages, the network registration, SMS in text mode, HTTP GET and POST, and the RI line that tells your board a message has arrived. The modem in the simulation has its own small network and web server, so every command gets an answer just as on a real SIM card - without a SIM, an antenna or a data plan. The demo sends an SMS, reads the time from a web server, posts a report, and then waits for an SMS that switches an LED. 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 GSM and 4G board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the A7670C 4G LTE Module Library for Proteus Simulation: The A7670C belongs to a ...

SN65HVD230 CAN Transceiver Library for Proteus Simulation

SN65HVD230 CAN Transceiver Library for Proteus Simulation: two Arduino UNO V4.0 boards on one CAN bus

Hello friends, I hope you all are doing great. Today, I am going to share the new SN65HVD230 CAN Transceiver Library for Proteus Simulation. The SN65HVD230 - often printed "VP230" on the chip - is the small 3.3 V CAN bus transceiver you find on blue breakout boards next to ESP32 and STM32 projects. A microcontroller's CAN controller only knows bits: a TX pin and an RX pin. The transceiver turns those bits into the two-wire differential signal of a CAN bus, CANH and CANL, and turns the bus back into bits. With this library you can run a full Proteus simulation of the SN65HVD230: the driver, the receiver, the read-back of every bit, the termination, and a decoder that shows you every frame travelling on the bus. The transceiver shares its bus with our MCP2515 module, so the two can talk to each other on one sheet. The demo sends real CAN frames, built bit by bit by an Arduino UNO, through the SN65HVD230 to an MCP2515 on a second UNO - and the receiver acknowledges every one of them. 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 CAN bus board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SN65HVD230 CAN Transceiver Library for Proteus Simulation: The SN65HVD230 is a CAN bus transceiver that runs from 3.3 ...

PT100 Cold Chain Logger with MAX31865 and ESP32 - Proteus Simulation

PT100 Cold Chain Logger with MAX31865 and ESP32 - Proteus Simulation: the ESP32, the MAX31865 with its PT100, the buzzer and the OLED with the trend

Hello friends, I hope you all are doing great. Today, I am going to share the PT100 Cold Chain Logger with MAX31865 and ESP32 - Proteus Simulation, the eighty-third project of our IoT Projects series. If you have searched for a MAX31865 with an ESP32, how to read a PT100 RTD accurately, a vaccine fridge temperature monitor, or what mean kinetic temperature is, here is a complete one in a Proteus simulation. Vaccines, insulin and many medicines must be kept between 2 and 8 C from the factory to the patient: the cold chain. Too warm and they slowly lose their strength; frozen and many vaccines are destroyed at once, often with no visible sign. So every fridge in the chain needs a logger that measures accurately, records everything, and raises the alarm early. This ESP32 reads a PT100 platinum resistance thermometer through a MAX31865 RTD converter, logs a sample every minute, and keeps what a cold chain record needs: the minimum and the maximum, the time spent above 8 C and below 2 C, and the mean kinetic temperature, the single figure that tells how much the medicine has aged. It sounds TOO WARM, TOO COLD and PROBE FAULT alarms that stay on until someone acknowledges them, shows a two-hour trend on an OLED, and serves the record on a dashboard and as a CSV file. In this tutorial, we will go through the circuit, the cold chain, how a PT100 works, the MAX31865 and its registers, fault detection, mean kinetic temperature and the alarm logic. Then we put the fridge through a power ...