Go Down

Topic: I need to change the 7 seg display by turning the Potentiometer (Read 653 times) previous topic - next topic

Sicker

I need to change the 7 seg display by turning the Potentiometer. Anyone got any tips? Thanks ^_^

robtillaart

check - http://www.arduino.cc/en/Tutorial/AnalogInput -  and  - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206916512 or http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1270490474


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Daneel

In case you want to make the display vary from 0-9, you can use the map() function to convert your potentiometer's output from 0-1023 to 0-9 like so:

map(potval, 0, 1023, 0, 9);

the actual driving of the 7 segments is up to you :)

Go Up