![]() The documentation stats that the board should be able to detect the trigger in 50ms. I've found that adding a delay of 100ms after setting to LOW is long enough for the Audio FX board to register the trigger event with my 3v3 Arduino.To trigger a given pin on the Audio FX board, we need to bring the Arduino pin tied to it to LOW, then back to HIGH.The Audio FX board pins are triggered when connected to ground (they're set up this way so they'll work with simple normally open push buttons connected directly to the board's ground). The Sound Board via a USB external battery for the initial tests, and the Arduino via the FTDI cable.įor later tests, I powered the Sound Board via the Arduino's VCC (3v) pin directly. I've found that coming from my 3.3v Arduino Pro, it needs 100ms to get the triggerĭelay( 100) // hold the pin low long enough to trigger the board may need to be longer for consistent triggeringĭigitalWrite(pin, HIGH) // bring the pin high again to end the activationĪ simple trigger for the Adafruit Audio FX Sound Boardįor complete info on the sound board, see What I'm Doing Here PinMode(LED, OUTPUT) // Make the LED pin activeĭigitalWrite(pin, HIGH) // Set the pin high as the default stateĭigitalWrite(pin, LOW) // bring the pin low to begin the activationĪccording to the documentation, the Audio FX board needs 50ms to trigger. ![]() # define BUTTON 2 // put a simple button on pin 2 to enable/disable sound playback # define LED 13 // Most Arduinos have an LED on pin 13 Sound Board via a USB external battery for the initial tests, and the Arduino via the FTDI cable.įor later tests, I powered the Sound Board via the Arduino's VCC (3v) pin directly. Was connected to trigger pin #0 of the Sound Board, and I tied them to a common ground. This is a simple test of a direct trigger of the Audio FX Sounds Board from an Arduino.įor my test, I used an Arduino Pro Mini running at 3.3v & 8mHz. For complete info on the sound board, see A simple trigger for the Adafruit Audio FX Sound Board
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |