Engineering Blog

Learn it. Build it. Simulate it.

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

2772 articles found.

How to Create a Proteus Simulation Model DLL in C++

How to create a Proteus simulation model DLL in C++: Traffic Light Module with TEPTRAFFIC.DLL lighting red and green with LOGIC High and only yellow with LOGIC Low

Hello friends, I hope you are doing well. This is the seventeenth tutorial in our series on how to create a Proteus library. In the previous tutorial, How to Design a User Interactive Library in Proteus, we added a Push Button Module to our library and used it to switch the red lamp of our Traffic Light Module. Both parts were built entirely from Proteus's own primitives. Today, we write a model in C++ instead. Our topic is how to create a Proteus simulation model DLL in C++. A model DLL can do things a drawn model cannot. Our Traffic Light Module still has the LOGIC property from the eighth tutorial, the one that says whether a lamp lights on a HIGH or on a LOW pin, and in the fifteenth tutorial we left it unused because a schematic model cannot honour it. A few lines of C++ can. We will look at what a VSM model DLL is, write one for our module, compile it with Visual Studio, link it to a new version of the part and test it in a simulation. Everything shown here was done in Proteus 8.5 Professional and Visual Studio 2026 Community on our PC. The picture below shows the result: the same module with the same inputs, R and G high and Y low, once with LOGIC set to High and once set to Low. The lamps follow the property, and the only thing that changed is one value in the part's properties. In the twelfth tutorial, we met the four kinds of simulation model the Proteus help describes: primitive models built into the simulator, schematic models, SPICE models and VSM models. The ...

How to Design a User Interactive Library in Proteus

How to design a user interactive library in Proteus: Push Button Module drawing with ORIGIN and TOGGLE markers, and the button held down lighting the red lamp at 9.26 mA

Hello friends, I hope you are doing well. This is the sixteenth tutorial in our series on how to create a Proteus library. In the previous tutorial, How to Create an Animated Component in Proteus, our Traffic Light Module learned to show its lamps: state symbols, a common symbol and real time current probes in the model. That part is an indicator; it shows what the circuit does. Today, we build the opposite kind of part, one that the user operates with the mouse while the simulation runs. Our topic is how to design a user interactive library in Proteus. Our example is a new member of our TEPTUTORIAL library: a Push Button Module with the pins GND, VCC and OUT, like the small button boards sold for Arduino projects. We will look at the three markers that make a part clickable, INCREMENT, DECREMENT and TOGGLE, at the STATE property that stores what the user did, and at the RTSWITCH primitive that turns that state into a real connection in the model. Then we draw the module, make its state symbols, store it with Make Device, compile its model and use it to switch the red lamp of our traffic light. Everything shown here was done in Proteus 8.5 Professional on our PC. The picture below shows the result: on the left, the drawing of the module with its pins and markers; on the right, the button held down during a simulation, with the red lamp lit and 9.26 mA in the meter. The Proteus help divides the animated parts of an interactive simulation into two groups. Indicators display a ...

Medical Sensor Libraries for Proteus: MAX30102, Heart Beat, Flex and Motion Sensors

Medical Sensor Libraries for Proteus: MAX30102, heart beat, flex and MPU6050 sensors with Arduino

Hello friends, I hope you all are doing great. Today, I am going to share a list of Medical Sensor Libraries for Proteus. Biomedical projects are a favourite of engineering students: pulse oximeters, heart rate monitors, fall detectors for elderly people, smart gloves for rehabilitation and patient monitors that send data to a doctor's phone. They are meaningful projects, and they teach you signal processing, sensors and communication all at once. They are also projects where you can't easily test on yourself. You can't change your own heart rate on demand, fall on purpose or produce a low oxygen reading to check your alarm. In Proteus, our libraries give you those signals on a slider or a pin: the MAX30102 model lets you set the pulse rate, the SpO2 target and whether a finger is on the sensor, the MPU6050 lets you create a fall with its acceleration sliders, and our heart beat and flex sensors produce their signals from a test pin. Our new MAX30102 and MPU6050 libraries come first in this list, followed by our heart beat and flex sensors, a complete heart beat monitor project and the formulas behind pulse, SpO2 and fall detection. If you are new to Proteus libraries, read How to Add New Library in Proteus 8 first. So, let's get started with the Medical Sensor Libraries for Proteus: These libraries are made for learning and for testing your code. The signals come from our models, not from a human body, and a working simulation does not prove that a real device would measure ...

How to Create an Animated Component in Proteus

How to create an animated component in Proteus: Traffic Light Module model with RTIPROBE probes and the part with red and green lamps lit by logic states

