Category: Raspberry Pi

136 articles found.

Soil NPK Fertilizer Advisor on Raspberry Pi 5 - Proteus Simulation

Soil NPK Fertilizer Advisor on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the MAX485, the soil NPK probe and the TFT with the advice

Hello friends, I hope you all are doing great. Today, I am going to share the Soil NPK Fertilizer Advisor on Raspberry Pi 5 - Proteus Simulation, the eighty-sixth project of our IoT Projects series. If you have searched for a soil NPK sensor with a Raspberry Pi, how to read an RS485 Modbus sensor in Python, a MAX485 with a Raspberry Pi, or how much fertilizer a garden bed needs, here is a complete one in a Proteus simulation. Plants take three main nutrients from the soil: nitrogen (N) for leaves, phosphorus (P) for roots and flowers, and potassium (K) for fruit and strong stems. Too little and the crop is weak; too much wastes money and washes into rivers. A soil test tells what is there, but a gardener needs the next step: what to spread, and how much. This Raspberry Pi 5 reads a three-needle RS485 soil NPK probe over Modbus RTU through a MAX485 module, waits for a steady reading, compares the nitrogen, phosphorus and potassium with the ranges the chosen crop needs, and works out the grams of DAP, urea and potash for a 10 square metre bed. It also notices when heavy rain has washed the nitrogen out. A colour TFT shows N, P and K as bars against the crop's range, and a dashboard on the laptop or phone lets you switch between tomato, lettuce, maize and potato. In this tutorial, we will go through the circuit, RS485 and Modbus RTU, the CRC, the direction control of the MAX485, how mg/kg become grams of fertilizer, and why nitrogen leaches while phosphorus stays. Then we put ...

SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation

SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the SCD41 and SGP40 sensors, the TFT and the traffic light on red

Hello friends, I hope you all are doing great. Today, I am going to share the SCD41 Classroom Air Monitor on Raspberry Pi 5 - Proteus Simulation, the eighty-fourth project of our IoT Projects series. If you have searched for an SCD41 CO2 sensor with a Raspberry Pi, how much CO2 is too much in a classroom, what rebreathed air means, or an SGP40 VOC sensor in a Proteus simulation, here is a complete one. Thirty people in a closed room breathe out about two litres of carbon dioxide a minute between them. CO2 itself is harmless at these levels, but it is a perfect tracer: every bit of extra CO2 came out of someone's lungs, together with everything else that comes out with a breath. So the CO2 level tells something more useful than "the air is stale": it tells what share of each breath you take has already been breathed by someone else in the room. This Raspberry Pi 5 reads an SCD41 CO2 sensor and an SGP40 VOC sensor and turns the numbers into what a teacher can act on: the rebreathed fraction, the fresh air each person is getting, how fast the room clears when the windows open, and whether something like a cleaning spray is in the air. A traffic light of three LEDs says it at a glance, a TFT shows the numbers and a chart, and a dashboard serves them to a laptop or a phone. In this tutorial, we will go through the circuit, CO2 as a tracer of breath, the rebreathed fraction and the ventilation rate, how the SCD41 and SGP40 work, Sensirion's I2C commands and CRC, and the program. ...

Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation

Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the F50 micro hydro generator, the dump resistors on IRLZ44N MOSFETs and the lamps

Hello friends, I hope you all are doing great. Today, I am going to share the Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation, the eighty-second project of our IoT Projects series. If you have searched for an electronic load controller for micro hydro, how a dump load keeps a turbine's voltage steady, load shedding, or a Raspberry Pi with an ADS1115 in a Proteus simulation, here is a complete one. A small hydro plant in a village or on a farm has no governor to open and close the water gate. When the lamps go off, the turbine loses its load, speeds up and its voltage climbs high enough to burn whatever is still connected; when too much is switched on, it slows down and the lights go dim. The answer used on thousands of small plants is the electronic load controller (ELC). It keeps the turbine's total load constant: whatever power the consumers are not using goes into a dump load, usually a water or air heater. This Raspberry Pi 5 is the ELC of an F50 micro hydro generator on a 12 V bus. It measures the bus with an ADS1115, switches a bank of five dump resistors in binary steps of 0.5 W to hold the bus at 12 V, switches two 12 V lamps, and sheds the less important lamp when there is not enough water for both. In this tutorial, we will go through the circuit, how a turbine behaves under load, the ELC idea, binary-weighted dump loads, measuring with an ADS1115 and a shunt, a control loop that stays stable, feed-forward and load shedding. Then we change the ...

