Engineering Blog

Learn it. Build it. Simulate it.

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

2732 articles found.

Membrane Keypad Library for Proteus V1.0: 4x4 and 4x3 with Arduino

Membrane Keypad Library for Proteus V1.0: a 4x4 membrane keypad with its STATUS panel and a ghost key

Hello friends, I hope you all are doing great. Today, I am going to share the new Membrane Keypad Library for Proteus V1.0. The thin, self-adhesive 4x4 and 4x3 membrane keypads are the cheapest way to give an Arduino project a real keypad: a door lock with a code, a menu, a calculator, a safe, a parcel box or a machine that asks for a number. Each comes with a flat ribbon and a female 2.54 mm connector - 8 pins for the 4x4, 7 for the 4x3 - and plugs straight into the Arduino's headers. Behind the parts sits our own model of a key matrix. You click the keys on the keypad while the simulation runs, and the model behaves like the real contacts under the membrane: a key joins its row line to its column line, and the sketch has to scan the matrix to find it. Because there are no diodes, three keys pressed at the corners of a rectangle make a fourth key read as pressed - the famous ghost key - and each contact bounces for a few milliseconds, so a sketch that scans too fast types one key twice. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that draws every line through the last scan, microsecond by microsecond. The demo runs on our Arduino UNO V4.0. NOTICE: a keypad is easy to fake: a part that sends the key you click straight to the sketch. We wanted more. Our keypad sends nothing - it only joins two wires while a key is down, exactly like the real membrane, so a sketch that forgets the pull-ups, swaps rows and columns, scans too fast ...

Capacitive Soil Moisture Sensor Library for Proteus V1.0 with Arduino

Capacitive Soil Moisture Sensor Library for Proteus V1.0: the sensor in a pot with its STATUS panel

Hello friends, I hope you all are doing great. Today, I am going to share the new Capacitive Soil Moisture Sensor Library for Proteus V1.0. The capacitive soil moisture sensor v1.2 is the long black board you push into the soil of a pot or a garden bed to know when your plants need water. It is the sensor behind automatic watering systems, smart plant pots, greenhouse monitors and garden data loggers. Unlike the older two-fork resistive sensors, its copper never touches the soil, so it does not corrode, and it is the soil sensor most Arduino makers buy today. Behind the part sits our own model, written from the published data. It gives the voltage a real board gives for the soil around it: the water in the soil sets its permittivity (the Topp equation from soil science), and the permittivity sets the output, highest in air and lowest in water. Every board is a little different, so you can give each one its own air and water values and practise the calibration. A probe pushed in only halfway, an air gap around the board, the probe pulled out, a glass of water and the board's 3.3 V regulator all behave as they do on a real board, and you can water the soil or let it dry while the simulation runs. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a soil moisture sensor is easy to fake: a potentiometer on an analog pin. We wanted more. Our sensor knows the soil it stands ...

Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino

Turbidity Sensor Library for Proteus V1.0: the turbidity sensor with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new Turbidity Sensor Library for Proteus V1.0. A turbidity sensor tells you how cloudy water is: how much fine mud, clay, algae or other particles float in it. It is the sensor behind many water quality projects - a filter that should give clear water, an aquarium, a fish pond, a rain water tank, a washing machine that checks its rinse water, or a river monitor after heavy rain. The usual module for Arduino is a white plastic probe with a U-shaped tip and a small blue adapter board with an A / D switch and a threshold potentiometer. Behind the part sits our own model, written from the maker's published data. It gives the voltage the real board gives for the water in the beaker - 4.2 V in clear water, lower as the water clouds, following the published curve from volts to NTU - and, with the switch on D, the digital level of the board's comparator. A probe can be a little off the curve, the output follows the supply, very muddy water goes beyond the curve, a dry probe reads as clear water, and air bubbles in the light path make single readings jump. You can change the water while the simulation runs. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a turbidity sensor is easy to fake: a potentiometer on an analog pin. We wanted more. Our turbidity sensor knows the water it stands in and gives ...

TDS Meter Library for Proteus V1.0: TDS Sensor with Arduino

