Well,
It's actually C.O.C.O. that stands for "Clap On Clap Off" and the intention is to turn ON/OFF the lights on the Christmas tree.
This is something I put together for 'grandpa' who has trouble even hitting the button on the power switch with his cane.
Enjoy!!
Comments
"I assume you use the on-board microphone" - Yes, absolutely. I modified the microphone-to-headphone object and called it 'Clap Detector' . Within it you can set the threshold noise level. With two little girls Ages 5 and 8 as my 'random noise source' the value I have set seems to be fool proof... Now, if there happens to be a football game, and there are people clapping, yelling, etc. it's anyone's guess how the 'Christmas tree' will respond. :-)
I'd feel bad about using a simple BS1 for that app, and you have a Prop there! Ah, the joy of overkill!
JK, I'm just way jealous that you have access to all these wonderful treasures...
I know your joking, and so am I...
I'm all about showing how to do something by what ever means are available and at my disposal. Even when they say that it can't be done, that's even more of an incentive. But that's just my style.
I didn't post this for the sake of COCO, the idea is to look at the project for elements within the code and hardware that make the project in the first place. This way someone else can build upon these elements with some future project of theirs that undoubtedly will seem completely unrelated. An example? This program originally started out as microphone_to_headphones.spin which later became a PING detector for measuring the speed of sound, and now... COCO.
Anyway, glad you like it... the idea is to have fun with it. Grandpa likes it, and so do the girls... The tree blinks on and off a little more that I would like for it to (at the girls discretion of course), but it works and the girls have fun with it.
BTW) I have a few extra boards so that I can work out problems with other peoples code :-)
Now your thinking - lol