Arduino LED Dimming Tutorial with Potentiometer | Control Brightness in Real Time | English Subtitle

  Рет қаралды 99

DoIt.20

DoIt.20

Күн бұрын

Пікірлер: 1
@doit.20
@doit.20 7 ай бұрын
const int potPin = A0; // Analog input pin for potentiometer const int ledPin = 9; // PWM enabled pin for LED void setup() { pinMode(potPin, INPUT); pinMode(ledPin, OUTPUT); } void loop() { int sensorValue = analogRead(potPin); // Read potentiometer value (0-1023) int brightness = map(sensorValue, 0, 1023, 0, 255); // Map potentiometer value to LED brightness (0-255) analogWrite(ledPin, brightness); // Set LED brightness using PWM }
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Рет қаралды 642 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 26 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 126 МЛН
8x8x8 LED CUBE WITH ARDUINO UNO
6:46
HARRY LE
Рет қаралды 15 МЛН
From Brains to Bot: Arduino's Next-Level Journey with AI.
7:26
DIY Builder
Рет қаралды 496 М.
DIY Simplified Arduino That Anyone Can Build
10:59
Nikodem Bartnik
Рет қаралды 108 М.
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
When u fight over the armrest
00:41
Adam W
Рет қаралды 26 МЛН