Hello friends, I hope you are doing well. This is the fifteenth tutorial in our series on how to create a Proteus library. In the previous tutorial, How to Create a Schematic Simulation Model (MDF) in Proteus, we drew the circuit of our Traffic Light Module, compiled it into TRAFFICLIGHT.MDF and let each placed module have its own resistor values. The currents were right, but the three lamps stayed dark whatever we did. Today, we make them light up. Our topic is how to create an animated component in Proteus. We will see how Proteus animates a part, how it names the pictures of each state, and how a probe inside the model tells the part which picture to show. Then we draw the six lamp states of our module, declare them in Make Device, add a common symbol for the parts of the drawing that never change, put a real time current probe into each lamp branch of the model and test the result with logic switches. On the way, we hit one surprise that the help does not mention, and we show how to avoid it. Everything shown here was done in Proteus 8.5 Professional on our PC. The picture below shows the finished result: on the left, the model with a current probe in each branch; on the right, our part during a simulation with the red and green inputs high and the yellow input low. An animated component changes its picture while the simulation runs. LEDs light up, switches flip, meters show values and our traffic light will show which lamps are on. Proteus calls such parts active ...

How to Create a Schematic Simulation Model (MDF) in Proteus

How to create a schematic simulation model in Proteus: the TRAFFICLIGHT model circuit with RRED, RYEL, RGRN resistors and diodes, and the Traffic Light Module test at 3.3 V

Hello friends, I hope you are doing well. This is the fourteenth tutorial in our series on how to create a Proteus library. In the previous tutorial, How to Add a SPICE Model in Proteus, we gave our Traffic Light Module its first working model: a SPICE subcircuit with a resistor and an LED per lamp, linked to the part with four properties. Today, we build the same behaviour a different way, by drawing it. Our topic is how to create a schematic simulation model (MDF) in Proteus. We will look inside two of Labcenter's own schematic models, draw the model of our module in a project of its own, compile it with the Model Compiler into an MDF file, attach it to our part with the MODFILE property and test it. On the way, we read the compiled file and find two mistakes before running a single simulation. Finally, we use the feature that makes schematic models worth the effort: properties of the part that flow into the model, so that each placed module can have its own resistor values. Everything here was done in Proteus 8.5 Professional on our PC, and every current in this tutorial was read from the simulation. The picture below shows the result: on the left, the model circuit as we drew it; on the right, our part using the compiled model in the test circuit from the previous tutorial. A schematic model is a circuit drawn in Proteus that describes how a part behaves. The help explains the idea: when a device is too complex for a single primitive, you draw a circuit of simulator ...

NEO-6M Library for Proteus V1.1 (GPS Module + Arduino)

NEO-6M Library for Proteus V1.1: two Arduino UNOs, the NEO-6M Advance pop-up with a 3D fix and the TEP Serial Monitor showing TinyGPS++ output

Hello friends, I hope you all are doing great. Today, I am going to share the new NEO-6M GPS Library for Proteus V1.1. The u-blox NEO-6M is the GPS module most students start with: it is cheap, it talks to an Arduino over two wires, and it tells you where you are, how fast you move and the exact time. With this NEO-6M Library for Proteus, you can build and test your GPS project on your PC, without waiting next to a window for a satellite fix. In this new version, you get two devices in one library: NEO-6M Simple, which draws a GPS screen on the schematic, and NEO-6M Advance, which opens a pop-up window with the GPS screen and four real GPS test tools (time to first fix, accuracy, NMEA check and route). I am also sharing a complete Arduino GPS Proteus simulation: one UNO prints the raw NMEA sentences, and the other reads the position with the popular TinyGPS++ library. NOTICE: This library is very close to our hearts. Our GPS model does not just replay a recorded file: it moves 30 satellites over the sky, measures their signals, computes the fix and the HDOP from their geometry and answers the real u-blox commands, right inside Proteus. It took our team a lot of hard work, many test runs and many design changes, and this library is a tribute to that effort. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the Proteus Libraries category of our forum. And if our free libraries help you in your studies or work, you can ...

Smart Agriculture Sensor Libraries for Proteus: Soil Moisture, Rain, pH and Climate

Smart Agriculture Sensor Libraries for Proteus: soil moisture, rain, pH and climate sensors with Arduino

Hello friends, I hope you all are doing great. Today, I am going to share a list of Smart Agriculture Sensor Libraries for Proteus. Smart farming is one of the most useful areas of embedded systems: a small Arduino node in the field can measure the soil, the air and the light, switch a water pump only when the plants need it, skip watering when it rains, and send an alert to the farmer's phone. That's why automatic irrigation and greenhouse monitoring are among the most popular final year projects. The trouble is that you can't test a farm on your desk. Soil dries out over days, rain comes when it wants and the field is far from your lab. In Proteus, our libraries let you play all of that: sliders for the temperature, humidity and light, and test pins or analog inputs for the soil moisture, the rain, the water level and the pH. You can run a whole growing season in a few minutes and see whether your pump logic does the right thing. In this list, our new climate sensors come first: the SHT31, BME280 and BH1750. After them, you will find our soil, rain, water and pH sensors, our solar panel libraries for powering a field node, and the radios that carry the data back home. I have also added the irrigation logic and the idea of a complete smart farm node. If you are new to Proteus libraries, read How to Add New Library in Proteus 8 first. So, let's get started with the Smart Agriculture Sensor Libraries for Proteus: Here is what each measurement tells a farmer, and which of our ...

