Code: Select all
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(23, GPIO.OUT)
GPIO.output(23, GPIO.HIGH)I can see three reasons:
1) The picamera module does not like it when I set the mode to GPIO.BCM
2) Pin 23 messes with camera pins?!
3) The buzzer draws too much power and the camera stops working.
My testing would suggest that the camera only fails if the buzzer is actually plugged in, so option 3) seems to be the right one...
Oh, I also see that the buzzer is 5V, should it be a problem if I power it with the 3.3V pin?
Is there a simple solution? Plug in a resistor?