Go to advanced search

by monochromaticmau
Mon Mar 30, 2020 1:26 am
Forum: Beginners
Topic: Buzzer and LED Light Independent Simultaneous Output
Replies: 1
Views: 147

Re: Buzzer and LED Light Independent Simultaneous Output

I used threading as a solution #!/usr/bin/env python import RPi.GPIO as GPIO import time import threading import socket import sys alarm_on = True # Flag to stop the thread state = b"ALARM OFF" def setup(): global BuzzerPin global LEDPin global MotionSensorPin BuzzerPin = 11 #BCM17 GPIO17 LEDPin = 1...
by monochromaticmau
Mon Mar 09, 2020 11:02 pm
Forum: Beginners
Topic: Buzzer and LED Light Independent Simultaneous Output
Replies: 1
Views: 147

Buzzer and LED Light Independent Simultaneous Output

Hello, I'm trying to have a buzzer sound and an LED light blink at the same time with independent duty cycles, and frequency. I tried to do this with two different pins, but it seems to glitch (buzzer crackling and LED visually crackling) #!/usr/bin/env python import RPi.GPIO as GPIO import time fro...
by monochromaticmau
Thu Apr 25, 2019 10:23 am
Forum: Python
Topic: Code for LED matrix with shift registers.
Replies: 8
Views: 2392

Re: Code for LED matrix with shift registers.

I'm going through the same thing right now. Can you share the altered code that made it work? Did you put resistors in your system? The instructions don't include it, but most content online have current limiting resistors, and I'm noticing some weird behavior when I try to Multiplex. Not what I wou...

Go to advanced search