Engineering Blog

Learn it. Build it. Simulate it.

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

2692 articles found.

LD2410 Radar Sensor Library for Proteus Simulation

LD2410 Radar Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the LD2410 radar module and four LEDs

Hello friends, I hope you all are doing great. Today, I am going to share the new LD2410 Radar Sensor Library for Proteus Simulation. The LD2410 is a tiny 24 GHz radar that does what a PIR sensor cannot: it knows that someone is in the room even when they sit perfectly still, because it sees them breathe. It reports the person's distance and its own confidence over a UART. With this library you can run a full Proteus simulation of it, frame by frame, so that the code you test here works with the real radar. The module is drawn at its real size and comes alive at run time: its PWR and OUT LEDs work, and its receiving antennas warm up when an echo comes back. The demo is a presence lamp - a lamp that stays on while someone is in the room, and three LEDs that show how far away they are. 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 motion sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the LD2410 Radar Sensor Library for Proteus Simulation: The HLK-LD2410 from Hi-Link is a human presence radar on a board of 22 x 16 mm. Its gold patch antennas send out a 24 GHz signal (FMCW - the frequency sweeps up and down) and catch its echo; the radar chip works out how far away each echo came from and how much ...

GPS Accuracy Survey with NEO-7M on Raspberry Pi 5 - Proteus Simulation

GPS Accuracy Survey with NEO-7M on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the NEO-7M GPS module and the OLED with the statistics

Hello friends, I hope you all are doing great. Today, I am going to share the GPS Accuracy Survey with NEO-7M on Raspberry Pi 5 - Proteus Simulation, the seventy-fourth project of our IoT Projects series. If you have searched for how accurate a GPS module really is, what CEP50, CEP95 and 2DRMS mean, how to send UBX commands to a u-blox receiver from Python, or a Proteus simulation of a GPS module on a Raspberry Pi, here is a complete one. A GPS receiver never reports exactly the same position twice, even when it stands perfectly still. This Raspberry Pi 5 puts a u-blox NEO-7M on a point whose position is known, collects its fixes, and measures how far they wander, exactly the way surveyors and GNSS engineers judge a receiver. Two words are at the heart of it, and they are easy to mix up. Accuracy is how close the average position is to the truth; precision is how tightly the fixes cluster, wherever that cluster is. A receiver can be precise but wrong, or right on average but scattered. In this tutorial, we will go through the circuit, the NMEA sentences and the u-blox UBX binary protocol, the conversion of latitude and longitude into metres, CEP50, CEP95, DRMS and 2DRMS, the dilution of precision and the user equivalent range error, the time to first fix and the PPS pulse. Then we run the survey in the simulation: GPS under an open sky, a cold start, GLONASS, and GPS again in a city street. At the end, you can download the project with the program and every library file. ...

ML8511 UV Sensor Library for Proteus Simulation

ML8511 UV Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the ML8511 module, an RGB LED and a buzzer

Hello friends, I hope you all are doing great. Today, I am going to share the new ML8511 UV Sensor Library for Proteus Simulation. The ML8511 is a small sensor that measures the ultraviolet light of the sun - the UV-A and UV-B that tan and burn the skin - and turns it into a simple analog voltage. With this library you can run a full Proteus simulation of it, through a whole summer day, and test your UV meter before you take it outside. The module is drawn at its real size and comes alive at run time: its PWR LED works and the sensor's die glows violet with the UV it sees. The demo is a UV index lamp - an RGB LED that changes colour from green in the morning to violet at noon, and a buzzer that chirps when it is time for shade and sunscreen. 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 photodiode board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the ML8511 UV Sensor Library for Proteus Simulation: The ML8511 from LAPIS (ROHM) is an ultraviolet light sensor: a photodiode that responds to light from about 280 to 390 nm - UV-B and UV-A, the most at about 365 nm - and an amplifier that turns its tiny current into a voltage. It needs no setup and no protocol: power it, enable it, and read one analog pin. ...

AS7341 Spectral Sensor Library for Proteus Simulation

AS7341 Spectral Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the AS7341 module and an OLED showing the spectrum

