News

#define POTENTIOMETER 2 // Connect the potentiometer — or pot — on analog PIN 2. #define LED 13 // Tap into the built-in LED, which is connected on digital PIN 13. #define BAUD_RATE 9600 // Define the ...
Explanation This code will make two LEDs blink alternately. One LED is connected to pin 3, and the other is connected to pin 4. The code will turn one LED on while turning the other off, then switch ...
The loop function runs as long as the Arduino board is powered and will blink the LED ON and OFF withe 1 second pause between states. You can use another pin, for example pin 12 and then change the ...
This paper mainly focus on energy saving to reduce pollution using potentiometer method. There is a need to control the energy consumed by lamps in households and colleges in day time. A smart device ...