TDS Meter Library for Proteus V1.0: the TDS sensor with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new TDS Meter Library for Proteus V1.0. A TDS sensor tells you how much salt and minerals your water carries: tap water, drinking water from a filter, an aquarium, a hydroponics tank or a pool. The usual board for Arduino is a small blue TDS meter with a two-pin waterproof probe. It sends a tiny AC current through the water, and the cleaner the water, the less current flows. The board turns that into a voltage on its A pin, and your Arduino turns the voltage into ppm. Behind the part sits our own model, written from the board maker's published data. It gives the voltage the real board gives for the water in the beaker, with the published conversion, the 2 % per degree that conductivity rises with the temperature, the top of the range at 2.3 V, a probe that reads a few percent high or low until you calibrate it, and a probe lifted out of the water. You can change the water while the simulation runs: tap water, distilled water, a 707 ppm calibration buffer, sea water, a pinch of salt, warm water. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a TDS sensor is easy to fake: a potentiometer on an analog pin. We wanted more. Our TDS meter knows the water it stands in and gives exactly the voltage the published conversion turns back into that water. Its output depends on the temperature the way ...

YF-S201 Water Flow Sensor Library for Proteus V1.0: Flow Meter

YF-S201 Water Flow Sensor Library for Proteus V1.0: the sensor with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new YF-S201 Water Flow Sensor Library for Proteus V1.0. The YF-S201 is the black plastic water flow sensor with a half-inch thread on both ends that shows up in so many Arduino projects: water meters for a tank or a garden, leak alarms, coffee machines, aquarium pumps and cooling loops. Water turns a small impeller inside it, and every turn gives a few pulses on its yellow wire - more water, faster pulses. Count them with an Arduino and you have a flow meter. Behind the part sits our own model, written from the YF-S201 datasheet. It gives the square wave the real sensor gives, 7.5 pulses a second for every litre per minute, with every edge at its exact time, so your interrupt code sees what it would see on a real pipe. You can open and close the tap while the simulation runs, pour exactly one litre for a calibration, add a leak, close a valve or connect a pulsing pump. The impeller stops at very low flows and slips a little just above them, like the real one. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a flow sensor is easy to fake: a pulse generator with a knob. We wanted more. Our YF-S201 counts the water that really passed, its impeller speeds up and slows down with a little inertia, it does not turn at all for a dripping tap, and every part can have its own pulses per litre - so ...

BME680 Gas Sensor Library for Proteus V1.0: VOC, Humidity, Pressure

BME680 Gas Sensor Library for Proteus V1.0: the GY-BME680 with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new BME680 Gas Sensor Library for Proteus V1.0. The BME680 from Bosch is a tiny environmental sensor that measures four things at once: the temperature, the humidity, the air pressure and the resistance of a small heated gas sensor - which falls when VOCs from paint, cleaning products, cooking or our own breath reach it. It talks I2C or SPI, and the purple GY-BME680 board is the one most makers buy. Behind the part sits our own model, written from the datasheet and checked against Bosch's BME68x driver inside the Adafruit BME680 library - the model gives the raw numbers the real chip would give, and the library's own maths turns them into C, %RH, hPa and ohm. You can change the air while the simulation runs: its temperature, humidity, pressure and VOCs, four presets and four actions. The heater, the burn-in, the oversampling, the IIR filter and both buses work like the real thing. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a gas sensor is easy to fake: a number that follows a slider. We wanted more. Our BME680 answers the same registers as the real one, on I2C and on SPI with its memory pages, measures in forced mode with the real timing, keeps its calibration in memory, and heats its gas sensor for exactly as long as the sketch asks - so a heater time that is too short, an IIR ...

CCS811 Air Quality Sensor Library for Proteus V1.0: eCO2 and TVOC

CCS811 Air Quality Sensor Library for Proteus V1.0: the Simple sensor with its STATUS panel and the pop-up of the Advance one

Hello friends, I hope you all are doing great. Today, I am going to share the new CCS811 Air Quality Sensor Library for Proteus V1.0. The CCS811 is the tiny digital gas sensor on the popular CJMCU-811 board that many indoor air quality projects use. It reports two numbers over I2C: TVOC, the total volatile organic compounds in the air, and eCO2, an "equivalent CO2" that it estimates from them. Behind the part sits our own model, written from the datasheet and checked against the Adafruit CCS811 library, the one most makers use with this sensor - so the library's own calls get exactly the answers they expect. The sensor starts in boot mode and needs APP_START, measures in one of five drive modes, pulls nINT LOW when a result is ready, ignores the bus while nWAKE is HIGH, needs its run-in, and reads wrong in humid air unless you tell it the humidity. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: an air quality sensor is easy to fake: a number that follows a slider. We wanted more. Our CCS811 answers the same I2C mailboxes as the real one, bit by bit, starts in boot mode, says nothing while WAK is HIGH, and raises eCO2 for paint and hand sanitizer just like the real one does - so a sketch that forgets WAK, reads before the run-in is over or trusts eCO2 as a CO2 meter fails exactly as it does with a real sensor. It took our team a lot of hard work. Your feedback is ...

