# Overview of Group Assigment
1. Probe an input device(s)'s analog and digital signals
## Foreword
Our team had referenced
1. [FabAcademy SP 2020 Group assignment](http://fabacademy.org/2020/labs/singapore/group.assignments/assignment07.html)
## Group assignment:
To learn about how input devices work, we decided to take a low-level approach.
### Analog Signals
We used a potentiometer as our input device, and measured the output signals directly. No code is requried for this set up, and as we rotate the potentiometer's knob, we can directly see the values being changed at the data line via an oscilloscope.
Image above shows how we have hooked the Potentiometer up with a power supply set at 5V output.
Image above shows us measuring the value at the dataline using a multimeter, which we expect to be anywhere between 0-5V.
Image above shows our wiring diagram to an oscilloscope, power supply at 5V output and signal line connected to the oscilloscope.
Video above shows us viewing the measurements via an oscilloscope. The
positive side of the probe is connected to the data line and the negative side
of the probe is connected to the ground of the potentiometer.
### Digital Signals
We used a push button as our input device, and measured the output signals directly. Similar to Analog Signals, no code is required for this setup, as we push the button, we are expecting a step from voltage low to voltage high. Having 2 discrete outputs makes the push button a digital input device.
We first looked up how a push button works internally, credits to [arduinogetstarted.com](https://arduinogetstarted.com/tutorials/arduino-button)
Based on the circuit diagram above, we physically hooked the wires on a breadboard.
Then, we measured the output voltage as per the circuit diagram. If we were to hook the button up to a microcontroller, we would hook the orange wire to a physical pin, and check the voltage levels. If the voltage level is close to 5V then it is logic high; if it is close to 0V then it is logic low.