Clap/Acustic sensor DIY

Hi all wanted to share a small success story I have(i don’t have many :slight_smile: )

so I saw a clap sensor on Ali, ordered it, and soldered it, my soldering skills were nothing then,
so it didn’t work :frowning:

time passed by I bought myself TS80 Iron, and allot of cool soldering gizmos to help a noob like me
so I order another one https://trade.aliexpress.com/order_detail.htm?spm=a2g0s.9042311.0.0.27424c4dbBGQXZ&orderId=8000042743095799

this time it worked and I was able to clap my hands, and have the LED come on and off

so from there, it was pretty straight forward

  1. ESP D1 Mini
  2. USB Cable
  3. some Soldering stuff and cables
  4. Clap sensor
  5. DHT22 (just because, I don’t know I had one )

than in thsomta I just setup the clap sensor as a switch, and MQTT

now I went to Node-red, this is a very small example on how you can count the number of Claps coming from MQTT

image

[{"id":"4ac96221.e7ad5c","type":"mqtt in","z":"6dfaf69a.4c5508","name":"Sensor01","topic":"stat/Sensor01/POWER","qos":"2","datatype":"auto","broker":"b31d9a1b.fc5e78","x":400,"y":320,"wires":[["d895531b.1ef54"]]},{"id":"d895531b.1ef54","type":"change","z":"6dfaf69a.4c5508","name":"CLAP","rules":[{"t":"set","p":"payload","pt":"msg","to":"CLAP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":320,"wires":[["e640dd56.f183c"]]},{"id":"dddaa49f.2fdec8","type":"switch","z":"6dfaf69a.4c5508","name":"","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":970,"y":320,"wires":[[],[],[]]},{"id":"90f1bd2b.eb9eb","type":"timed-counter","z":"6dfaf69a.4c5508","name":"","timelimit":"900","withhold":true,"fixedtimeout":false,"x":809.0000095367432,"y":319.66662406921387,"wires":[["dddaa49f.2fdec8"]]},{"id":"e640dd56.f183c","type":"switch","z":"6dfaf69a.4c5508","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"CLAP","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":660,"y":320,"wires":[["90f1bd2b.eb9eb"]]},{"id":"b31d9a1b.fc5e78","type":"mqtt-broker","z":"","name":"Node red","broker":"192.168.1.103","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

it was a really fun and cheap project, clapping my hands to do stuff has allot of a cool effect, but it is not ideal, this is more for the show as you can imagine, but the kids are having fun

and I found it useful getting out of the shower and clapping my hands like a king and things happen

i made a small ugly box using the TS80 box :grimacing:

sorry for the trouble writhing, I am not an English speaker as you can tell
any Q will be welcomed

5 Likes

Could you post a new link to the sensor?

You posted a link to your order wich we are not allowed to see. :wink:

1 Like

soory for that
here is the one that worked for me :slight_smile:

1 Like