Smart Cities (2023) Soil moisture sensor
A series of tools for Schools to deliver the Smart Cities, Tiny House Course, which includes Teacher Training, Lesson Plans. This course was originally conceived by Dr Edmond Lascaris
Lesson 1: Soil moisture sensor
Lesson 2: Authors
2.1: Applications
2.2: How the Soil moisture sensor works
2.2.1: Components
2.2.2: Power supply voltage (Vcc)
2.2.3: Analog pins
2.2.4: States
2.2.5: Schematic
2.2.6: Excitation and and measuring (states applied)
2.2.6.1: Forward current flow
2.2.6.2: No current flow
2.2.6.3: Reverse current flow
2.2.7: Sensor resistance calculation
2.3: Interpreting Soil Moisture sensor values
2.4: Software installation requirements
2.5: Parts list
2.6: Circuit schematic
2.7: Photos of completed circuit board
2.8: Electronic circuit construction for LoPy4
2.8.1: Pycom LoPy4
2.8.2: Voltage divider circuit
2.8.3: Power supply
2.8.4: DHT22 temperature and humidity sensor
2.8.5: Pololu 5V Step-Up Voltage Regulator U1V11F5
2.8.6: DS18B20 external temperature sensor
2.8.7: UART connector
2.8.8: Underboard connector pins for LoPy4 board
2.9: Electronic circuit construction for Arduino MKR Zero
2.9.1: Arduino MKR Zero
2.9.2: Soil moisture sensor
2.9.3: Underboard connector pins for Arduino board
2.10: MicroPython code for Pycom LoPy4 microcontroller
2.10.1: boot.py
2.10.2: main.py
2.10.3: pymakr.conf
2.10.4: config.py
2.10.5: dth.py
2.10.6: lora.py
2.10.7: onewire.py
2.11: Arduino code for MKR Zero
2.11.1: MKR_soil_1.ino
2.11.2: chameleon.h
2.11.3: DS18B20.h
2.12: Trouble shooting
2.12.1: Indicative circuit voltages
2.13: Housing construction
2.14: Registering a Device on The Things Network
2.15: Video tutorials