The singing pumpkins are synchronized by time. There is a list of animation modes for the servos and the number of milliseconds into the song they are to activate. The list was made using label tracks in Audacity. I exported the label track as text and then massaged the text in to a literal C array initializer which is compiled into the sketch. When the Arduino starts it plays the song right away and then starts comparing the return value of millis() to the entries in the array.
This might be more than you need. Some sort of function that looks at the amplitude of the track might be enough for a heartbeat.
So I'm using an Uno and an Adafruit WaveShield (https://www.adafruit.com/products/94) to play back a simple heartbeat track as part of a Halloween prop. I'd love to be able to flash an LED in sync with the audio. Has anyone ever done anything like this, and if so, how did you accomplish it?Thanks!
--
---
You received this message because you are subscribed to the Google Groups "milwaukeemakerspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "milwaukeemakerspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakers...@googlegroups.com.
On Sep 18, 2016, at 6:11 PM, ChrisH <hemm...@gmail.com> wrote:
So I'm using an Uno and an Adafruit WaveShield (https://www.adafruit.com/products/94) to play back a simple heartbeat track as part of a Halloween prop. I'd love to be able to flash an LED in sync with the audio. Has anyone ever done anything like this, and if so, how did you accomplish it?Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "milwaukeemakerspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.
I've built a few of these before..
FYI.. you may be disappointed with the 'volume'.
I believe I read about a volume hack for it before (might have to google it)..
The Waveshield is actually what my 'custom' (go-to) Arduino board is based off of.
Its more or less an Uno and Waveshield all-in-one hybrid...
http://dmstudios.net/misc/scab_assembly/all-in-one_2.jpg
its just all SMD parts, and is a bit wider that a stick of gum. (you can see the comparison in the pics)
Uses the same libraries (slightly modified library/pins files).. but is much louder.
There might be some waveshields as the space.. or maybe give Pete P. a 'poke' and see if has an extra to sell perhaps?
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "milwaukeemakerspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "milwaukeemakerspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milwaukeemakerspace+unsub...@googlegroups.com.