AS7341 Grow Light Meter on Raspberry Pi 5 - Proteus Simulation

AS7341 Grow Light Meter on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the AS7341 sensor and the TFT with the spectrum of a grow light

Hello friends, I hope you all are doing great. Today, I am going to share the AS7341 Grow Light Meter on Raspberry Pi 5 - Proteus Simulation, the eightieth project of our IoT Projects series. If you have searched for an AS7341 spectral sensor with a Raspberry Pi, how to measure a grow light, what PPFD and DLI mean, or a light spectrum analyser in a Proteus simulation, here is a complete one. A lux meter measures light the way a human eye sees it, most sensitive to green. A plant sees light very differently: it counts photons between 400 and 700 nm, and it cares about their colour. Blue keeps a seedling compact and leafy, red drives flowering. This Raspberry Pi 5 turns an AS7341, a sensor with eight colour channels across the visible spectrum plus clear and near-infrared, into a grow-light meter. It reads the whole spectrum with automatic gain, works out the blue, green and red shares and the red-to-blue ratio, estimates PPFD (the photons a plant can use) and the daily light integral, recognises the type of light, and draws the spectrum as coloured bars on a 1.8" TFT. In this tutorial, we will go through the circuit, light for plants, PPFD and DLI, how a multi-channel spectral sensor works with its SMUX, auto-gain, and identifying a light from its spectrum. Then we measure six lights in the simulation. At the end, you can download the project with the program and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every ...

PZEM-004T Prepaid Energy Meter on Raspberry Pi 5 - Proteus Simulation

PZEM-004T Prepaid Energy Meter on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the PZEM-004T on the mains, the relay, the AC fan, the keypad and the LCD

Hello friends, I hope you all are doing great. Today, I am going to share the PZEM-004T Prepaid Energy Meter on Raspberry Pi 5 - Proteus Simulation, the seventy-eighth project of our IoT Projects series. If you have searched for a PZEM-004T with a Raspberry Pi, reading an energy meter over Modbus RTU in Python, how a prepaid electricity meter works, or a smart meter project in a Proteus simulation, here is a complete one. Millions of homes pay for electricity before they use it: they buy a token, type its number on the meter, and the meter keeps the power on until the credit runs out. No meter reader, no bill, no debt. This Raspberry Pi 5 turns a PZEM-004T energy meter into exactly that. It reads the voltage, current, power and power factor of a small house on 230 V mains over Modbus, counts the credit down by the energy really used, beeps when it runs low and opens a relay at zero. Typing a token on a touch keypad brings the power back, and the Pi refuses a mistyped token and a token used twice. In this tutorial, we will go through the circuit, measuring AC power and power factor, the Modbus RTU protocol with its CRC, turning power into energy, and token check digits. Then we run the whole story in the simulation. At the end, you can download the project with the program and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the simulation are our own work, and you get them all free. Your feedback is the ...

AMG8833 Thermal Stove Guard on Raspberry Pi 5 - Proteus Simulation

AMG8833 Thermal Stove Guard on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the AMG8833 camera, the TFT with the thermal picture, the relay and the valve

