PubInv / general-purpose-alarm-device

A general purpose alarm device (with software) as a module for medical devices (and others)
https://www.pubinv.org/project/general-purpose-alarm-device-gpad/
GNU Affero General Public License v3.0
5 stars 12 forks source link

Voice Messages, Ideas, MD YX5300 Library #82

Open ForrestErickson opened 1 year ago

ForrestErickson commented 1 year ago

Per the note on the Possible Evolution Stages of the Project

Although "buzzers" and "sirens" of various kind are available, we eventually want a loudspeaker that can make various noises to provide information about the alarm level. Someday it may even support recorded messages in a human voice speaking a natural language. Imagine the voice of Scotty saying "She canna' take the strain, Captain!" in a Scottish accent.

The January/February 2021 issue of QEX magazine has an article, "HF SWR Meter for the Visually Impaired" which outlines a project which has "... vocal output for a measurement instrument". See starting at page 7. The project uses a Catalax YX5300 module controlled by a serial port on an UNO . Code for the UNO is found at: https://github.com/f4goh/vocalSwrMeter

The Arduino reference has a library for this module at: https://www.arduino.cc/reference/en/libraries/md_yx5300/

While not installed in the Arduino IDE by default, the MD YX5300 library is readily available through the library manager. image

There are four examples with the library. And SD card is required to hold the audio files.

ForrestErickson commented 1 year ago

Another part, YX5200, with the additional advantageous features of a BUSY signal so the controller to which this part is interfaced can know if the audio is playing.

https://www.amazon.com/Anmbest-YX5200-DFPlayer-Supporting-Arduino/dp/B07JGWMPTF/ref=sr_1_1

Arduino Library for this YX5200 part: https://github.com/PowerBroker2/DFPlayerMini_Fast

ForrestErickson commented 1 year ago

This program had interesting discussion of alarm fatigue and working some ideas on better alarms:

https://www.20k.org/episodes/donotdisturb

ForrestErickson commented 1 year ago

I found a youtube about this module. https://www.youtube.com/watch?v=HSLKefx1VK4

There is some elaborate example code linked from that video here: https://drive.google.com/file/d/1rr-YXgf94nu-h283_bTH2wfjSn8lHaZI/view

ForrestErickson commented 1 year ago

If I understand correctly, this module does not drive a speaker directly. An audio amplifier IC to drive a speaker would be required. The LM386 is a likely part and here is the JLCPCB PN: https://jlcpcb.com/partdetail/TexasInstruments-LM386MX_1NOPB/C23573

It is only 0.55.