The Clapper

Clapper 1
By CaseyM2

You all remember the clapper from the 80’s “clap on clap off” right? I might not because I wasn’t alive yet…. but I have always known the tune. So I figured why not digitize it and recreate it with my Intel Edison.

Part list:
1. Intel Edison with Arduino breakout
2. Grove base shield
3. Grove microphone
4. Grove Led socket
5. Led (or other thing to activate)

Step 1 – Hardware
Clapper Step 1
1.1 This is a little bit more involved than just plugging in the clapper and clapping, but it is definitely more rewarding.
1.2 Start by inserting the Grove shield into the Arduino pin outs of the intel Edison – being careful not to bend the pins while putting it in.
1.3 Then Insert one connecter wire from the shield into the analog 0 (A0) pin and the to the microphone making sure the wire is indexed correctly
1.4 Next insert another wire into the digital 4 (D4) socket on one end and then the led connecter on the other again making sure the wire is indexed correctly
1.5 Insert your led into the socket on the connector lining up the flat side of the led with the flat side of the silk screen on the led adapter
1.6 That is it for hardware now to the software side.

Step 2 – Software
Clapper Step 2.1
Clapper Step 2.2

To talk to the Edison you need a special Arduino IDE that you can download here.

Once you have downloaded the IDE connect two micro USB cables to the micro USB ports on the Edison. Make sure the micro switch between the USB and micro USB is pushed towards the micro ports and that you apply power to the lower j3 port then the upper j16 port (just a good habit for using the Linux side).

Then select the Edison board and the last USB port that says cu.usb like in the pictures above and click the link below, this will take you to Github, and click on the clapper file. Copy and paste that code into the Edison IDE hit compile and enjoy your throw back to that clapper.
(clapper code)

Source: http://www.instructables.com/id/the-clapper/

About Author

Calendar

December 2014
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031