I want to be able to control a number loop on a seven segment display with a potentiometer and be able to also control the brightness of an LED with a one second delay.
I want to be able to control a number loop on a seven segment display with a potentiometer
What does that mean? "a number loop"? Control it how?
and be able to also control the brightness of an LED with a one second delay.
I can not imagine how any length delay() is going to affect the brightness of an LED.
he means when he turns the potentiometer it will make a 7 segment display go from 0 through 9. but at the same time it will control the brightness of an LED. if anyone has the code and how the circuit looks like please help. thx.
Guessing Hammerboi and arshadkhan are in the same class
SOP here afaics is that you post your code first, and ask for help on specifics.
But I'd start with the SevSeg library.
No clue what you mean with the delay thing though: fade a second after you move the pot? or go back to full bright a second later?
For determining which number should be displayed for a particular position of the potentiometer, look at the functions analogRead() and map().
The brightness of the LED can be controlled using pulse width modulation. For say 25% brightness, the led could be on for 1 mS and off for 3ms in a cycle.
You might want to read example sketchs given in the site below for a 7 display multifunctional shield. There is an example for modifying brightness of an led with a pot, and a number display (0 to 9) with the help of a pot, so mix the two codes and you are done: