Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase frequency of beeps to improve loudness #12

Open
kevinjwalters opened this issue Apr 10, 2021 · 2 comments
Open

Increase frequency of beeps to improve loudness #12

kevinjwalters opened this issue Apr 10, 2021 · 2 comments

Comments

@kevinjwalters
Copy link

kevinjwalters commented Apr 10, 2021

There's an observation in Pimoroni Forums: Grow kit feedback

The piezo alarm is, in my opinion, very quiet. I will definitely not notice it chirping about dry soil from the other side of our busy kitchen.

I don't have an unboxed grow board to test this with but I suspect you are using a small piezo buzzer which performs at higher frequencyes (2-3 kHz) in terms of loudness but the code currently shows a liberal sprinkling of 440Hz. That's a useful referernce (A4) but may not be a good choice for producing a beep that's audible at a distance even with its square wave harmonics.

def __init__(self, image, enabled=True, interval=10.0, beep_frequency=440):

And

self.pwm = GPIO.PWM(gpio_pin, 440)

def beep(self, frequency=440, timeout=0.1, blocking=True, force=False):

Those two could also be a single variable rather than two independent values.

I don't know if there's already use of different perodic beeping to indicate different emergency conditions but frequency could also be a part of this using the frequency to effectively increase volume, i.e. as it gets drier beep at 550, 1100, 2200Hz.

@tomgidden
Copy link

For what it's worth, I tried changing the frequencies a LOT, but it didn't make much difference. I too thought it would just be a matter of finding the right frequency for the particular sounder.

Saying that, my 9yo kid could hear the (default) beeping from across the room.

@kevinjwalters
Copy link
Author

kevinjwalters commented Oct 7, 2021

My recollection is you can barely here C3 (263.74) on a transistor amped 5mm speaker but C6 and C7 are strangely loud at least in a relative sense. The Adafruit CLUE has this setup on the reverse-side of the board.

The CUI CMT-0503-75-SMT-TR might be comparable, the frequency response from datasheet is shown below:

CUI-CMT-0503-75-SMT-TR-datasheet-frequencyresponse

These devices often have a resonant frequency where it gets very loud. I'm not sure if it's healthy for the device to deliberately use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants