Go Down

Topic: I need to change the 7 seg display by turning the Potentiometer (Read 701 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy