Engineering Blog

Learn it. Build it. Simulate it.

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

2756 articles found.

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

PID Temperature Control Lab Library for Proteus

PID Temperature Control Lab Library for Proteus: a two-heater lab shield controlled by an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new PID Temperature Control Lab Library for Proteus, the first of our University Lab series. Temperature control is everywhere: in an oven, a 3D printer's hot end, an incubator, a soldering station and the heating of every building. It is also the classic way to learn process control. Many universities, in the United States and around the world, teach their process dynamics and control courses with a small two-heater board on an Arduino, such as the TCLab kit from Brigham Young University: students run a step test, fit a model, tune a PID loop and watch it hold a temperature. Our library brings that lab into Proteus. It is our own two-heater shield, drawn at the true size of an Arduino shield and on the same pins as the TCLab kit, and its physics is the energy balance that Park, Martin, Kelly and Hedengren fitted to a real two-heater lab in their 2020 paper. Two TIP31C transistors are the heaters, a TMP36 on each reads its temperature, and the model heats them, cools them, lets them warm each other and makes the sensors lag. The pop-up does the control engineer's homework live: it fits any step of heater 1 to a first-order model with dead time and turns it into PID gains. The demo runs a step test, then a PI loop, then a disturbance, all 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 ...

Crystal Library for Proteus: 32.768 kHz and HC-49

Crystal Library for Proteus: a 32.768 kHz watch crystal oscillating in a 2N7000 Pierce oscillator timed by an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new Crystal Library for Proteus. Every clock you own counts the vibrations of a tiny piece of quartz: the watch on your wrist, the real-time clock in your PC, the microcontroller on an Arduino board and the radio in your phone. A quartz crystal rings at one frequency so precisely that a cheap watch drifts only a few seconds a month. On a schematic it is two plates in a box; in real life it is a mechanical resonator with a set of numbers that decide whether your circuit keeps time, runs fast, runs slow or never starts at all. Our library has two crystals at true scale. The first is a 32.768 kHz watch crystal in the small cylinder you find next to every real-time clock chip, as the ECS-.327-12.5-13X, 2.1 x 6.2 mm. The second is an HC-49/US crystal, the low metal can used beside microcontrollers, as the ECS-80-18-4X at 8 MHz, with its frequency printed on the can. Both really oscillate: the model is the crystal's electrical twin, solved exactly at every step, so it keeps its frequency to a fraction of a ppm. The pop-up shows what an engineer measures on a real board: the frequency and its error in ppm, the load capacitance the circuit gives the crystal, the drive level, the start-up time and the start margin. The demo builds a watch-crystal oscillator from a 2N7000 and lets an Arduino time it. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are ...

Toroid Inductor Library for Proteus: 100uH Toroid

Toroid Inductor Library for Proteus: a 100 uH toroid in a 12 V to 5 V buck converter on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new Toroid Inductor Library for Proteus. Open a PC power supply, a solar charge controller, an amplifier or a motor drive and you will find a few doughnuts of copper wire: toroid inductors. A toroid is a coil wound round a ring, and that ring shape keeps its magnetic field almost entirely inside the core. It disturbs its neighbours very little, it picks up very little from them, and it packs a lot of inductance into a small, flat part. That is why the toroid is the classic choice for the power inductor of a buck converter and for the filters on a supply line. Our library has a 100 µH powdered-iron toroid at true scale, 21.8 mm across and lying flat on the board, as the Bourns 2100LL-101-H-RC: 36 mΩ of winding resistance and a 4.3 A rating, at which its inductance has fallen to 46.2 µH. A powdered-iron core loses its inductance gradually instead of at a sudden knee, and the model follows that curve through both datasheet points. The model also has the winding's resistance and its heat, and the pop-up shows the field circling inside the ring, a scope of the current, and the inductance curve with the working point on it. The demo builds an Arduino buck converter that makes 5 V from 12 V, first at 1 A and then at 2 A. 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 ...

Inductor Library for Proteus: 100uH Power Inductors

Inductor Library for Proteus: a radial power inductor and an axial colour-coded inductor in two boost converters on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new Inductor Library for Proteus. An inductor is the quiet partner of every power supply: in a phone charger, a laptop adapter, an LED driver or the little boost module that makes 12 V from a USB port, an inductor stores energy in a magnetic field a few thousand times a second and hands it on. On a schematic it is just a coil with a value. In real life it has two current limits, a resistance that turns current into heat, and a core that can fill up. Choosing the wrong one is one of the most common reasons a converter runs hot or fails. Our library has two through-hole inductors at true scale: a radial ferrite drum-core power inductor of 100 µH (as the Bourns RLB0914, 9 x 14 mm, saturation 2.1 A, 0.28 Ω, 1 A rated), and a small axial colour-coded inductor of 100 µH (as the Bourns 78F, 2.8 x 7.1 mm, 4.1 Ω, 165 mA rated), whose colour bands follow its value. The model has the inductance with its saturation, the winding's resistance and its heat. The pop-up shows the part in its magnetic field, a scope of its current, and the inductance falling as the current grows. The demo builds two Arduino boost converters, 5 V to 12 V, one with each inductor, and shows why the same 100 µH is not the same part. 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 ...

