0

Is this possible? My question yesterday led me to this circuit using an NPN transistor for the buzzer: https://elinux.org/RPi_GPIO_Interface_Circuits#Output_circuits

It's actually more like this: http://www.sunrom.com/media/content/598/drv.jpg with the diode. and using a 3.3 V power supply (since that what my buzzer takes)

My question is, how do I modify my circuit to light up my green led simultaneously with my buzzer? I tried just moving the input wire to the LED's gpio pin instead of the dedicated buzzer pin and the light stopped working when the buzzer sounded.

Thanks for all the help sofar guys

  • What does "I tried just moving the input wire to the LED's gpio pin instead of the dedicated buzzer pin" mean? We can't read your mind, you need to describe what you are doing. – Milliways Oct 5 '17 at 1:30
  • It means I'm an idiot that knows nothing about circuitry. I added the led property in serial it worked. Aka now I have: GPIO -> LED -> 100R -> NPN base -> 1k R -> ground. The light is a bit dimmer, but I can live with that – user2912108 Oct 5 '17 at 1:43
  • My real question I suppose is, is the above a "safe" thing to do electonically? – user2912108 Oct 5 '17 at 1:47
0

Connect the LED, in series with its current limiting resistor from 5V or 3.3V to the transistor Collector,

Vcc -> LED -> 100R -> C

This assumes you have your circuit wired as in Output Circuits

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.