55. LED Blink Rate Control

Design a task using Arduino Uno with the following requirements

  • An LED should blink continuously.
  • The blinking delay should be adjustable between 100ms and 5000ms using a potentiometer.
  • The delay should update instantly as the potentiometer is rotated.

 

Also, consider the following condition

  • An important task is continuously running in a void loop()
  • It needs to be executed continuously, and cannot be altered or changed.

 Your void loop() should be as given below.

void loop() {
    while (true){
        //In this loop Microcontroller is busy in monitoring and performing important tasks constantly.
  }
}

 

Video


 

Submit Your Solution