Wednesday, June 29, 2022

How to Add and Simulate Soil Moisture Sensor in Proteus 8 | Electrical Resistance

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:

  1. Soil Moisture V1 - 1 sensor only.
  2. Soil Moisture V2 - 3 sensors are available in different colors and shapes.


References:

Components:

  1. Soil moisture sensor
  2. Inductor
  3. Capacitor
  4. Potentiometer
  5. DC voltmeter

Steps (Add Library)
  1. Download the soil moisture sensor library file at TheEngineeringProjects.com or click the link HERE. The download link will appear after 20 seconds.

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


  3. 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):
  1. Open your Proteus software and add SOIL MOISTURE, CAPACITOR, INDUCTOR, and POT-HG components to the workspace.


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


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


  4. Start the simulation. The DC voltage of the sensor will change if the value of the potentiometer change.



Steps (Soil Moisture Sensor 2):
  1. Add SOIL MOISTURE 2, CAPACITOR, INDUCTOR, and POT-HG components to the workspace. The difference between SOIL MOISTURE and SOIL MOISTURE 2 is color. 

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


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


  4. Start the simulation. The DC voltage of the sensor will change if the value of the potentiometer change.


Steps (Soil Moisture Sensor 3):
  1. 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.
     

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


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


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