GetDeviceInfo
- Joined Jun 7, 2009
- 2,196
This may or may not work and only testing on the board will prove;
Your implementation has a momentary button that grounds an input line which in turn selects a sound file, and the pwrbtn is left unconnected? If so, this provides an always on, momentary audio output.
In the adafruit adaptation, the device is powered up via a capacitive link from source power to the pwrbtn input. Without further driving of the pwrbtn input, the device is always on until removal of power. As indicated in the data sheet, a high signal of 2 secs on pwrbtn will sudsequently shut the device off. As you've identified, an 'activity' signal provides a low on sound, and a high when complete. It would then follow logic that the high on completion could be applied to pwrbtn, turning the device off. That would further follow then that a momentary pulse on pwrbtn be required to turn the device back on. Your current momentary button must remain, to choose a sound file, yet prevent looping.
Here is what I would try. Replace your momentary with a double pole single acting push button, if it isn't already. One pole will remain as is, select input pulled low through a normally open contact, the other pole pulling pwrbtn high via a 10k resistor to Vdd through a normally open contact. Connect 'activity' output to pwrbtn via a 10k resistor. Check for operation.
Your implementation has a momentary button that grounds an input line which in turn selects a sound file, and the pwrbtn is left unconnected? If so, this provides an always on, momentary audio output.
In the adafruit adaptation, the device is powered up via a capacitive link from source power to the pwrbtn input. Without further driving of the pwrbtn input, the device is always on until removal of power. As indicated in the data sheet, a high signal of 2 secs on pwrbtn will sudsequently shut the device off. As you've identified, an 'activity' signal provides a low on sound, and a high when complete. It would then follow logic that the high on completion could be applied to pwrbtn, turning the device off. That would further follow then that a momentary pulse on pwrbtn be required to turn the device back on. Your current momentary button must remain, to choose a sound file, yet prevent looping.
Here is what I would try. Replace your momentary with a double pole single acting push button, if it isn't already. One pole will remain as is, select input pulled low through a normally open contact, the other pole pulling pwrbtn high via a 10k resistor to Vdd through a normally open contact. Connect 'activity' output to pwrbtn via a 10k resistor. Check for operation.
Last edited: