I hooked up a rotary dial from an old telephone to the Arduino, which displays the dialed digits on a row of 10 LEDs (0 being the leftmost LED).
The green light signifies "dialing mode" (dial of a single digit is in progress), and the yellow light is the actual input from the dial (each "click" is in fact a breaking of the circuit).
I could simply connect 10 outputs from the Arduino to the 10 LEDs, but I also wanted to play a bit with a Multiplexer. I used a CD74HC4051, which directs one input to either of 8 outputs (or vice versa) according to a 3-bit address. So, 8 of the LEDs are controlled via the multiplexer and the other two directly from the Arduino. When activating those two, the input signal to the multiplexer should be stopped, so that none of its LEDs are on (setting address 000 would just light up the first one).
While inactive, this aesthetically pleasing setup runs lights back and forth for showoff.
The green light signifies "dialing mode" (dial of a single digit is in progress), and the yellow light is the actual input from the dial (each "click" is in fact a breaking of the circuit).
I could simply connect 10 outputs from the Arduino to the 10 LEDs, but I also wanted to play a bit with a Multiplexer. I used a CD74HC4051, which directs one input to either of 8 outputs (or vice versa) according to a 3-bit address. So, 8 of the LEDs are controlled via the multiplexer and the other two directly from the Arduino. When activating those two, the input signal to the multiplexer should be stopped, so that none of its LEDs are on (setting address 000 would just light up the first one).
While inactive, this aesthetically pleasing setup runs lights back and forth for showoff.
Arduino Rotary Dial Reader mekanism minecraft | |
22 Likes | 22 Dislikes |
5,902 views views | 2.69K followers |
Science & Technology | Upload TimePublished on 20 Feb 2012 |
Không có nhận xét nào:
Đăng nhận xét