Skip to content

Output Devices

What Are Output Devices

Output devices are components that allow a computer or microcontroller to communicate with the physical world. These devices take digital signals and convert them into something we can see, hear, or feel.

Output devices are electronic components that take signals from a microcontroller (like Arduino, ESP32, or XIAO RP2040) and do something in the real world — like light up, move, make sound, or display information.

They are how your project communicates with users or affects its environment.

Types of Output Devices

Category Examples Function
Light LEDs, RGB LEDs, 7-segment, OLED Show light, status indicators, or visuals
Sound Buzzer, Speaker Beep, alert, or play tones/music
Motion Servo motor, DC motor, Stepper motor Create movement (rotate, push, pull)
Switching Relay Control external devices (ON/OFF switching)
Display LCD, TFT, OLED screens Show numbers, text, or graphical information

Image

Group Assignment

Power Consumption Analysis

For our group assignment, we explored how to measure and understand power consumption in a circuit. You can find the full documentation of our process on Sharvari’s page.

My Learnings

  • Multimeter Mastery: I gained hands-on experience using a multimeter to measure both voltage and current. This included learning how to set the correct mode and connect the probes properly — series for current, parallel for voltage.

  • Live Power Behavior: It was fascinating to observe how power usage varied depending on how many segments were active on a 4-digit display. More segments = more current draw.

  • Tracking Fluctuations: I practiced using the Min/Max function on the multimeter, which helped track real-time changes during operation — super useful for spotting sudden drops or spikes.

  • Power Calculation: I applied the basic formula P = V × I using live data to calculate actual power usage of the system, which made the concept more tangible and meaningful.

  • Why It Matters: This task helped me see the importance of measuring power — not just for curiosity, but for choosing the right power supply, protecting components, and ensuring long-term stability in any electronics project.

Individual Assignment

I Explored-

Servo Motor!

A servo motor is like a tiny robot arm—it moves to specific angles when given the right commands. I wanted to see how it worked, so I installed the Servo library in Arduino IDE and wrote a simple code to make it wave!

Image

What I Did:

  1. Installed the Servo library in Arduino IDE.

  2. Asked ChatGPT for a simple servo-waving code.

  3. Uploaded the code and watched it move!

  4. Tweaked the values to see how they changed the motion.

The Circuit : How to Connect the Servo

  • Red Wire → 5V (Power)

  • Black/Brown Wire → GND (Ground)

  • Yellow/White Wire → Digital Pin (Signal, e.g., Pin 9)

CODE - ServoMotor Arduino Code

What I Learned

  • Changing the angle values in myServo.write() controls the servo’s movement.

  • The delay() function affects the speed of motion.

  • Small servo motors can be used in robots, arms, and automated systems!

4-Digit Display!

A 4-digit 7-segment display is like a mini scoreboard—it can show numbers, making it perfect for timers, counters, and calculations. I wanted to explore how it works, so I connected it to an Arduino and made it do some quick math!

Image Image

What I Did:

  1. Connected the display to the Arduino.

  2. Got a code (with ChatGPT’s help) to randomly pick two numbers, add them, and show the result.

  3. Uploaded the code and watched it display different sums!

  4. Tweaked the values to change the range—first single-digit sums, then two-digit, then three-digit!

The Circuit: How to Connect the Display

  • VCC → 5V (Power)

  • GND → Ground

  • CLK → Arduino Pin 10 (Clock)

  • DIO → Arduino Pin 9 (Data Input/Output)

CODE - 4-Digit Segment Arduino Code

What I Learned

  • The TM1637 library makes controlling the display easy.

  • Changing the random range changes the complexity of the math.

  • This display is great for timers, counters, and interactive projects!

Flex Sensor!

What if you could play music with your fingers? That’s the idea behind my Musical Glove—a wearable instrument using flex sensors and a buzzer!

Image Image

What I Did:

  1. Checked the flex sensor output by printing its values.

  2. Added a buzzer to generate sound based on finger movement.

  3. Tweaked the values to see how bending affected the sound.

  4. Faced a challenge: The volume was too low!

  5. Explored using a MOSFET for more power—but it didn’t work yet. I’ll keep trying!

How It Works: Wiring Diagram

  • Flex Sensor → Analog Pin (A0-A4) & GND

  • Buzzer → Digital Pin (e.g., D9) & GND

  • MOSFET (Trying for Power Boost) → Power Circuit

CODE - Flex Sensor Arduino Code

Image

What I Learned

  • Flex sensors can act as inputs for musical interactions.

  • Sound varies with bending, but a buzzer alone is too quiet.

  • MOSFETs could boost volume—still troubleshooting!

8x8 LED Matrix!

The 8x8 LED Matrix is a cool way to display text, patterns, and animations. I wanted to try it out by displaying "OUTPUT DEVICES" in a scrolling carousel style!

Image

What I Did:

  1. Tried an initial code, but it didn’t work.

  2. Figured out the issue—I was missing the right libraries!

  3. Downloaded these:

include MD_Parola.h

include MD_MAX72xx.h

include SPI.h

  • Once the code worked, I played around with the speed, direction, and effects.

How It Works: Wiring Diagram

(For MAX7219 LED Matrix):

  • VCC → 5V (Power)

  • GND → GND

  • DIN → Arduino Pin 11 (Data In)

  • CS → Arduino Pin 10 (Chip Select)

  • CLK → Arduino Pin 13 (Clock)

CODE - 8x8 LED Matrix Arduino Code

What I Learned

  • Libraries are key! Without them, the matrix won’t work properly.

  • MD_Parola & MD_MAX72xx make it easy to create scrolling text.

  • You can tweak the speed, direction, and brightness for cool effects!

NeoPixel Ring

The NeoPixel Ring is an awesome RGB LED ring that can create cool lighting effects. Mine has 8 LEDs, and I wanted to explore different lighting patterns!

Image

What I Did:

  1. Turned on a single red LED—just to check if it worked.

  2. Created random patterns—making different LEDs light up.

  3. Tried fade-in & fade-out effects for smooth transitions.

  4. Experimented with disco effects—turning my desk into a mini party!

How It Works: Wiring connections

  • VCC → 5V (Power)

  • GND → GND

  • DIN → Arduino Pin 6 (Data Input)

CODE - NeoPixel Ring Arduino Code

Image

What I Learned

  • NeoPixels can display any color using RGB values.

  • The fade effect works by adjusting brightness gradually.

  • Random patterns & effects make it look super cool!