It is Halloween and I have a toy skeleton and recently got a few servos, for fun I wanted to try and make the head of the Skeleton move up & down in head-banging fashion. I would also like to have this servo move to the beat of the music it hears.
Sadly I have no idea how to go about this. I can load code but not keen on writing it yet. I do have all servos working.
I have many sensors & boards Mega, Uno, Nano etc ; (mics, bluetooth, wifi, esp) etc.
If anyone has time to help a newb I would appreciate it.
Hi Paul,
Thanks for the feedback so fast. This is more of a concept as I have not mounted anything yet. I am researching high speed servos, as mounting goes it would be on the Back right/left with two horns to allow the up down or 0-90 phase.
So I guess I need a loop for 0-90 deg phase but fast like every 1/2 second
Thanks for the Analog/digital info. Was not aware. I will look into that more - I was thinking of how certain LED circuits blink to music, can or would a servo move to music with the correct sensor and code?
Most likely! Lots of forum threads relating to sound and reaction to sound. You will actually need to DEFINE what the reading from your sound sensor will be and the resulting logic. A digital output will be 0 or 1, while an analog output will be somewhere between 0 and 1023.
Which Paul are you replying to? Your responses are a little confusing.
Was this a reply to my post? I didn't mention digital. What I was trying to warn you was that most analog audio signals are AC, so half of the waveform is negative. Negative voltages can damage Arduino analog inputs.