Engineering Blog

Learn it. Build it. Simulate it.

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

2727 articles found.

TCS34725 Sensor Library for Proteus V1.1 (RGB Colour Sensor + Arduino)

TCS34725 Sensor Library for Proteus V1.1: two Arduino UNOs with blue TCS34725 breakouts, the TCS34725 Advance pop-up Sensor page at purple #8000FF reading R 2510 G 0 B 5000 C 7510 and the TEP Serial Monitor in its Simple interface

Hello friends, I hope you all are doing great. Today, I am going to share the new TCS34725 Sensor Library for Proteus V1.1. The TCS34725 from ams (TAOS) is a small RGB colour sensor: it measures the red, green, blue and clear light that comes back from an object, and it is best known on the blue breakout board with the bright white LED. With this TCS34725 Sensor Library for Proteus, you pick the object's colour with presets, sliders or a click on a colour palette, and your Arduino reads it over I2C with the same Adafruit TCS34725 library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: TCS34725 Simple, with a control panel on the schematic, and TCS34725 Advance, with a pop-up window and four measured sensor test tools. The board's white LED now has its own switch, and the new TCS34725 Arduino Proteus demo runs on two Arduino UNOs with a red-detector LED and commands for the gain and the integration time, shown in the compact Simple interface of our TEP Serial Monitor. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our TCS34725 model has the chip's register map with its command byte, the integration time with its saturation, the four gains, the wait timer and the clear-channel interrupt with the INT pin, and it speaks I2C to the unmodified Adafruit library. It took our team a lot of hard work, many test runs and many design changes. Your feedback is the fuel ...

SHT31 Sensor Library for Proteus V1.1 (Temperature + Humidity Sensor + Arduino)

SHT31 Sensor Library for Proteus V1.1: two Arduino UNOs with purple GY-SHT31-D boards, the SHT31 Advance pop-up Sensor page at FRIDGE with 4.0 C, 85.0 % and a dew point of 1.7 C, and the TEP Serial Monitor in its Simple interface

Hello friends, I hope you all are doing great. Today, I am going to share the new SHT31 Sensor Library for Proteus V1.1. The SHT31 from Sensirion is a small digital temperature and humidity sensor, best known on the purple GY-SHT31-D board. With this SHT31 Sensor Library for Proteus, you set the temperature and the humidity with presets, sliders or a click on the thermometer or the water drop, and your Arduino reads them over I2C with the same Adafruit SHT31 library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: SHT31 Simple, with a control panel on the schematic, and SHT31 Advance, with a pop-up window and four measured sensor test tools. The model adds the ALERT pin, a heater that really warms the sensor and the real response time. The new SHT31 Arduino Proteus demo runs on two Arduino UNOs with the dew point and a humidity alarm LED, shown in the compact Simple interface of our TEP Serial Monitor. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our SHT31 model has the sensor's command protocol with its real measurement times, the CRC on every word, the status word, the heater and the alert mode with the ALERT pin, and it speaks I2C to the unmodified Adafruit library. It took our team a lot of hard work, many test runs and many design changes. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the ...

VL53L0X Sensor Library for Proteus V1.1 (GY-530 + Arduino)

VL53L0X Sensor Library for Proteus V1.1: two Arduino UNOs with purple GY-VL53L0XV2 boards, the VL53L0X Advance pop-up Sensor page with a white target at 860 mm and the TEP Serial Monitor in its Simple interface

Hello friends, I hope you all are doing great. Today, I am going to share the new VL53L0X Sensor Library for Proteus V1.1. The VL53L0X from ST is a tiny laser time-of-flight distance sensor, best known on the purple GY-530 / GY-VL53L0XV2 board. With this VL53L0X Sensor Library for Proteus, you set the distance and the kind of target with presets, a slider or a click on the distance scale, and your Arduino reads it over I2C with the same Pololu VL53L0X library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: VL53L0X Simple, with a control panel on the schematic, and VL53L0X Advance, with a pop-up window and four measured sensor test tools. The model takes the real ranging time from ST's formula, and white, grey and black targets each have their own range. The new VL53L0X Arduino Proteus demo runs on two Arduino UNOs with a proximity alarm LED, shown in the compact Simple interface of our TEP Serial Monitor. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our VL53L0X model runs the whole ST start-up sequence with the SPAD and reference calibrations, takes its ranging time from ST's timing-budget formula, knows how far a white, grey or black target can be seen, and speaks I2C to the unmodified Pololu library. It took our team a lot of hard work, many test runs and many design changes. Your feedback is the fuel that keeps us going, so please tell us what you think ...

BMP280 Sensor Library for Proteus V1.1 (GY-BMP280 + Arduino)

BMP280 Sensor Library for Proteus V1.1: two Arduino UNOs with purple GY-BMP280 boards, the BMP280 Advance pop-up on its Sensor page at AIRLINER (756.29 hPa, 2400.1 m) and the TEP Serial Monitor U4 printing Low pressure: below 1000 hPa (LED on)

