D
Daniel Pitts
Guest
Hello everyone,
Please forgive me if this isn't the correct group for this kind of question.
I've just started trying to get into digital electronics as a hobby. I'm
a long time software engineer, so I've got the logician skills (I hope).
I've been playing around with an Arduino board, and I'm trying to design
a LED matrix display just as a proof of concept. I've gotten a few
simple circuits to work, and now I'm moving on to something more
complicated.
I've bought an 74HCT138 IC, and tried hooking it up to switch between 5
different "rows" or LEDS. For my first experiment, I hooked up the pins
8(gnd) and 6(E3) to gnd on my Arduino board, and then pins 16(Vcc), 4
(E1 high), and 5 (E2 high) to the +5 of my Arduino. I then connected
pins 11,12,13,14,15 to some LEDs with resisters.
I tried hooking up pin 1,2,3 (A0-A2) to a few output pins on the
Arduino, and just wrote a basic counter to try to cycle through the
various values. My counter changes every 500ms, and the voltages on the
input-pins match my expectations. The problem is that it doesn't appear
to be decoding.
All of the LEDs are on, an none of them turn off ever. I realize of
course, that I have the LEDS hooks up the opposite to how I want them,
but even so I should see exactly one in the opposite state, and yet they
are all the same.
Thanks,
Daniel.
P.S. If there is a more appropriate newsgroup, please let me know.
Please forgive me if this isn't the correct group for this kind of question.
I've just started trying to get into digital electronics as a hobby. I'm
a long time software engineer, so I've got the logician skills (I hope).
I've been playing around with an Arduino board, and I'm trying to design
a LED matrix display just as a proof of concept. I've gotten a few
simple circuits to work, and now I'm moving on to something more
complicated.
I've bought an 74HCT138 IC, and tried hooking it up to switch between 5
different "rows" or LEDS. For my first experiment, I hooked up the pins
8(gnd) and 6(E3) to gnd on my Arduino board, and then pins 16(Vcc), 4
(E1 high), and 5 (E2 high) to the +5 of my Arduino. I then connected
pins 11,12,13,14,15 to some LEDs with resisters.
I tried hooking up pin 1,2,3 (A0-A2) to a few output pins on the
Arduino, and just wrote a basic counter to try to cycle through the
various values. My counter changes every 500ms, and the voltages on the
input-pins match my expectations. The problem is that it doesn't appear
to be decoding.
All of the LEDs are on, an none of them turn off ever. I realize of
course, that I have the LEDS hooks up the opposite to how I want them,
but even so I should see exactly one in the opposite state, and yet they
are all the same.
Thanks,
Daniel.
P.S. If there is a more appropriate newsgroup, please let me know.