Objective:
Learn how a potentiometer controls voltage and adjusts LED brightness through analog input.
Steps to Perform:
- Click "Start Simulation" to power up the Arduino circuit.
- Click on the potentiometer knob to activate it.
- Use the slider to simulate rotating the potentiometer (0-1023).
- Observe how the LED brightness changes based on potentiometer position.
- Higher values → Brighter LED glow.
- Lower values → Dimmer LED glow.
Key Concepts:
- Potentiometer: Variable resistor - adjusts voltage by rotating the knob
- Analog Read: Arduino reads voltage (0-1023) from the potentiometer wiper
- PWM: Pulse Width Modulation controls LED brightness (0-255)
- Mapping: Converts sensor range (0-1023) to LED range (0-255)