last day (15 days later) » 

21:52
-4
Q: My Raspberry Pi isn't working and I don't know why

Crafter2I recently got a Raspberry Pi and it wasn't working. More specifically, when I connected all the wires and the LED it wouldn't light up. I thought my breadboard wasn't working so I got a new one, but it still wouldn't work. I thought it had something to do with the GPIO pins but then I realized t...

You connected all the wires in the wrong way. Oh, no I didn't, they're all wired correctly. OK, then show us the schematic. It is completely unclear what you've done so you will need to include a lot more details to get that clear and then maybe someone can have an educated guess. For example: "the LED it wouldn't light up" which LED?
"... the fan was still working ..." What fan?
I got the Raspberry Pi Cana Kit which included a small fan for the raspberry @Transistor
So is the Raspberry Pi not working, or just not the LED? To which pins you connected the LED and how are you programming it in software? Is that a blue LED or some other color (yes, the LED color really might make a difference, especially if it is blue).
I dont know what is wrong, it is a blue led though and also I cant program it yet cause it isnt working
21:52
@Crafter2 How do you know it is not working if you have not written a program to turn LED on yet? Besides since it is a blue LED, it may require more voltage to light up than the 3.3V provided by the GPIO pins, so the blue LED may never light up even if you wrote a program to turn it on.
@Justme I changed it to a green led but its still not working and I ran a program that would turn it on
@Crafter2 That is good, but we still don't know how you connected the LED or what the program does or if you have a broken wire or LED connected wrong way around. Help us out here, tell exactly what you did and why. Do you have a multimeter to make measurements? Do the GPIO connector pins which you used have any names or connector pin numbers? Which Raspberry Pi it is, 1, 2, 3, 4, as they might have different pins. Or the pin is incorrect or the program is controlling the wrong pin.
Please show us a photo of the setup (with the LED and wiring clearly visible), and the program listing.
@Justme I connected the circuit like the picture in the question, I dont have a multimeter the GPIO connecter pins i'm using is the GND pin at the corner and the GPIO4 pin its raspberry pi 4
@BruceAbbott I dont have a camera
please post the program you are running
21:52
@Crafter2 What do you mean by GND pin at the corner? Your drawing does not show any wire being connected to a pin at any corner? Are you absolutely sure your wiring matches the diagram you show to us? Is the LED oriented in correct way, cathode to GND, anode to GPIO4?
Not even in a cell phone or computer screen? Can you you borrow one? If we can't see what you have you have done we just have to take your word for it that you did everything right - and we can only assume that some component is faulty.
@jsotola here is the program from gpiozero import LED from signal import pause led = LED(4) led.blink() pause()
@Justme files.realpython.com/media/… the bottom left one is the GND pin
@BruceAbbott I would if I could but no one will let me take it after last time
I thought it had something to do with the GPIO pins but then I realized the fan was still working so the GPIO pins had nothing to do with it. ... you said that you are new to this, so don't be jumping to conlusions like that ... the fan is possibly not connected to the GPIO, but is connected to the power pins in the pin header ... not all of the pins in the pin header are GPIO

last day (15 days later) »