Hello friends, I hope you all are doing great. Today, I am going to share the new AS7341 Spectral Sensor Library for Proteus Simulation. The AS7341 is a tiny spectrometer on a chip: instead of the three colours of an ordinary colour sensor it measures eight narrow bands of visible light, plus a clear channel and the near-infrared, and it reports them over I2C. With this library you can run a full Proteus simulation of it, register by register, so that the code you test here runs on the real sensor. The module is drawn at its real size and comes alive at run time: its PWR LED works, its diffuser takes the colour of the light it measures, and its white LED lights when you switch it on. The demo is a light-source identifier - it reads the whole spectrum, works out whether the light is daylight, a warm bulb, a white LED, a fluorescent tube or a grow light, and draws the spectrum as bars on an OLED. 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 photodiode board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the AS7341 Spectral Sensor Library for Proteus Simulation: The AS7341 from ams OSRAM is an 11-channel spectral sensor in a package of 3.1 x 2.0 mm. Under its window sit photodiodes with tiny interference ...

APDS-9960 Gesture Sensor Library for Proteus Simulation

APDS-9960 Gesture Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the APDS-9960 module, gesture LEDs and an RGB LED

Hello friends, I hope you all are doing great. Today, I am going to share the new APDS-9960 Gesture Sensor Library for Proteus Simulation. The APDS-9960 is the small sensor that lets a phone switch its screen off at your ear and lets a lamp react to a wave of your hand: in one tiny package it senses gestures, proximity, ambient light and colour, and it reports all of them over I2C. With this library you can run a full Proteus simulation of it, register by register, so that the code you test here runs on the real sensor. The module is drawn at its real size and comes alive at run time: its LEDs work, its infrared LED glows while it pulses, and the window over its photodiodes takes the colour of the light. The demo is a gesture and colour lamp - four LEDs that show which way a hand swiped, and an RGB LED that copies the colour of the room's light. 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 photodiode board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the APDS-9960 Gesture Sensor Library for Proteus Simulation: The APDS-9960 is a digital sensor from Broadcom in a package of only 3.94 x 2.36 mm. Under its two openings sit an infrared LED and a group of photodiodes. Four of the photodiodes look in four ...

Differential Drive Robot with Joystick and ESP32 - Proteus Simulation

Differential Drive Robot with Joystick and ESP32 - Proteus Simulation: the ESP32, the joystick, the two FS90R wheel servos and the OLED map

Hello friends, I hope you all are doing great. Today, I am going to share the Differential Drive Robot with Joystick and ESP32 - Proteus Simulation, the seventy-third project of our IoT Projects series. If you have searched for an ESP32 joystick robot, how to drive FS90R continuous servos, arcade drive mixing, or robot odometry and dead reckoning, here is a complete Proteus simulation of one. Most small robots, from robot vacuums to school rovers, move on two driven wheels: drive both the same and they go straight, drive them differently and they turn. This ESP32 reads a thumb joystick, turns it into two wheel speeds, drives two FS90R continuous-rotation servos as the wheels, and works out from those speeds where the robot has gone. Each of those steps hides a piece of real robotics. A joystick has two axes but a robot has two wheels, so the stick must be mixed into wheel speeds. A continuous servo turns a pulse width into a speed, but not in a straight line, so the ESP32 must turn the servo's speed curve around. And the position comes from the kinematics of differential drive, integrated step by step, which is called dead reckoning. In this tutorial, we will go through the circuit, the joystick and its dead zone, arcade mixing, the FS90R's speed curve, the kinematics and the odometry. Then we drive the robot in the simulation: straight ahead, a U-turn, a spin on the spot, and finally with a load on one wheel, which shows why real robots need wheel encoders. At the end, you ...

SGP40 VOC Sensor Library for Proteus Simulation

SGP40 VOC Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the SGP40 module and an RGB LED air lamp

Hello friends, I hope you all are doing great. Today, I am going to share the new SGP40 VOC Sensor Library for Proteus Simulation. The SGP40 is a tiny metal-oxide gas sensor that smells the volatile organic compounds (VOCs) in the air - cooking fumes, cleaning sprays, paint, solvents - and reports them over I2C. With this library you can run a full Proteus simulation of it, with its real command set, so that the code you test here runs unchanged on the real sensor. The module is drawn at its real size and comes alive at run time: its LEDs work, and the hotplate inside the sensor glows through its lid while it heats. The demo is a kitchen air lamp - an RGB LED that turns green, yellow or red with the air while someone cooks, sprays a cleaner and turns the hood on. 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 air quality sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SGP40 VOC Sensor Library for Proteus Simulation: The SGP40 is a gas sensor in a package only 2.44 mm wide. Under its metal lid sits a hotplate - a tiny heater a few tenths of a millimetre across - covered with a layer of metal oxide (MOX). Hot metal oxide reacts with the volatile organic compounds that land on it, and its ...

