In article , RobH wrote:
>I have been trying to get a simple led project to work on my pi 3 using
>a 5 volt 6 amp power supply and a 510 ohm resistor in front of the led
>to reduce the current going to it. Now after trying different tutorials,
>my pi 3 goes off on it's own from being powered up.
>
>If I remove the power lead and restart the pi 3 the red comes on and the
>green led flashes as well as the ethernet port flashing green led.
>
>I ssh into the pi 3 to try and run a python program, but then the pi
>dies, and there are no lit up leds anywhere at all on it.
>
>Is there any way it can be fixed or should I just forget about it.
Remove all LEDs, buttons, etc.
Boot the Pi, login, run a few programs - just to make sure the Pi
itself is running OK.
Halt and power down.
Connect from GPIO pin 11 (physical pin 11) to the LED to a resistor then
to 0v.
Boot Pi & login:
Run this command in a terminal
gpio -1 mode 11 out
gpio -1 toggle 11
Run the last command a few times. LED ought to go on/off.
Your 510 ohm resistor ought to be fine - as a general guide
for most generic red/yellow/green LEDs you can use a value of
Voltage * 100 ohms, so for the 3.3v Pi, then 330 ohms is fine.
More pictures here which might help you get started:
https://projects.drogon.net/raspberry-pi/gpio-examples/blink/
Gordon
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|