Hello friends, I hope you all are doing great. Today, I am going to share the AMG8833 Thermal Stove Guard on Raspberry Pi 5 - Proteus Simulation, the seventy-sixth project of our IoT Projects series. If you have searched for an AMG8833 thermal camera with a Raspberry Pi, a Python thermal imaging project, an unattended cooking alarm or an automatic stove shut-off, here is a complete one in a Proteus simulation. Unattended cooking is the leading cause of kitchen fires: a pan is left on the hob, someone answers the door or the phone, and the oil keeps heating. A smoke alarm only speaks once there is smoke. A stove guard acts earlier: it knows the pan is hot and that nobody is with it. This Raspberry Pi 5 watches the stove with an AMG8833, an 8 x 8 thermal camera. From 64 temperatures four times a second it tells a hot pan from a person, starts a countdown when the pan is left alone, beeps, and then closes the stove's supply valve. It also notices a hand or a cloth over the lens. In this tutorial, we will go through the circuit, how a thermopile camera sees, why a person at a distance looks cooler than skin, the median and the room temperature, finding a person as a group of warm pixels, the state machine with its countdown and its latch, the fail-safe valve, and the thermal picture on a 1.8" TFT and on a web dashboard. Then we run the whole story in the simulation. At the end, you can download the project with the program and every library file. NOTICE: Our team has put a lot of ...

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

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

Thermoelectric Generator Logger on Raspberry Pi 5 - Proteus Simulation

Thermoelectric Generator Logger on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the TEG module, the INA219, the relay module and the two power resistors

Hello friends, I hope you all are doing great. Today, I am going to share the Thermoelectric Generator Logger on Raspberry Pi 5 - Proteus Simulation, the seventieth project of our IoT Projects series. If you have searched for a thermoelectric generator (TEG) project, the internal resistance of a Peltier module, maximum power transfer with a Raspberry Pi, or a Proteus simulation of a TEG with its load, here is a complete one. A TEG module on a stove or a heat pipe gives electricity from a temperature difference, but how much it can give depends on the heat, on the cooling and on the load. This Raspberry Pi 5 measures all of it: every 5 seconds it switches a small bank of resistors, fits a straight line through the readings, and finds the module's open-circuit voltage, its internal resistance and the most power any load could take. Electrically a TEG behaves like a battery with a large internal resistance, and both its voltage and its resistance change with the heat. That makes it a perfect subject for one of the most useful ideas in electronics, the Thevenin model, and for the maximum power transfer theorem that follows from it. In this tutorial, we will go through the circuit, see why a TEG makes a voltage, measure its Thevenin model with four loads and a least-squares line, work out the best load, read the temperature difference from the voltage alone, and see how a TEG's cooling decides its output. Then we run the simulation at 100 and 150 C, switch the fan off and on ...

Pulse Sensor HRV Monitor on Raspberry Pi 5 - Proteus Simulation

Pulse Sensor HRV Monitor on Raspberry Pi 5 - Proteus Simulation: the Raspberry Pi 5, the pulse sensor, the ADS1115, the OLED and the BEAT LED

Hello friends, I hope you all are doing great. Today, I am going to share the Pulse Sensor HRV Monitor on Raspberry Pi 5 - Proteus Simulation, the sixty-eighth project of our IoT Projects series. If you have searched for a Raspberry Pi heart rate variability project, a pulse sensor with an ADS1115, how RMSSD and SDNN are calculated, or a Proteus simulation of a heart monitor, here is a complete one. A fitness band shows a heart rate; this monitor goes one step further and looks at the time between every two beats. From those intervals it measures the variability of the heart rhythm, works out the breathing rate without a breathing sensor, finds premature beats, ignores the beats a moving finger fakes, and measures how fast the heart rate recovers after exercise. The heart does not beat like a metronome, and the small changes from one beat to the next carry real information: they grow and shrink with each breath, they fade when the heart works hard, and an irregular pattern can point to an arrhythmia. Measuring them needs timing about ten times finer than the readings themselves. In this tutorial, we will go through the circuit, see what a pulse sensor measures, read it with an ADS1115 every 10 ms, find the one moment of each pulse that the noise moves least, sort the intervals into normal beats, premature beats and motion, calculate RMSSD and SDNN with worked examples, read the breathing from the heart, fit the recovery after exercise, and walk through the Python program. ...