Engineering Blog

Learn it. Build it. Simulate it.

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

2714 articles found.

MCP4725 DAC Module Library for Proteus

MCP4725 DAC Module Library for Proteus: an Arduino UNO V4.0 and the MCP4725 board making a sine wave

Hello friends, I hope you all are doing great. Today, I am going to share the new MCP4725 DAC Module Library for Proteus, the first of the lab ICs in our University Lab series. A DAC, a digital-to-analog converter, does the opposite of the Arduino's analogRead: it takes a number and turns it into a real voltage. The Arduino UNO has no true DAC of its own; its analogWrite is only PWM, a fast on-off square wave. The MCP4725 adds a genuine 12-bit analog output over two I2C wires, and that is why it is everywhere in student labs: programmable reference voltages, sensor calibration, function generators, audio tones, motor and LED control, and closed-loop experiments. Our library brings it into Proteus on a small breakout board drawn at its true size, 18 x 13 mm. Every command, every byte of the read-back, the on-chip EEPROM with its write time, the power-down modes and the general call follow the datasheet, and the output follows the supply the way the real chip does. The pop-up shows the resistor string inside the DAC with its tap moving, the output buffer and the voltage over time. The demo is an Arduino that reads the DAC back, measures its linearity, stores a power-up value, switches the output off and on, and then plays a 251 Hz sine wave. 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 ...

MAX30205 Body Temperature Sensor Library for Proteus

MAX30205 Body Temperature Sensor Library for Proteus: an Arduino UNO V4.0 and the MAX30205 board during the fever alarm

Hello friends, I hope you all are doing great. Today, I am going to share the new MAX30205 Body Temperature Sensor Library for Proteus, the fourth of the biomedical set in our University Lab series. The MAX30205 is a small digital temperature sensor made for the human body: it reads 0.1 °C accurate between 37 and 39 °C, gives 16-bit results over I2C and has its own alarm output. It is the chip inside many wearable thermometers, fever patches and fitness bands, and it is a favourite in biomedical student projects because it turns a body temperature into a clean number with only two wires. Our library brings it into Proteus on a small breakout board drawn at its true size, 20 x 15 mm. Every register, every bit of the configuration, the conversion timing, both data formats and the alarm output in both of its modes follow the datasheet, so the code you write in Proteus is the code that runs on the real chip. The skin under the sensor follows a temperature profile you write in a property, and the chip warms up to it the way a real one does, through its pad. The pop-up shows the sensor on a forearm, a thermometer with the alarm limits and the whole run. The demo is an Arduino that sets a fever alarm over I2C and watches it trip and clear. 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 ...

GSR Galvanic Skin Response Sensor Library for Proteus

GSR Galvanic Skin Response Sensor Library for Proteus: an Arduino UNO V4.0 and the GSR sensor

Hello friends, I hope you all are doing great. Today, I am going to share the new GSR Galvanic Skin Response Sensor Library for Proteus, the third of the biomedical set in our University Lab series. A GSR sensor measures how well the skin conducts electricity between two fingers. When something startles or excites a person, the sweat glands of the hand open for a moment, the skin conducts a little better, and the sensor sees it about a second and a half later. Psychology labs use it to measure arousal and stress, game and media researchers to see which moments grab attention, and students to build biofeedback and relaxation projects. The small Grove GSR board, with its two finger sleeves, is the one most of them start with. Our library brings a sensor in that style into Proteus. It is drawn at its true size, 20 x 20 mm, with the LM324, the sensitivity trimmer, the finger cable and the 4-pin connector. You choose the skin's resting conductance, when the fingers go on, and a list of stimuli with the size of the response each one brings. The model builds the skin conductance from them and gives it out exactly the way the real board does: as a reading that falls when the skin conducts more, which the maker's formula turns back into a resistance. The pop-up shows a hand that sweats with each response and the conductance over the whole run. The demo is an Arduino that calibrates the sensor, converts every reading and measures every response on its own. NOTICE: Our team has put a ...

MyoWare EMG Muscle Sensor Library for Proteus

MyoWare EMG Muscle Sensor Library for Proteus: an Arduino UNO V4.0 and the EMG muscle sensor

