Group assignment: Input Devices

Hero Shot

Group assignment:

  • 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
  • Input Devices week, we learned:

    Introduction:- Using an oscilloscope and an XIAO ESP32-C3 microcontroller, digital and analog signals are investigated and analyzed. An LED is used to monitor digital signals in the experiment, and an LDR (light-dependent resistor) sensor is used to produce analog signals. These signals are shown by the oscilloscope to aid with comprehension.

    LED Daigram

    Hardware Components
  • XIAO ESP32-C3 Board
  • LDR (Light Dependent Resistor)
  • Oscilloscope (2-channel recommended)
  • Connecting Wires
  • Circuit Connections
    Code for programming
    Code for Digital Signal Code For Analog signal
    Single of the sensor in oscilloscopeg
    Digital Signal With oscilloscope Analog signal With oscilloscope
    Observations on Oscilloscope
    1. Digital Signal (LED Blinking):
    LED ON: High Signal (3.3V)
    LED OFF: Low Signal (0V)
    The oscilloscope Output: A square wave, as the LED toggles ON/OFF dependent on LDR input.
    2. Analog Signal (Ch1's LDR Sensor):
    Condition of Bright Light: High voltage (about 3.3V)
    Low voltage (around 0V) in the dark
    The oscilloscope Output: An analog waveform with a smooth variation in signal strength.
    Comparison: Analog vs Digital Signal
    Conclusion

    The oscilloscope's CH1 successfully displayed the LDR's analog signal, which fluctuates continually depending on light intensity.and the LED's digital signal was seen as a square wave that alternated between HIGH (3.3V) and LOW (0V).

    By evaluating the circuit and software implementation, the oscilloscope assisted in confirming the behavior of the real-time signals.