Input devices


Home

 Objective of this Week

  • Probe an input device(s)'s analog levels and digital signals


Oscilloscope

An oscilloscope is an electronic test instrument that displays and analyzes the waveform of electronic signals. It shows how signals change over time on a screen, with the horizontal axis (X) representing time and the vertical axis (Y) representing voltage.

  • By using the Oscilloscope we can measure signal’s amplitude, frequency, and noise.

  • We can diagnose circuit issues like voltage drops, signal distortion and timing errors.

  • To View analog or digital waveforms in real-time Oscilloscope is really useful.

In our lab we have Mixed Signal Oscilloscope Tektronix - MSO-22

Specification

ParameterDetails
Analog Bandwidth70 MHz (upgradeable to 100/200/350/500 MHz via license)
Analog Channels2
Digital Channels16 (optional, with logic probe)
Max Sample Rate2.5 GSa/s (1 channel), 1.25 GSa/s (2 channels)
Record Length10 million points per channel
Vertical Resolution8-bit (standard), up to 16-bit (high-res mode)
Waveform Capture Rate> 4,000,000 wfms/s
Display10.1” capacitive touchscreen (1280 × 800 resolution)
Trigger TypesEdge, pulse width, runt, timeout, logic, setup/hold, rise/fall, parallel bus
Math FunctionsAdd, subtract, multiply, divide, FFT, custom equations
Protocol Decoding (Optional)I²C, SPI, UART, CAN, LIN, SENT, 10Base-T1S
Optional FeaturesAFG (50 MHz), Digital Pattern Generator (4-bit), DVM
ConnectivityUSB 2.0 (host & device), Ethernet (LAN), VNC remote control
Power SupplyExternal AC adapter, Optional battery (up to 8 hrs use)
Included AccessoriesTPP0200 probes (1 per analog channel), power adapter, manuals
Approximate Price~$2,130 USD

Types of Oscilloscopes

TypePurpose
Analog OscilloscopeUses CRT; older but good for visualizing simple analog waveforms
Digital Storage Oscilloscope (DSO)Converts signals to digital for storage and advanced analysis
Mixed Signal Oscilloscope (MSO)Combines analog and digital signal analysis
Handheld OscilloscopePortable and battery-powered for field work
PC-Based OscilloscopeUses computer display and processing for signal analysis


Components for Assignment

  • XIAO ESP32S3 board

  • Potentiometer

  • Push Button

  • Resistor


Potentiometer

A potentiometer is just a variable resistor used to adjust voltage levels or control electrical devices

Image source

Image Source

Push Button

A push button is a momentary switch that makes or breaks an electrical connection when we are pressed.

Image source


Connection Diagram


Programming

int analogValue;
int buttonState;

void setup() {
  delay(1000); // Give USB time to initialize
  Serial.begin(9600);
  pinMode(A0, INPUT);
  pinMode(D1, INPUT);
  Serial.println("Ready");
}

void loop() {
  analogValue = analogRead(A0);  // Potentiometer
  buttonState = digitalRead(D1); // Pushbutton (0 or 1)
  
  Serial.print("Potentiometer: ");
  Serial.println(analogValue);
  Serial.print("Button: ");
  Serial.println(buttonState);

  delay(500);
}


Testing with Oscilloscope

At first check with the Serial monitor

Then connecting it with Oscilloscope and see the signal function


Conclusion

Learning outcomes

  • By using the Oscilloscope we check the pushbutton and potentiometer as input

  • We monitor it first by serial monitor then check with oscilloscope

  • We detect the input signal and check that function