Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

[FEATURE]: LED-Buzzer support #254

Closed
h4ns123 opened this issue Jun 6, 2021 · 5 comments · Fixed by PhotoboothProject/photobooth#185
Closed

[FEATURE]: LED-Buzzer support #254

h4ns123 opened this issue Jun 6, 2021 · 5 comments · Fixed by PhotoboothProject/photobooth#185
Assignees
Labels
enhancement New feature or request low stale

Comments

@h4ns123
Copy link

h4ns123 commented Jun 6, 2021

Is it possible to provide one or more GPIO for LED in hardware buzzer? It would be pretty cool if the LED goes off during the countdown or flashes increasingly faster and faster.

@h4ns123 h4ns123 added the enhancement New feature or request label Jun 6, 2021
@h4ns123
Copy link
Author

h4ns123 commented Jul 6, 2021

As further explanation:

I use one of those big Buttons (100 mm) with a built in LED for my photobooth. At the moment I just put the LED on the 3v3 pin so that it is permanently on. The idea was to use a GPIO instead, which is set to HIGH normally and only changes to LOW during the countdown. So you would have a visual feedback when the trigger is working again.

@andi34
Copy link
Owner

andi34 commented Aug 16, 2021

Hey and sorry for the late response.
You've tried to use the Pre- and Post-command for that?
( #232 )
You could for example run a python script with that option. Only make sure permissions are set right.

@serpentes80
Copy link

serpentes80 commented Sep 1, 2021

i wrote 2 python scrips

import RPi.GPIO as GPIO      # Funktionen fuer die GPIO-Ansteuerung laden
import time                  # fuer sleep() (Pause) noetig

GPIO.setmode(GPIO.BCM)       # die GPIO-Pins im BCM-Modus ansprechen
led=18                       # unsere LED haengt an BCM-Pin 14

GPIO.setup(led, GPIO.OUT)    # in den LED-Pin wird "geschrieben"
GPIO.output(led, GPIO.HIGH)  # LED-Pin auf High (+3.3V) setzen = einschalten

this for switching the led on

and

import RPi.GPIO as GPIO      # Funktionen fuer die GPIO-Ansteuerung laden
import time                  # fuer sleep() (Pause) noetig

GPIO.setmode(GPIO.BCM)       # die GPIO-Pins im BCM-Modus ansprechen
led=18                       # unsere LED haengt an BCM-Pin 14

GPIO.setup(led, GPIO.OUT)    # in den LED-Pin wird "geschrieben"
GPIO.output(led, GPIO.LOW)  # LED-Pin auf High (+3.3V) setzen = einschalten

for switching the LED off

then I'm running python /home/pi/led_pin_18_ein.py as post-
and python /home/pi/led_pin_18_aus.py as post photo command

works so far :)

@andi34 andi34 added the low label Sep 15, 2021
@andi34 andi34 changed the title LED-Buzzer support [FEATURE]: LED-Buzzer support Oct 25, 2021
@stale
Copy link

stale bot commented Dec 25, 2021

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale stale bot added the stale label Dec 25, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this as completed Jan 9, 2022
DIY89 pushed a commit to DIY89/photobooth that referenced this issue Jan 20, 2022
…arn/bl-3.0.1

build(deps): bump bl from 3.0.0 to 3.0.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request low stale
Projects
None yet
4 participants