I am working on an Animatronic that talks moves his head side to side and shakes forwards and backwards.
I have the talking working just fine, i need to add the turning of the head and shaking.
The mouth is triggered with audio that i have fed into the Shifty VU sheild.
The head and shaking are pistons that have relays to turn them on and off.
My issue is that what would be a good solution to monitoring for the audio signals, as well as turning on and off the head and shakes to a timer so it is synced with the talking.
Would using delays to just run a program for shaking and head turning. and use an interrupt when an audio signal is detected for the mouth?
Or would it be better to have the mouth always detected then use timer interrupts to run the head and shakes?
Any suggestions would be great
Thanks in Advance