Situ LLC Active Member Licensed User Longtime User Mar 12, 2022 #1 Good morning. Someone gives me a hand, I have 3 LEDs to make a traffic light with a Raspberry Pi 3. If someone has made a small application that can turn on each light when I need it. I have seen several examples but it does not show very well the wiring of the LEDs in the electronics of the PI. I would appreciate your advance help I have information that you can give me thanks .
Good morning. Someone gives me a hand, I have 3 LEDs to make a traffic light with a Raspberry Pi 3. If someone has made a small application that can turn on each light when I need it. I have seen several examples but it does not show very well the wiring of the LEDs in the electronics of the PI. I would appreciate your advance help I have information that you can give me thanks .
Mark Read Well-Known Member Licensed User Longtime User Mar 14, 2022 #2 It would appear that this is a breakout board which connects directly to the raspberry Pi. Have a look at this link. The connections are GPIO 9,10 and 11 directly on the GPIO header of the Pi. There is also a code example in Python would should be easy to convert to B4J. Have fun. Upvote 0
It would appear that this is a breakout board which connects directly to the raspberry Pi. Have a look at this link. The connections are GPIO 9,10 and 11 directly on the GPIO header of the Pi. There is also a code example in Python would should be easy to convert to B4J. Have fun.
E emexes Expert Licensed User Longtime User Mar 14, 2022 #3 Mark Read said: a code example in Python would should be easy to convert to B4J. Click to expand... or in B4J: B4J Tutorial [IoT] Traffic Light with Raspberry Pi except it uses different pins, but that might just be a case of changing: B4X: pinRed.Initialize(27, False) pinYellow.Initialize(28, False) pinGreen.Initialize(29, False) to use pins: Red = IO9 = pin 21 Yellow = IO10 = pin 19 Green = IO11 = pin 23 Upvote 0
Mark Read said: a code example in Python would should be easy to convert to B4J. Click to expand... or in B4J: B4J Tutorial [IoT] Traffic Light with Raspberry Pi except it uses different pins, but that might just be a case of changing: B4X: pinRed.Initialize(27, False) pinYellow.Initialize(28, False) pinGreen.Initialize(29, False) to use pins: Red = IO9 = pin 21 Yellow = IO10 = pin 19 Green = IO11 = pin 23
Situ LLC Active Member Licensed User Longtime User Mar 14, 2022 #4 Thanks bro for the advice of . Still looking Upvote 0