Hello friends, I hope you all are doing great. Today, I am going to share the new BMP280 Sensor Library for Proteus V1.1. The BMP280 is Bosch's small digital barometer: it measures the air pressure and the temperature, and from the pressure your Arduino can work out the altitude. With this BMP280 Sensor Library for Proteus, you set the pressure and the temperature with sliders, presets or a click on an altitude bar, and your Arduino reads them over I2C with the same Adafruit BMP280 library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: BMP280 Simple, with a control panel on the schematic, and BMP280 Advance, with a pop-up window and four measured sensor test tools. The new BMP280 Arduino Proteus demo runs on two Arduino UNOs with a low-pressure LED, shown in the compact Simple interface of our TEP Serial Monitor. It also teaches a real-hardware lesson: the BMP280 ignores filter and standby settings written in NORMAL mode. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our BMP280 model holds the chip's registers and calibration words, takes the data sheet's measurement time, runs the IIR filter and the standby time, and speaks I2C to the unmodified Adafruit library. It took our team a lot of hard work, many test runs and many design changes. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the BMP280 ...

From Sensor Event to Human Alert: Designing a Reliable ESP32 Notification Pipeline

From Sensor Event to Human Alert, Designing a Reliable ESP32 Notification Pipeline

An ESP32 can read a sensor and send a message in a few lines of code. That is enough for a bench demo, but it is not enough for a reliable alerting system. The difference appears when the project runs unattended. Sensors bounce, readings hover around thresholds, Wi-Fi drops, and a fault can generate hundreds of repeated events. If every raw event becomes a notification, the engineer quickly learns to ignore the channel. A better design treats messaging as the last stage of an event pipeline: detect the condition, decide whether it matters, then notify a person. Detection answers a machine question: did something change? Notification answers a human question: does someone need to know about it now? Those questions should not be handled by the same line of code. A useful pipeline is: Sensor → ESP32 → Event Filter → State Machine → Backend or API → Messaging Bot → Engineer This separation gives each layer one job. The sensor provides measurements, the ESP32 creates events, filtering removes noise, and the state machine tracks operating state. A backend can store telemetry, enforce rate limits, and retry failed requests. The messaging service only handles the final human alert. Figure 1. ESP32 notification pipeline separating sensing, filtering, state management, backend reliability, and human-facing alerts. Consider a temperature sensor that reports once per second: 27.1°C, 27.3°C, 27.5°C, 27.4°C. Those readings are useful telemetry, but they are poor notifications. Continuous ...

MAX30102 Sensor Library for Proteus V1.1 (Pulse Oximeter + Arduino)

MAX30102 Sensor Library for Proteus V1.1: two Arduino UNOs with purple GY-MAX30102 boards, the MAX30102 Advance pop-up Sensor page at REST 60 with 60 BPM, 98 % SpO2 and the PPG pulse wave, and the TEP Serial Monitor printing the pulse estimates

Hello friends, I hope you all are doing great. Today, I am going to share the new MAX30102 Sensor Library for Proteus V1.1. The MAX30102 from Maxim (now Analog Devices) is a small pulse oximeter and heart-rate sensor, best known on the purple GY-MAX30102 breakout. With this MAX30102 Sensor Library for Proteus, you set the pulse rate, the SpO2 and the finger with presets and sliders, and your Arduino reads the red and infrared samples over I2C with the same SparkFun MAX3010x library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: MAX30102 Simple, with a control panel on the schematic, and MAX30102 Advance, with a pop-up window and four measured sensor test tools. The light is now a realistic pulse wave, and the new MAX30102 Arduino Proteus demo runs on two Arduino UNOs with a heartbeat LED and new commands, shown in the compact Simple interface of our TEP Serial Monitor. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our MAX30102 model has the chip's register map with its modes, the LED currents, the sample rate and averaging, the 32-sample FIFO with its pointers and overflow counter, the interrupts and the die temperature sensor, and it speaks I2C to the unmodified SparkFun library. It took our team a lot of hard work, many test runs and many design changes, above all for the pulse wave. Your feedback is the fuel that keeps us going, so please tell us what ...

MPU6050 Sensor Library for Proteus V1.1 (GY-521 + Arduino)

MPU6050 Sensor Library for Proteus V1.1: two Arduino UNOs with blue GY-521 boards, the MPU6050 Advance pop-up Sensor page at TILT 30 with pitch 29.9 degrees and the TEP Serial Monitor in its Simple interface

