Skip to content

Instantly share code, notes, and snippets.

@stonehippo
stonehippo / minute_timer.ino
Created November 23, 2021 13:20
A trivial Arduino application showing delaying an event synchronously for some number of minutes
#define SECOND 1000 // 1 sec = 1000 millseconds
#define MINUTE 60 * SECOND // 60 sec = 1 minute
void setup() {
Serial.begin(115200);
randomSeed(analogRead(0)); // choose a pseudo-random starting seed
}
void loop() {
WaitForNMinutes();
@stonehippo
stonehippo / SimpleAudioFXTrigger.ino
Last active December 19, 2022 03:21
A simple Arduino trigger of the Adafruit Audio FX Sound Board
// A simple trigger for the Adafruit Audio FX Sound Board
// For complete info on the sound board, see https://learn.adafruit.com/adafruit-audio-fx-sound-board/overview
/*
This is a simple test of a direct trigger of the Audio FX Sounds Board from an Arduino.
For my test, I used an Arduino Pro Mini running at 3.3v & 8mHz. Digital pin #4 of the Arduino
was connected to trigger pin #0 of the Sound Board, and I tied them to a common ground. I powered
Sound Board via a USB external battery for the initial tests, and the Arduino via the FTDI cable.
For later tests, I powered the Sound Board via the Arduino's VCC (3v) pin directly.