Fab Lab ECAE

Input Devices

probe an input device's analog levels and digital signals

Using and Oscilloscope we will test the following:
PIR motion sensor
PPM Receiver

Group Assignment:

Oscilloscope:

The oscilloscope is an instrument commonly used analyze the signal waveform of input devices , The device plots the instantaneous signal voltage as a function of time on a graph so it is really useful for debugging because it visualized the signal that is coming from the input device.The horizontal sweep of any oscilloscope is measured in seconds per division (s/div),and The vertical deflection is measured in Volt per division(V/div).

PIR motion sensor:

For the group assignment we decided to measure the PIR motion sensor signal using the oscilloscope to visualize the signal and to have a better understanding how this sensor works:



"Using the Arduino to interpret the signal from the transmitter!"
                #include 

    /*
     * A Demo reworked from Abdullah's Fab Fly code
     * http://fab.academany.org/2019/labs/uae/students/abdulla-alhamad/final_project/finalproject.html
     * Fab Academy 2021
     * Written by Carl P-Conquilla
     *
     */

    #define CH1 A0
    #define MOTOR1 11

    Servo M1;

    int channelReading;

    void setup() {
      Serial.begin(9600);
      Serial.println("Device starting...");
      M1.attach(MOTOR1); // Check out this link if your ESC isn't responding https://www.arduino.cc/en/Reference/ServoAttach
    }

    void loop() {
      channelReading = pulseIn(CH1, HIGH);

      Serial.print("Pulse length:");
      Serial.print(channelReading);
      Serial.print("\t:");
      Serial.print("Servo angle:");

      channelReading = map(channelReading, 1000, 2000, 0, 180);
      M1.write(channelReading);

      Serial.print(channelReading);
      Serial.println();
    }