Pages: [1]   Go Down
Author Topic: I need to change the 7 seg display by turning the Potentiometer  (Read 629 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need to change the 7 seg display by turning the Potentiometer. Anyone got any tips? Thanks smiley-kitty
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 220
Posts: 13846
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Logged

Rob Tillaart

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

Sydney, AUS
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

Pages: [1]   Go Up
Jump to: