Input Devices Overview
This week focused on exploring input devices and their integration into microcontroller-based systems. The objective was to use multiple sensors as input sources for data collection and processing.
Group assigment
Probe an input device(s)'s analog levels and digital signals
Document your work on the group work page and reflect on your individual page what you learned
Link to group assignment: Link
Key Learnings from Sensor Signal Analysis Tool Selection Sensor Behavior Microcontroller Integration Practical reflection
For this individual assignment which is to Measure something: add a sensor to a microcontroller board that you have designed and read it.
I built the circuit board that was fabricated during Week 8. The board includes a Seeed XIAO RP2040 microcontroller and supports both analog and digital communication protocols.
Soil Moisture and Rain Sensor Monitoring
The objective is to use soil moisture sensor and raindrop sensor as analog input.
Communication Protocols Used:
Components Used
  1. Soil Moisture Sensor – Connected to analog pin A0.
  2. Rain Sensor – Connected to analog pin A1.
  3. Seeed XIAO RP2040 – Microcontroller managing the sensors and display.

Understanding the Sensor Readings
Soil Moisture Sensor:
Rain Sensor:
System Behavior and Output
  • Dry Condition

  • Moisture sensor value: Low (e.g, below 500).
    Rain sensor value: Low or zero.
    Serial displays "Soil: Dry"
  • Wet Condition

  • Moisture sensor value: High (e.g, above 500).
  • Rain Detected

  • Rain sensor value: High (analog value depending on intensity).
    Serial shows "Rain Detected!."
    Test results
    Rain


    Moisture

    Code file to test
    Soil moisture
    Raindrop sensor