How to Add a SPICE Model in Proteus

How to add a SPICE model in Proteus: SPICEPINS R,Y,G,GND in Make Device and the Traffic Light Module test circuit with ammeters at 5 V

Hello friends, I hope you are doing well. This is the thirteenth tutorial in our series on how to create a Proteus library. In the previous tutorial, Proteus Simulation Models Explained, we met the four kinds of simulation model and saw that our Traffic Light Module still has none: Pick Devices labels it No Simulator Model, and a simulation stops with "No model specified". Today, we give it its first working model. Our topic is how to add a SPICE model in Proteus. We will write a small SPICE subcircuit for the module, attach it to our part with four properties in the Make Device wizard, copy the model file to the right folder and test the result with ammeters at 5 V and at 3.3 V. Then we make three typical mistakes on purpose and read the messages Proteus gives for each, pack the model into a SPICE model library with Labcenter's own tool, and look at the other ways Proteus accepts SPICE models. Everything shown here was done in Proteus 8.5 Professional on our PC, and every number in this tutorial was read from the simulation. The picture below shows the two halves of the job: the SPICE properties in Make Device on the left, and the test circuit with the currents our model draws on the right. PROSPICE, the simulator inside Proteus, is based on Berkeley SPICE3F5. That means it understands the same text format as other SPICE programs: a netlist of resistors, capacitors, diodes, transistors and sources, written one element per line. A SPICE model is a piece of such text that ...

Proteus Simulation Models Explained

Proteus simulation models explained: Pick Devices model labels for RES, 74LS00, LED-RED, LM323K, LM016L, TRAFFIC LIGHTS and a part with no simulator model

Hello friends, I hope you are doing well. This is the twelfth tutorial in our series on how to create a Proteus library. In the previous tutorial, How to Edit and Update an Existing Component in Proteus, we changed our Traffic Light Module after it was in use and brought the design up to version 1.1. The part is complete as a drawing, with pins, properties and a footprint, but when we press Run, Proteus still stops with "No model specified". Today, we look at what is missing. Our topic is Proteus simulation models explained. We will see how to tell which model a part uses, go through the four kinds of model that Proteus supports, read the real property scripts of supplied parts that use each kind, find where the model files live, and separate two things that are easy to mix up: the model of a part and its animation. At the end, we compare the ways our own module could be modelled and decide how the series continues. Everything in this tutorial comes from Proteus 8.5 Professional on our PC: the Pick Devices dialogue, the help files and the supplied libraries, which we read without changing them. The picture below shows the quickest way to tell models apart, the label at the top left of the Pick Devices preview, for seven parts. A drawing tells Proteus how a part looks; a simulation model tells it how the part behaves. When you press Run, the simulator, PROSPICE, needs to know for each part what currents flow, which levels its outputs take and how fast it reacts. The model ...

Motion and Distance Sensor Libraries for Proteus: MPU6050, VL53L0X, Ultrasonic, PIR and IR

Motion and Distance Sensor Libraries for Proteus: MPU6050, VL53L0X, ultrasonic, PIR and IR sensors

Hello friends, I hope you all are doing great. Today, I am going to share a list of Motion and Distance Sensor Libraries for Proteus. These are the sensors that make robots and security systems work: they measure how far an obstacle is, notice a person walking into a room, feel a vibration, find a black line on the floor or tell a self-balancing robot which way it is tilting. If your project moves, or watches something move, you need one of them. Motion is also the hardest thing to test on a desk, because you can't easily walk in front of your own circuit or move a wall closer to a robot. In Proteus, our libraries solve that in two ways. Our new MPU6050 and VL53L0X sensors have interactive sliders for the acceleration, the rotation and the distance, while our older sensors use a TestPin or an analog pin that stands for the obstacle, the person or the magnet. The two new sensors are at the top of this list. After them, I have grouped our older sensors by what they detect: distance and obstacles, human motion, vibration and magnets. At the end, you will find the distance formulas and some robot and alarm projects that you can simulate. If you are new to Proteus libraries, read How to Add New Library in Proteus 8 first. So, let's get started with the Motion and Distance Sensor Libraries for Proteus: Every sensor in this list uses a different physical effect. The last column shows how you play that effect in a Proteus simulation: The MPU6050 combines a three-axis accelerometer, a ...