Hello friends, I hope you all are doing great. Today, I am going to share the new MyoWare EMG Muscle Sensor Library for Proteus, the second of the biomedical set in our University Lab series. An EMG muscle sensor reads the electrical activity of a muscle through three electrodes on the skin. Flex your arm and its output rises; relax and it falls. Students use it to control prosthetic hands, robot grippers, game controllers and exoskeletons, and to measure muscle effort in sports labs. The MyoWare 2.0, a red triangle with a snap electrode at each corner, is the one most of them reach for. Our library brings a sensor in that style into Proteus. It is drawn at its true size, about 38 x 36 mm, and it has the three outputs: RAW, the amplified muscle signal; RECT, the signal rectified; and ENV, the smooth envelope that a sketch reads to know how hard the muscle works. You plan the contractions in a property, as many as you like and as strong as you like. The model makes the noise-like EMG of a working muscle, passes it through the sensor's band and envelope, and the pop-up shows an arm flexing while the three outputs scroll by. The demo is an Arduino that measures every contraction. 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 MyoWare EMG board of our forum. And if ...

AD8232 ECG Heart Monitor Library for Proteus

AD8232 ECG Heart Monitor Library for Proteus: an Arduino UNO V4.0 and the AD8232 ECG module

Hello friends, I hope you all are doing great. Today, I am going to share the new AD8232 ECG Heart Monitor Library for Proteus, the first of the biomedical set in our University Lab series. The AD8232 is the little red module students use for their first heart monitor: three electrodes, a 3.5 mm jack, and an output that draws an ECG on any Arduino's analog pin. It is in countless biomedical engineering labs and final-year projects, yet there has been no way to try it in a simulator: Proteus has no heart. Our library gives it one. The module is drawn at its true size, and its model makes a realistic lead-I ECG, with P waves, QRS complexes and T waves, a heart rate that breathes, and normal, PVC or atrial fibrillation rhythms. It adds the noise and mains pickup of real electrodes, then runs it all through the AD8232's cardiac monitor chain as the datasheet describes it. The leads-off outputs work, the shutdown pin works, and the pop-up draws the ECG on red-grid paper at 25 mm/s. The demo is an Arduino beat detector that prints the heart rate and copes with an electrode coming 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 AD8232 ECG board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the AD8232 ECG ...

Coupled Tanks Level Control Lab Library for Proteus

Coupled Tanks Level Control Lab Library for Proteus: an Arduino UNO V4.0 and the coupled tanks with water in both

Hello friends, I hope you all are doing great. Today, I am going to share the new Coupled Tanks Level Control Lab Library for Proteus, the sixth and last control plant of our University Lab series. Water tanks are where process control starts: a pump, a tank, a level to hold, and a flow out that changes with the level itself. Put a second tank under the first and you have the coupled tanks of process control labs. You can control the top tank directly, but the bottom one only through the top one. That is the classic reason for cascade control. Our library brings that lab into Proteus at true scale. It is our own design: two clear tanks one above the other on an aluminium column, a 12 V pump in the base feeding the top tank, an orifice in each tank's floor, a level sensor under each tank and a leak valve on the bottom one. The model follows Torricelli's law for every outflow, the pump's flow and its lag, and the overflows. The pop-up works out the linear model at the levels, the PI gains for the top tank and for a cascade on the bottom one. It measures every level move and the leak. The demo fills the tanks, steps the top one, switches to the cascade, steps the bottom one and rides out a leak, from an Arduino UNO. 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 ...

Rotary Inverted Pendulum Lab Library for Proteus

Rotary Inverted Pendulum Lab Library for Proteus: an Arduino UNO V4.0 and the pendulum lab, the pendulum balanced upright

Hello friends, I hope you all are doing great. Today, I am going to share the new Rotary Inverted Pendulum Lab Library for Proteus, the fifth of our University Lab series. The inverted pendulum is the classic test of a control engineer: a stick that falls over the moment you stop correcting it, held upright by a motor and a few lines of code. In the rotary version a motor swings an arm, and a pendulum hangs from the end of the arm. The controller first swings the pendulum up from hanging, then catches it at the top and keeps it there, while the arm still goes where it is told. Our library brings that lab into Proteus at true scale. It is our own design: a black base with a coreless DC motor and an H-bridge inside, an 80 mm aluminium arm on the motor's hub, a 1024-line encoder at the arm's tip, a 100 mm steel pendulum on that encoder's shaft, and a second 1024-line encoder on the motor. The model solves the full nonlinear equations of the rotary pendulum, the arm and the pendulum pushing each other around. The pop-up works out the linear model about upright, its unstable pole, the LQR gains for the weights you choose and the closed-loop poles. It measures the swing-up, every arm move and a tap on the pendulum. The demo swings it up, balances it, moves the arm, rides out a tap and lets go, from an Arduino UNO. 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 ...

