This is a very old project started in ~2012??
The idea is to complement the lack of visual alert for a program that produce only sound alert
It is especially practical for environment where visual is required
This is a VB application that listen if desktop has sound and sends signal '1' to COM port and to start a process
The Core Audio Beacon Project can complements any software that produce sound, as long as the desktop receives it. While the sound is continually getting detected, the visual beacon will light up. It can then serve as a extra alarm/alert.
The Core Audio Beacon Project builds on the desktop sound and send signal over to the microprocessor where it will activate the beacon.
Core Audio | Arduino IDE/Web Editor |
Core Audio is a C# program using Windows Core Audio APIs. The core audio APIs provide the means for audio applications to access audio endpoint devices such as headphones and microphones. The core audio APIs serve as the foundation for higher- level audio APIs such as Microsoft DirectSound and the Windows multimedia waveXxx functions. Most applications communicate with the higher-level APIs, but some applications with special requirements might need to communicate directly with the core audio APIs.
Credit - https://www.codeproject.com/script/Articles/ArticleVersion.aspx?aid=18520&av=112029 (link is dead)
The original core audio sample program can be downloaded at link. The original project has been tested to work on Window 7 and Window 10. The original program was modified to include 3 functions:
- A simple user interface to allow user to modify the COM port number and process name.
- Communication to COM port, so that message can be send out.
- Process checking, to check whether process is currently running.
- This is the volume mixer. When sound is detected on the system, green bar will fall and raise.
- Input the process to be check. It is important to enter the process name without .exe extension. Go under Task Manager > Details to find the name of the process. ( Example notepad.exe = notepad, chrome.exe = chrome )
- Input the COM port no. of where the Arduino is connected. COM port no. can be found at Device Manager.
- This shows the status information of Core Audio. There are 3 types of status;
a) “ERROR”: indicates that there is problem establishing connection with
b) “SUCCESS”: indicates COM port connection is establish and message is send
c) “NO-PROC”: indicates that processes could not be found
- Hide minimize Core Audio to tray
- Save button updates the new values of COM Port and Process. User must RESTART for new values to take effect.
Make sure Arduino is available to use
Load code into the Arduino
- All the following diagram is design based on 12V specification.
- Circuit Design should be done on breadboard so that configuration can be change easily.
*NOTE: The beacon can be swapped with a higher voltage, however, ensure matching voltage &
compatibility for the output from power adapter, rated load for relay switch, buzzer and on/off switch
There are 3 types of status;
a) “ERROR”: indicates that there is problem establishing connection with the COM
port
- Possible Problem:
COM port conflict, other program is using the same COM port number
Resolution:
i. Change the COM port number used by Arduino under Device Manager
ii. Update Core Audio with new COM number and restart
iii. Restart PC - Possible Problem:
COM port does not exist
Resolution:
i. Check COM port under Device Manager
ii. Restart PC when COM port exist - Possible Problem:
Setting did not take effect of the new value
Resolution:
i. Ensure setting is correct
ii. Restart Core Audio
b) “NO-PROC”: indicates that processes could not be found - Possible Problem:
Process does not exist
Resolution:
i. Go to Task Manager ii. Ensure process exists - Possible Problem:
Process name is wrong / Process name contain .exe
Resolution:
i. Go to Task Manager
ii. Ensure process exists
iii. Enter again the process name with “.exe” iv. Restart Core Audio
- Setup circuit as shown below
- Prepare 5V DC Power Adapter or any other alternative 5V Output
- DO NOT CONNECT the 5V to the relay switch yet
- Debug
Checklist:
- Ensure hardware configuration design is finalized
- Ensure software and code is working
- Debugging is done and components are working as intended
Preparation:
- Soldering item is ready and available
- PCB is large enough to accommodate all wiring pin and relay switch onboard
Soldering:
- Solder based on the diagram below:
- Red Cross: Do not solder
- Blue Circle: Solder
- Orange Square: Use a wire connector