433 MHz RFM69 Sensor Gateway on Raspberry Pi 5 - Proteus Simulation

433 MHz RFM69 Sensor Gateway on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5 gateway, the Arduino UNO field node, two RFM69HCW radios and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the 433 MHz RFM69 Sensor Gateway on Raspberry Pi 5 - Proteus Simulation, the seventy-second project of our IoT Projects series. If you have searched for an RFM69 Raspberry Pi gateway, how to read an RFM69HCW from Python, what RSSI and link margin mean, or a Proteus simulation of a 433 MHz sensor network, here is a complete one. A field node with a temperature sensor sends its readings over a small sub-GHz radio, and a Raspberry Pi 5 with the same radio is the gateway: it answers every packet, works out how healthy the link is and shows it on an OLED and a web dashboard. Radio links are where many IoT projects fail, and they fail quietly: a packet that never arrives looks just like a sensor with nothing to say. So this gateway does more than print the readings. It measures the signal strength of every packet, compares it with what the receiver needs, turns the loss of the path into a distance, counts lost and repeated packets, and works out what each message costs the node's battery while the node turns its own power down. In this tutorial, we will go through the circuit, the RFM69 packet format, ACKs and retries, the link budget, path loss and the log-distance model, automatic transmission control, air time, duty cycle and battery charge, and then the Python program and the node's sketch. Then we run the simulation with the radios 100 m, 1 km and 2 km apart. At the end, you can download the project with ...

SCD41 CO2 Sensor Library for Proteus Simulation

SCD41 CO2 Sensor Library for Proteus Simulation: an Arduino UNO V4.0, the SCD41 module, a traffic light of three LEDs and a buzzer

Hello friends, I hope you all are doing great. Today, I am going to share the new SCD41 CO2 Sensor Library for Proteus Simulation. The SCD41 is the tiny true-CO2 sensor that has made indoor air monitors cheap and small: it measures carbon dioxide, temperature and humidity and talks to your Arduino over I2C. With this library you can run a full Proteus simulation of it, with its real command set, so that the code you test here runs unchanged on the real sensor. The module is drawn at its real size and comes alive at run time: its LEDs blink with every I2C transfer and every measurement, and the white membrane over the sensor glows when its infrared lamp pulses. The demo is a classroom CO2 traffic light - green, yellow and red LEDs and a buzzer that tells you when to open the windows. 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 CO2 sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SCD41 CO2 Sensor Library for Proteus Simulation: The SCD41 is a CO2 sensor about the size of a fingernail: a green 10 x 10 mm carrier with a silver can on top and a white membrane in the middle of the can. It measures the real carbon dioxide in the air, in parts per million (ppm), and on the same chip the ...

Wind Site Survey Station with ESP32 - Proteus Simulation

Wind Site Survey Station with ESP32 - Proteus Simulation: the ESP32, the cup anemometer, the wind vane and the OLED

Hello friends, I hope you all are doing great. Today, I am going to share the Wind Site Survey Station with ESP32 - Proteus Simulation, the seventy-first project of our IoT Projects series. If you have searched for an ESP32 anemometer and wind vane project, how to measure turbulence intensity and wind power density, how to average wind directions correctly, or a Proteus simulation of a weather mast, here is a complete one. Before anyone puts up a wind turbine, the site is measured for months: how strong the wind is, how gusty, where it comes from, and how much energy it really carries. This ESP32 does that survey with a cup anemometer and a wind vane, and shows the numbers a turbine designer looks at. Two of those numbers hide classic traps. The energy in the wind grows with the cube of the speed, so the power of the average wind is not the average power of the wind: a gusty site carries more energy than its mean speed suggests. And wind directions cannot be averaged like ordinary numbers: the average of 350 and 10 degrees is north, not south. In this tutorial, we will go through the circuit, count the anemometer's pulses with an interrupt, decode the vane's sixteen resistances, work out the turbulence intensity, the gust factor, the power density and the energy pattern factor, average the direction with vectors, and estimate what a small turbine would make. Then we run the simulation in a steady wind, a gusty wind, a wind that wanders around north and a wind that shifts. At ...