Can't get LEDs to work properly
Posted: Sat Jan 05, 2019 1:41 pm
We just opened up our new Raspberry Pi kit and are attempting to do Project #1, Light Up Piano. As a test, we have the following hooked up on the breadboard:
Red Jumper cable from J5 to J20, Red LED F20 & E20, resistor from A20 to ground line
Green Jumper cable from J6 to J22, Green LED F22 & E22, resistor from A22 to ground line
Blue Jumper cable from J7 to J24, Blue LED F24 & E24, resistor from A24 to ground line
Black jumper cable from ground line to A17
Our program checks gpio20 (up arrow) and gpio22 (down arrow) for input.
On our first test,
The gpio20 sound works, but the red light does not light up.
The gpio22 sound works, and the green light works properly.
The gpio24 sounds works, but the blue light is ALWAYS on.
On our second test, we moved one end of the red jumper cable from J5 to J6, and one end of the green jumper cable from J6 to J5. With this change, the RED light lights up properly, but the GREEN light does not light up. It seems that what is plugged into J5 does not work, and what is plugged into J6 does work as expected.
Similarly, we unplugged the blue jumper cable from J7 and put either the red or green jumper cable in there. Whatever cable was inserted into J7, the LED was on constantly.
Based on the instructions, it doesn’t seem this is working the way it is supposed to? I can't tell if we are doing something wrong or there is something wrong with the unit.
Any help would be greatly appreciated.
Red Jumper cable from J5 to J20, Red LED F20 & E20, resistor from A20 to ground line
Green Jumper cable from J6 to J22, Green LED F22 & E22, resistor from A22 to ground line
Blue Jumper cable from J7 to J24, Blue LED F24 & E24, resistor from A24 to ground line
Black jumper cable from ground line to A17
Our program checks gpio20 (up arrow) and gpio22 (down arrow) for input.
On our first test,
The gpio20 sound works, but the red light does not light up.
The gpio22 sound works, and the green light works properly.
The gpio24 sounds works, but the blue light is ALWAYS on.
On our second test, we moved one end of the red jumper cable from J5 to J6, and one end of the green jumper cable from J6 to J5. With this change, the RED light lights up properly, but the GREEN light does not light up. It seems that what is plugged into J5 does not work, and what is plugged into J6 does work as expected.
Similarly, we unplugged the blue jumper cable from J7 and put either the red or green jumper cable in there. Whatever cable was inserted into J7, the LED was on constantly.
Based on the instructions, it doesn’t seem this is working the way it is supposed to? I can't tell if we are doing something wrong or there is something wrong with the unit.
Any help would be greatly appreciated.