In some cases, the two lights will not work. The voltage will not be enough if you connect two diodes one after the other, no matter if it is with or without a resistor.
- #829
- 06 Apr 2018
TL;DR.
Connect diodes in parallel as shown in the picture below.
You have not enough voltage
If you connect diodes one after the other, none will light up. The 3.3V from GPIO 18 are not enough for two diodes even without a resistor.
Connect in parallel
There is another way to connect elements: both diodes share the same input.
- Connect a resistor to GPIO 18 via F-F cable;
- Connect a long end of a diode to the resistor via F-F cable;
- Connect the other end of the diode to GND on pin 14;
- Connect the long end of another diode to the resistor via M-F cable as seen ot the picture above;
- Connect the other end of the second diode to GND on pin 39;
- Start the Raspberry. After 30 seconds both diodes will ligth up.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Perfect STEM course. Module 1 - Smart Car with Raspberry PI
Disassemble a remote control car. Change the brain of the car with a smart computer like Raspberry Pi. Build a smart device with artificial intelligence that you could control from your phone and that could freely navigate itself in the real world and on the Internet. Use your hands. Develop programs for your robot and your phone. Be curious and invent.
The perfect course lives up to its name. You move through the content, we check it and return feedback to you.
In the end, you should be able to better understand how to program and design smart devices that would make the world a better place. For everybody age 12+, 16+, 21+, 35+, etc. The hardware costs about 150$. It changes through the years so it might take some time for you to find it as Raspberry PI, motor drivers, power banks and h-bridges.. they change. Note that the course was designed to be led by a teacher with a decent knowledge in embedded hardware and software. This, on the other hand should not stop you, if you are curious.
- 118
- 42:47
- 136

Connecting Car Lights to Raspberry Pi controller
We would start connecting a lot of things to the Raspberry Pi. It will be good if we could have some way of referring to the pins on the Raspberry Pi. For example like Pin 5 or Pin 26. Luckily there is such a way.
- 3
- 0
- 5
- 3d_rotation 0