AllYarnsAreBeautiful / ayab-hardware

Contains the schematics and layouts for the AYAB Arduino shield
Creative Commons Attribution Share Alike 4.0 International
33 stars 13 forks source link

beeper circuit #10

Closed t0mpr1c3 closed 4 months ago

t0mpr1c3 commented 3 years ago

The specified beeper has a coil resistance of 47 Ohms and draws 40 mA (max) through the collector of a MMBT3904 transistor and is connected to the 5 V rail through a 62 Ohm resistor.

Ignoring for the moment the Vce of the transistor and the coil inductance, that means the voltage drop across the resistor should be about 3 V and the voltage drop across the beeper is about 2 V. That's lower than its supported range of input voltages (3-7). For what it's worth, I have tried both the specified part and some cheap alternatives and they have all worked.

I haven't played around with any alternative circuits but I believe the typical application would include a flyback diode to protect the transistor. Again, I haven't noticed any problems so far.

Any thoughts?

oskay commented 3 years ago

The most important thing is to match the beeping frequency to the device resonant frequency, to get enough loudness. Different people have different opinions about how loud a beeper should be.

t0mpr1c3 commented 3 years ago

I think I will experiment a little bit. I tend to think louder is better, as there will be a silent option in the software going forward.

oskay commented 3 years ago

Possible option to consider for the future: Migrate to making noises in the software, not the hardware. Computers have headphone ports and things; can be made really loud or quiet, easily.

t0mpr1c3 commented 3 years ago

Yes, that will be implemented in the software in future and will make the beeper redundant. I really don't think there is any advantage to having both. Can you think of any reason to retain the beeper?

Apart from anything else, some users may have strong preferences on the subject of electronic noises and I tend to think these are more easily addressed in software.

oskay commented 3 years ago

This is probably a question that should be brought to the userbase as a whole.

t0mpr1c3 commented 3 years ago

Yes. There will be user input to the software update and that should clarify things.

VIPQualityPost commented 4 months ago

https://github.com/AllYarnsAreBeautiful/ayab-firmware/pull/143 beeper configuration implemented, seems issue is closed