Magnetic Levitation Control Lab Library for Proteus

Magnetic Levitation Control Lab Library for Proteus: an Arduino UNO V4.0 and the maglev lab with the ball floating

Hello friends, I hope you all are doing great. Today, I am going to share the new Magnetic Levitation Control Lab Library for Proteus, the fourth of our University Lab series. A steel ball floating in mid-air under an electromagnet, held there by nothing but a controller, is one of the most striking experiments in a control course, and one of the most demanding. The magnet pulls harder the closer the ball comes, so the ball sits on a knife edge: a little too close and it snaps to the magnet, a little too far and it falls. The controller has to correct it hundreds of times a second. The same idea floats maglev trains and holds the shafts of magnetic bearings. Our library brings that lab into Proteus at true scale. It is our own maglev: an aluminium frame, a 12 V electromagnet with a steel core, a 19 mm steel ball resting on a stand under it, an infrared gap sensor across the gap, and the coil's MOSFET driver on the base. The physics covers the coil's current and its lag, the magnetic force and how fast it grows as the gap shrinks, and the ball falling and lifting between the magnet's face and the stand. The pop-up works out the linear model at the ball's gap, its unstable pole, the PD gains for the speed you ask for, and the overshoot and settling time of every move. The demo lifts the ball, moves it, adds an integral, and then takes the derivative away, from an Arduino UNO. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the ...

Ball and Beam PID Control Lab Library for Proteus

Ball and Beam PID Control Lab Library for Proteus: an Arduino UNO V4.0 and the ball and beam lab in the middle of a move

Hello friends, I hope you all are doing great. Today, I am going to share the new Ball and Beam PID Control Lab Library for Proteus, the third of our University Lab series. The ball and beam is the most famous unstable plant in control teaching: a ball rolls along a beam, a motor tilts the beam, and the controller has to bring the ball to a chosen spot and keep it there. Leave the beam alone for a moment and the ball rolls off the end. It is the experiment that shows, better than any other, why a controller needs its derivative term, and the same ideas balance robots, steer rockets and keep a camera level. Our library brings that lab into Proteus at true scale. It is our own ball and beam: a 250 mm aluminium channel on a pivot, a 40 mm table-tennis ball rolling in it, an MG996R servo tilting the beam through a horn and a link, and a Sharp GP2Y0A21 infrared sensor at one end measuring how far away the ball is. The physics is worked out from the parts: how a hollow ball rolls on two rims, how the linkage turns the servo's angle into the beam's, and the sensor's real curve with its 38 ms measuring cycle. The pop-up gives the model, the PD gains for the response you ask for, and the overshoot and settling time of every move. The demo makes three PD moves and one with half the derivative, from an Arduino UNO. 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 ...

DC Motor Speed and Position Control Lab Library for Proteus

DC Motor Speed and Position Control Lab Library for Proteus: an Arduino UNO V4.0, an L9110S driver and the DC servo lab

Hello friends, I hope you all are doing great. Today, I am going to share the new DC Motor Speed and Position Control Lab Library for Proteus, the second of our University Lab series. The DC servo is the workhorse of control courses: a small motor with a flywheel and an encoder, driven from a computer, on which students identify the motor with a bump test, design a PD controller for a given overshoot and peak time, and then watch the flywheel snap to an angle. The same skills drive robot joints, camera gimbals, printer heads and the feed axes of machine tools. Our library brings that lab into Proteus. It is our own servo lab, drawn at true scale: a coreless DC motor with the values of a real industrial motor, a brass flywheel on its shaft and a 100-line optical encoder under it, 400 counts per turn. The motor is a real circuit element that any driver can drive, and the encoder gives real quadrature edges that an Arduino counts in interrupts. The pop-up does the control engineer's homework live: it fits a bump test to a first-order model, turns the model into PD gains, and measures every move the flywheel makes. The demo runs a bump test, four PD moves and one move without the derivative, from an Arduino UNO through our L9110S 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 ...