PMS5003 Particle Sensor Library for Proteus V1.0: PM2.5 and PM10

PMS5003 Particle Sensor Library for Proteus V1.0: the Simple sensor with its STATUS panel and the pop-up of the Advance one

Hello friends, I hope you all are doing great. Today, I am going to share the new PMS5003 Particle Sensor Library for Proteus V1.0. The PMS5003 from Plantower is the small metal box with a fan that sits inside many air purifiers, air-quality monitors and home weather stations. It counts the dust and smoke particles in the air with a laser and reports PM1.0, PM2.5 and PM10 to an Arduino over a UART. Behind the part sits our own model, written from Plantower's manual and checked against the PMS Library for Arduino, the one most makers use with this sensor - so the library gets exactly the frames it expects. The sensor sends a 32-byte frame every 2.3 seconds, comes faster when the air changes, answers the passive mode and sleep commands, obeys its SET and RESET pins, and needs 30 seconds after a wake-up before its fan delivers stable data. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a particle sensor is easy to fake: a number that follows a slider. We wanted more. Our PMS5003 sends the same 32-byte frames as the real one, bit by bit with the checksum, switches between stable and fast mode, reads low while its fan spins up, and reads high in fog - so a sketch that trusts the first readings after a wake-up, waits for a frame in passive mode or reads the wrong value fails exactly as it does with a real sensor. It took our team a lot of hard work. Your feedback is the ...

MH-Z19B CO2 Sensor Library for Proteus V1.0: NDIR, UART and PWM

MH-Z19B CO2 Sensor Library for Proteus V1.0: the Simple sensor with its STATUS panel and the pop-up of the Advance one

Hello friends, I hope you all are doing great. Today, I am going to share the new MH-Z19B CO2 Sensor Library for Proteus V1.0. The MH-Z19B is the small gold-plated NDIR (infrared) carbon dioxide sensor that sits in many indoor air-quality monitors, ventilation controllers and school CO2 traffic lights. It measures real CO2, not just "bad air", and it talks to an Arduino over a UART and a PWM pin. Behind the part sits our own model, written from Winsen's user's manual and checked against the MH-Z19 Arduino library, the one most makers use with this sensor - so the library's own commands get the answers they expect. The sensor preheats, follows a change of the air with its response time, holds its zero point at 400 ppm, corrects itself with ABC, and can be calibrated right or wrong, just like the real one. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a CO2 sensor is easy to fake: a number that follows a slider. We wanted more. Our MH-Z19B answers the same 9-byte commands as the real one, bit by bit, gives the same PWM cycle, needs its preheat, lags behind the air and can be calibrated in the wrong air - so a sketch that reads too early, uses the wrong range or calibrates in a stuffy room fails exactly as it does with a real sensor. It took our team a lot of hard work. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments ...

MQ Gas Sensor Library for Proteus V1.0: MQ-3, MQ-7, MQ-135 and More

MQ Gas Sensor Library for Proteus V1.0: an MQ-135 with its STATUS panel and the pop-up of an MQ-7

Hello friends, I hope you all are doing great. Today, I am going to share the new MQ Gas Sensor Library for Proteus V1.0, with eight of the popular MQ sensors in one package: the MQ-3 (alcohol), MQ-4 (methane), MQ-5 and MQ-6 (LPG), MQ-7 (carbon monoxide), MQ-8 (hydrogen), MQ-9 (CO and flammable gases) and MQ-135 (air quality). They sit on the same small blue module with an analog output and a digital alarm, and now you can test your gas alarm, breathalyser or air-quality meter in Proteus before you solder anything. Behind the parts sits our own model, built on the curves of MQUnifiedsensor, the Arduino library most makers use with these sensors - so a sketch with that library reads back the gas you set. The heater warms up, the gas reaches the sensor with a delay, the trimmer sets the alarm, and every sensor reacts to more than its own gas, just like the real ones. You get sixteen devices: for each sensor a Simple device with a live STATUS panel and an Advance device with a pop-up window and the test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a gas sensor is easy to fake: a slider that moves a voltage. We wanted more. Our MQ sensors follow the same curves as the library you will use, warm up like the real ones, and get fooled by the wrong gas - so a sketch that never calibrates, calibrates too early or trusts the wrong curve fails exactly as it does with a real module. It took our team a lot of hard work. Your feedback is the fuel that keeps us going, so please ...