Today, I will share how to add and simulate a soil moisture sensor with Arduino in Proteus 8 software. Most soil moisture sensors use two probes to measure the soil water value and are available in analog or digital outputs. There got two versions of the soil moisture sensor:
- Soil Moisture V1 - 1 sensor only.
- Soil Moisture V2 - 3 sensors are available in different colors and shapes.
References:
Components:
- Soil moisture sensor
- Inductor
- Capacitor
- Potentiometer
- DC voltmeter
Steps (Add Library)
- Download the soil moisture sensor library file at TheEngineeringProjects.com or click the link HERE. The download link will appear after 20 seconds.
- Open the zip file and go to the folder Proteus Library Files. You will find three files on the downloaded zip file named:-SoilMoistureSensor2TEP.IDX-SoilMoistureSensor2TEP.LIB
-SoilMoistureSensor2TEP.HEX - Extract these three files to the Proteus libraries folder (C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA\LIBRARY).
Steps (Soil Moisture Sensor 1):
- Open your Proteus software and add SOIL MOISTURE, CAPACITOR, INDUCTOR, and POT-HG components to the workspace.
- Wiring components:-Connect the Test pin of the sensor to the POT-HG wiper pin and end to the POWER and GROUND.-Connect GND and VCC of sensor pins to the GROUND and POWER.-Connect the A0 pin of the sensor to the INDUCTOR through CAPACITOR and end to the GROUND.-Connect the DC VOLTMETER across CAPACITOR
- Double click the soil moisture sensor and click the folder icon at the Program File box. Go to Local Disk (C:) > Program Files (x86) > Labcenter Electronics > Proteus 8 Professional > DATA > LIBRARY > SoilMoistureSensor2TEP.HEX > Open > OK.
- Start the simulation. The DC voltage of the sensor will change if the value of the potentiometer change.
Steps (Soil Moisture Sensor 2):
- Add SOIL MOISTURE 2, CAPACITOR, INDUCTOR, and POT-HG components to the workspace. The difference between SOIL MOISTURE and SOIL MOISTURE 2 is color.
- Wiring components:-Connect the Test pin of the sensor to the POT-HG wiper pin and end to the POWER and GROUND.-Connect GND and VCC of sensor pins to the GROUND and POWER.-Connect the A0 pin of the sensor to the INDUCTOR through CAPACITOR and end to the GROUND.-Connect the DC VOLTMETER across CAPACITOR.
- Double click the soil moisture sensor and click the folder icon at the Program File box. Go to Local Disk (C:) > Program Files (x86) > Labcenter Electronics > Proteus 8 Professional > DATA > LIBRARY > SoilMoistureSensor2TEP.HEX > Open > OK.
- Start the simulation. The DC voltage of the sensor will change if the value of the potentiometer change.
Steps (Soil Moisture Sensor 3):
- Add SOIL MOISTURE 3, CAPACITOR, INDUCTOR, and POT-HG components to the workspace. The different SOIL MOISTURE 3 compared to SOIL MOISTURE 1 and 2 are shaped.
- Wiring components:-Connect the Test pin of the sensor to the POT-HG wiper pin and end to the POWER and GROUND.-Connect GND and VCC of sensor pins to the GROUND and POWER.-Connect the A0 pin of the sensor to the INDUCTOR through CAPACITOR and end to the GROUND.-Connect the DC VOLTMETER across CAPACITOR.
- Double click the soil moisture sensor and click the folder icon at the Program File box. Go to Local Disk (C:) > Program Files (x86) > Labcenter Electronics > Proteus 8 Professional > DATA > LIBRARY > SoilMoistureSensor2TEP.HEX > Open > OK.
- Start the simulation. The DC voltage of the sensor will change if the value of the potentiometer change.
Video:
If you have any suggestions, please write in the comment section. Thank you for your time 👷.
No comments:
Post a Comment