SCR and TRIAC Library for Proteus: BT151, BT136

SCR and TRIAC Library for Proteus: a BT151 SCR and a BT136 triac with their bulbs and an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new SCR and TRIAC Library for Proteus. Thyristors are the switches of the AC world: the part inside every light dimmer, the speed control of a drill or a fan, the heater control of a soldering station and the solid-state relay. They behave like no other transistor. A tiny pulse on the gate turns them on, and then they stay on by themselves, gate or no gate, until the current through them dies away. That one property is what makes them so useful on AC, and so puzzling the first time you meet them. Our library has two thyristors at true scale in their TO-220 packages: the BT151 SCR (500 V, 12 A) and the BT136-600E triac (600 V, 4 A, the sensitive-gate version made to be driven from a microcontroller). The model has the gate junction, the latch with its gate trigger, latching and holding currents from the datasheets, the triac's four quadrants, the on-state voltage, and the heat. The pop-up shows the latch step by step for the SCR, and a small oscilloscope of the last two AC cycles with the firing angle for the triac. The demo builds an SCR latch on DC and a triac light dimmer on AC, timed by an Arduino from a PC817 zero-crossing detector. 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 ...

Voltage Regulator Library for Proteus: LM7805, LM317

Voltage Regulator Library for Proteus: an LM7805 and an LM317 in TO-220 with their loads on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new Voltage Regulator Library for Proteus. Almost every circuit needs a steady supply voltage, and for decades the simplest way to get one has been a three-legged linear regulator: feed it 9 V or 12 V and it gives a clean 5 V or 3.3 V. The LM7805 and the LM317 are the two most famous, found on Arduino boards, in power supplies and in nearly every student's first project. They are easy to use, but they hide one trap that catches beginners again and again: the heat. Our library has both regulators at true scale in their TO-220 packages. The model has the set voltage with its line and load regulation, the dropout, the current limit, the quiescent current and, above all, the heat: the power the regulator burns flows from its junction through the tab and the heatsink you choose to the air, and past 150 °C the thermal shutdown turns the output off. The pop-up shows where the input volts and watts go and where the junction is heading. The demo puts a bare LM7805 at one amp next to an LM317 on a heatsink, and lets you watch the first one overheat. 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 Voltage Regulator board of our forum. And if our free libraries help you, you can buy us a coffee. ...

Power LED Library for Proteus: 1W and 3W LEDs

Power LED Library for Proteus: 1 W and 3 W power LEDs, a constant-current driver and power resistors on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new Power LED Library for Proteus. A power LED is the LED of torches, bicycle lights, grow lights, spotlights and LED strips: a single emitter that takes a third or two thirds of an amp and gives a hundred or two hundred lumens, a hundred times the current of an indicator LED. That brings two problems an indicator LED never has. It gets hot, and its voltage changes as it does. Drive it the wrong way, or without a heatsink, and it fades, shifts and dies early. Our library has three power LEDs at true scale on their 20 mm round aluminium boards: a 1 W white (350 mA), a 3 W white (700 mA) and a 1 W red (350 mA). The model has the junction, whose forward voltage falls about 2 mV for every degree it warms; the heat path from the junction to the board and on to the air, through a heatsink you choose; and the light, which follows the current and falls with the heat. The pop-up shows each temperature on that path and forecasts where the junction is heading. The demo compares the two ways to feed a power LED, a resistor and a constant-current driver, side by side. 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 Power LED board of our forum. And if our free libraries help you, you can buy us a ...

Filament Bulb Library for Proteus: W5W, P21W and #47

Filament Bulb Library for Proteus: W5W, P21W and #47 bulbs glowing, switched by IRLZ44N MOSFETs and a 2N2222A

Hello friends, I hope you all are doing great. Today, I am going to share the new Filament Bulb Library for Proteus. The incandescent bulb is the oldest electric light, and it is still everywhere: in the brake and indicator lights of millions of cars, in pilot lamps, in torches and in the hobby projects of anyone who wants a warm, simple light. It looks like the simplest load there is, just a piece of wire that glows, but it hides a surprise that destroys switches and fuses: when it is cold, it draws many times its rated current. Our library has three bulbs at true scale: the W5W, a 12 V 5 W wedge bulb with no metal base; the P21W, the 12 V 21 W bulb of brake and indicator lights on its BA15s base; and the #47, the 6.3 V 0.15 A miniature pilot lamp. The model is a real tungsten filament: its resistance follows its temperature, it heats with its current and cools by radiation, and it has a heat capacity. So a switch-on draws a surge of 12 to 15 times the running current, the filament warms in tens of milliseconds, PWM dims it smoothly, and the light and life follow the lamp laws. On the sheet, the glass glows in the colour of the filament's temperature. 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 Filament Bulb board of our forum. And if our free libraries ...