This is the original definition of the HW+SW project.
The raspberry should be turned on 24 hours a day.
When the cron is reached to run one audio
- Turn on the relais to turn on the amplifier or what is needed
- Run the sound
- Turn off the relais and shutdown the amplifier or what is needed
WARNING: during the automatic cycle the manual way should be disabled.
When needed outside of cron
- Turn on the amplifier or what is needed. This emulate the automatic turn on.
- Press the button, that will play the sound
- Turn off the amplifier or what has been manually turned on
WARNING: during the manual cycle the automatic cycle should be disabled.