Week 9: Input Devices

This week describes my understanding of how to use Input Devices. It also includes how to generate an analog output (PWM) using pin 9, how to use an oscilloscope and multimeter for analysis, and how to integrate different sensors with the microcontroller.

Objectives for the week

  • 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
  • Interpret a Signal

    We generate an analog output (PWM) using pin 9. A LED is connected to see the signal effect, and the oscilloscope and multimeter are used for analysis.

    Description of Image


    1. Understanding DSO Components

    2. Connecting the Oscilloscope to Arduino

    A. Connect the Probe Correctly

    3. Configuring the Oscilloscope for Basic Signal Viewing

    A. Set the Channel
    B. Adjust the Voltage Scale (Vertical Setting)
    C. Adjust the Time Scale (Horizontal Setting)
    D. Set the Trigger for a Stable Display

    4. Running the Oscilloscope & Viewing the Waveform

    5. Capturing & Analyzing the Waveform

    
                    void setup() {
                    pinMode(9, OUTPUT);
                    }
                    void loop() {
                        for (int u = 0; u < 255; u++){
                        analogWrite(9, u);
                        delay(50);
                        }
                    }
                

    Video Demonstration



    Using a Multimeter to Measure Input Signals

    In addition to observing signals using the oscilloscope, a digital multimeter was used to verify both digital and analog voltage levels generated by the input devices. Measuring the signal directly helps confirm that the sensor is producing the expected output before it is processed by the microcontroller.

    Multimeter Measurement

    Measuring Digital Signals

    The multimeter was set to DC Voltage mode. The black probe was connected to the GND pin and the red probe was connected to the signal output pin of the input device.

    These measurements confirmed that the input device was generating valid digital signals that could be detected by the microcontroller.

    Measuring Analog Signals

    For analog measurements, the multimeter remained in DC Voltage mode while the probes were connected between the analog output pin and GND. The voltage level changed continuously depending on the sensor condition.

    The measured values matched the behavior observed in the serial monitor and oscilloscope, confirming that the input device was functioning correctly.

    Learning Outcome

    Through this activity, I learned how to use a digital multimeter to measure both analog and digital signals generated by input devices. I also learned how voltage levels correspond to logical HIGH and LOW states and how analog voltages can be verified before interfacing them with a microcontroller.