Hello friends, I hope you all are doing great. Today, I am going to share the new MPU6050 Sensor Library for Proteus V1.1. The MPU6050 is the popular 6-axis motion sensor: a 3-axis accelerometer, a 3-axis gyroscope and a temperature sensor in one small chip, best known on the blue GY-521 board. With this MPU6050 Sensor Library for Proteus, you tilt, turn and shake the sensor with presets, sliders or a click on its artificial horizon, and your Arduino reads it over I2C with the same Adafruit MPU6050 library you use on real hardware. Version 1.1 replaces the first version of this post. You now get two devices: MPU6050 Simple, with a control panel on the schematic, and MPU6050 Advance, with a pop-up window and four measured sensor test tools. The model now has the digital low-pass filter with its real delay, motion detection with the INT pin, and the data-ready and FIFO interrupts. The new MPU6050 Arduino Proteus demo runs on two Arduino UNOs with a tilt alarm LED, shown in the compact Simple interface of our TEP Serial Monitor. Have you read version 1.0? Then jump to "What's New" below. NOTICE: This library is very special to our team. Our MPU6050 model has the chip's register map, the four ranges, the digital low-pass filter with its delay, the FIFO, the motion detector and the INT pin, and it speaks I2C to the unmodified Adafruit library. It took our team a lot of hard work, many test runs and many design changes. Your feedback is the fuel that keeps us going, so please tell ...

Designing Custom Aluminum Electronics Enclosures: DFM, Thermal, and EMI Guide

Designing Custom Aluminum Electronics Enclosures, DFM, Thermal, and EMI Guide

Enclosures in modern high-performance embedded systems, industrial IoT devices, and RF hardware are not mere decorative dust covers. The components are becoming increasingly dense with a lot of high-power processing, GaN/SiC power stages, and high-frequency transceivers in a very small area. This type of physical compactness gives rise to severe thermal issues and risk of electromagnetic interference (EMI) that may lower the quality of signals or make the device perform in a throttled way. A bespoke enclosure made out of aluminum can be a multi-functional part of the system providing protection for electronics while allowing dissipation of heat by convection and also acting as an EMI-enclosing Faraday cage in a typical electronics packaging environment. Metal stamped sheet and die casting offer an attractive way to manufacture gadgets for the masses whereas solid-billet CNC-machined aluminum is the go-to route for making tough industrial hardware, aerospace components, and high-precision functional prototypes. CNC machining offers equal mechanical strength in all directions, excellent heat dissipation, and geometric accuracy of just a micrometer level without needing tooling molds which are cost intensive and have long lead times. Making a functional and affordable enclosure basically needs an understanding and good implementation of three engineering aspects: direct thermal management, efficient EMI attenuation, and a clever Design for Manufacturability (DFM). The selection ...

Why 'It Looks Right' Isn't Good Enough for Precision Optics: The Case for Third-Party Metrology Verification

The Case for Third-Party Metrology Verification

A lens can pass every visual inspection checkpoint and still fail in the field. That gap between "looks acceptable" and "performs as required" is where precision optics projects run into trouble, and it is a problem that optical metrology was specifically designed to address. Visual checks are fast and practical, but they are bounded by what the eye and basic tooling can confirm. Surface cleanliness, obvious chips, and gross dimensional errors are all fair game. What they cannot reliably catch are sub-tolerance deviations in curvature, refractive index variation, or edge detection anomalies that only emerge under controlled measurement conditions. Perspective distortion alone can make a non-conforming surface appear within spec during a manual review. Source Supplier quality control reports present a related challenge. A manufacturer's documentation may accurately reflect their own process controls, yet still fall short of the accuracy and precision levels a buyer's application demands. Dimensional measurement data generated for one tolerance band does not automatically transfer to a tighter use case downstream. When tolerances are tight and the cost of downstream failure is high, the gap between reported compliance and verified performance becomes consequential. Buyers navigating this gap typically rely on one of three paths: internal spot checks, supplier certificates, or independent metrology services. The third path exists precisely to close that gap, providing ...

How Edge Computing Changes the Design of Microcontroller-Based IoT Systems

How Edge Computing Changes the Design of Microcontroller-Based IoT Systems

Microcontroller-based IoT systems are commonly designed around a simple process. Sensors gather data, transmit it to a microcontroller, which then uploads it to the cloud for processing or storage. Edge computing reverses the situation and enables more local processing. This affects hardware selection, firmware development, data handling, security,and operation in the absence of a network connection. Source Consider an ESP32 connected to vibration and temperature sensors on an industrial motor. A basic design could send every measurement to a cloud platform. An edge-oriented design can instead analyze some readings locally. The microcontroller could calculate temperature averages, identify unusual vibration patterns, or detect readings that exceed predefined limits. It could then send an alert or summary rather than continuously transmitting raw sensor data. This can minimize network traffic and help the system respond faster. However, local processing also means the microcontroller needs sufficient resources. Engineers should consider performance, RAM, flash storage, power requirements, and communication capabilities during hardware selection. When processing moves closer to the device, firmware also becomes more important. The microcontroller may need to filter sensor data, detect events, manage local storage, and make decisions based on predefined conditions. This increases the need to manage memory and processing resources carefully. Developers must consider sensor ...