Turn your lights on with clapping?! || Arduino Clap Circuit
Previous video: • X-Carve DIY CNC Machin...
Arduino IR Tutorial: • Control your LEDs with...
Programming an ATtiny85: • Electronic Basics #3: ...
Facebook: / greatscottlab
Twitter: / greatscottlab
Support me for more videos: www.patreon.co...
More project information on Instructables (parts list, schematic, code): www.instructabl...
The video I was watching in the beginning was made by Afrotechmods: / afrotechmods
Parts list (affiliate links):
Aliexpress:
1x ATtiny85: s.click.aliexp...
1x NE5534: s.click.aliexp...
1x Electret Microphone: s.click.aliexp...
1x 20kΩ Potentiometer: s.click.aliexp...
1x Resistor Kit (various): s.click.aliexp...
1x 100nF Capacitor: s.click.aliexp...
1x 1N4002 Diode: s.click.aliexp...
1x BC 637 NPN Transistor: s.click.aliexp...
The circuit can only switch ON/OFF AC appliances with less than 200W of power.
Wouldn't it be nice to turn on your lights without getting off the couch? In this video I am going to show you how to build a simple Arduino clap circuit which can turn on and off all kinds of AC appliances.
Music:
2011 Lookalike by Bartlebeats
Killing Time Kevin MacLeod (incompetech.com)
Пікірлер: 655
"you can touch 230v directly if you act stupid." "Don't act stupid."
@heiwa3713
7 жыл бұрын
i was watching the video and i read this when he told it LOL
@thedavinator37
7 жыл бұрын
I am Iverol same
Great project! Will definitely have to try this out sometime.
@julianfernandez2689
9 жыл бұрын
OMG, I NEVER NEW YOU WATCHED GREAT SCOTT, IM A HUGE FAN OF YOU AND GREAT SCOTT, sorry for capitals
@DavidCoptil
9 жыл бұрын
DIY Perks Make a video of your project!
@kyoudaiken
9 жыл бұрын
DIY Perks Hey. Make it battery powered using pulsed relays. Also try to make a two channel one for clapping two times for channel one and three times for channel two. Using (expensive) beefy relais may allow you to put on power strips for multiple appliances!
@derdicky1982
9 жыл бұрын
***** ... Batterypowerd? a batterpowered mains switch, so you can turn of your charger that charges the batteries for your clap-switch? now i see why you need two channels...
@kyoudaiken
9 жыл бұрын
dicky dicky Totally wrong! The conversion of 250 Volts into 5 Volts using even a switching PSU is much more inefficient as just taking two 9V batteries and use pulse relays. So the circuit does only draw very low power to power the micro and only when a switching impulse is sent the relay is used. The batteries would last for at least one year and batteries are pretty cheap in germany. I could also use 6 AAA eneloops and recharge them EXTERNALLY. It's much better than permanently have a PSU on the mains... I just do not like it to do so! We pay 30 Euro-Cents each fucking KWh in fucking Germany! Congrats for almost free electricity in USA...
Just don't watch any awards ceremonies or ur lights will go insane
@MaxImagination
4 жыл бұрын
@Thulium The neighbors noticing the lights blinking: Oh, they must be banging again! lol
@crusaderanimation6967
4 жыл бұрын
@Thulium #Cursedcoments xD
@adnanahmadknowledgevideo
3 жыл бұрын
🤣🤣🤣
Please never stop making videos I'll never stop liking and supporting :)
It is because of stuff like this why I'm starting to teach myself about coding and programming and also learning about all the different hardware and what it does. I ordered a raspberry pi to learn coding on and eventually I can add components to the pi so I can learn more about the hardware side of things. I'm sure it will take me quite awhile to learn all of this but my goal is to be able to create things like this guy. It's amazing!
Gotta say, I'm loving the videos! High quality and great explaining! I've actually learnt quite alot!
This really does work nicely, congratulations for another excellent instructional video. I would like to add a very quick note about the circuit diagram. I made the mistake of wiring the output of the ATtiny85 as per the diagram which shows pin 2 and not pin 7. Only after this did I look at the datasheet pinout, and see D2 is pin 7. This is here to assist others who made the same error as me but look here for an answer. Love your videos😊
Wieder ein super Video! Macht wirklich Spaß deine vids zu schauen und ich habe echt Lust deine Projekte selbst auszuprobieren. Was ich besonders Klasse finde: Du erklärst nicht nur wie man es baut, sondern gibst dazu noch elektrotechnisches Wissen an uns weiter! Mach weiter so!
@greatscottlab
9 жыл бұрын
110freestyler Thanks mate ;-)
@NightmareQueenJune
9 жыл бұрын
110freestyler Ich kann eigendlich nur das Gleiche sagen :D
@Time4Technology
9 жыл бұрын
110freestyler Gleiche Meinung / Same opinion :)
@aretheytheahole
9 жыл бұрын
110freestyler BRATWURST
4 жыл бұрын
Nameless Croissant, BIER!
Made it myself!!! I found on tindie (searc: All ATtiny Arduino programmer shield) - which simplify the tiny programming the bonus is that it can easily hook the tiny micros....
*clap clap* M e m e r e v i e w
I tried this and everytime i watch meme review my lights turn off🙄
I dont know why am i watching your videos, i dont understand electricity, im stupid at programming, i have no idea what are you doing, but i just love your videos, your inventions and voice :D have a nice day mate :D
should i clap for this awesome tutorial or will your lamp turn off? xD Awesome as always.
@rianbotha6928
9 жыл бұрын
bruce wayne Your Pc or device you're using to KZread will turn off.... #TROLL
@brucewayne-px4lv
9 жыл бұрын
Rian Botha somebody got sand in their vagina..
@julianfernandez2689
9 жыл бұрын
+bruce wayne wtf
@brucewayne-px4lv
9 жыл бұрын
Julian Fernandez Barcellona it was a joke to rian's comment on my first comment.If you watch south park you will get it.
@kyoudaiken
9 жыл бұрын
bruce wayne It was a VERY vulgar joke....
Oh man! I like how you explained everything!! Much better than other videos that are just "do this do that and viola"
@greatscottlab
9 жыл бұрын
Thanks. I am going to keep it that way ;-)
@navidmehdi6
9 жыл бұрын
Just discovered your channel. even u hardly am ever able to make these kind of stuff I've always loved these kind of electronic project channels keep it up
@navidmehdi6
9 жыл бұрын
Just discovered your channel. even u hardly am ever able to make these kind of stuff I've always loved these kind of electronic project channels keep it up
Great project as always! It would be great to turn on different devices with different clap patterns... oh the possibilities!
100k Subscribers!!! Great Job Man!
@greatscottlab
9 жыл бұрын
+MrMitche Mitchell Thanks
I already feel for you when you will catch cold and keep coughing :D
@TheJghwe
8 жыл бұрын
Hahahaha lol
I remember I built a clap switch with "one clap on, two clap off" feature 7 years ago. I used the output of my mic preamplifier (a simple transistor stage) and fed it to a monostable stage wired around IC555. the output clocked a decade counter (CD4017) and the second bit triggered a JK flip-flop for latching the output. It's amazing how a tiny MCU can reduce the part count so much! :)
Great video again! Thanks for leaving in your mistake with the AC adaptor rather than starting again and cutting it out of the video. We all make mistakes :)
Ooooh! Now attach it to a power strip to turn on multiple things at once! Love your videos! So addictive.
This is the best frickin channel ever
Ich wünschte ich hätte dein wissen über elektroik. Ich finds einfach nur richtig genial was du baust und zusammen stellst dickes lob !
!!Excellente GScott made a low noise amplifier, as always make clean projects with pros n cons well explained in short time, pretty like Andreas Spies...
Amazing, I was impressed when I connected my headphones to the output of the NE5534, the amplified sound was very clear and clean
@akindiranolanrewajujohnson1873
5 ай бұрын
GScott made a low noise amplifier, as always make clean projects with pros n cons well explained in short time, pretty like Andreas Spies...
Great job mate. I suppose you can add 3 and 4 claps switches depending on the timing and the number of claps right? Now THAT would be even more catchy!
@greatscottlab
7 жыл бұрын
Sure
@nicbrainChannel
7 жыл бұрын
Theo papa thats my aim, can u help me on achieve that ?
@nosafetyswitch9378
7 жыл бұрын
Nic Brain if you can achieve the first step, which is the 1 clap then you can do the resrt.You just need an oscilloscope for that, something that i dont have. But the idea is measure the timing with the oscilloscope and put according delays on the arduino code.
@nicbrainChannel
7 жыл бұрын
Theo papa thanks for the fast reply . Because am a beginner On this arduino coding and stuffs iT makes things kinda harder . I dont know maybe u can help me make this code ? My aim is to turn different appliances On with different number of claps. For example 2 clap to turn a pc On and 3 clap to turn the tv On
@nosafetyswitch9378
7 жыл бұрын
i am afraid you should relax and start as everyone does. From simple stuff. Start by learning the basic commands and achieve manipulation of leds, stepper motors and then lcd screens. You ll gain experience this way. Controling high power devices like the ones you want require solid understanding of coding and most importantly of risks of electricity. So you d better take it slow.
You deserve more subscribers dude. Awesome videos
@greatscottlab
9 жыл бұрын
+EveryLittlePixel Thanks mate ;-)
Always a pleasure watching your posts. Well done
ThankYou , you were my inspiration for my new channel!!! Love Your Videos !
"It is possible to touch 240 volts directly, if you are stupid, so, don't be stupid" - LOL--classic!
Clap On, Clap Off, clap on clap off, the clapper! I had one of these in the 80's
when you really use your creativity you can alot of things. and one those could be like this one. Nice One Man!
Another great tutorial. I almost always learn something new in addition to what the tutorial is about. Thanks GS.
Danke wieder einmal ein super cooles Video ;)
i love your accent cus. everytime i use heatshrink i think "termal tshrinking ishulatoooooor". i love your work, you help me understand shit other people make really complicated.
"Potentiometer " captions: charmander, literally that's what it says
Hey just a quick side note, I noticed that that relay was rated 125 volts. However it's always a good idea to use a relay rated twice the voltage you put through it. For example if you use 120 volts then use a 240 volt rated relay, if you use 240 volts then use a 480 volt relay. It will greatly reduce the risk of arcing and will be a lot safer.
Wow i am really impressed with this project...u did a good job man, keep up the good work! 😉
i tried this now i am dead. thanks scott
GreatScott! You really need to expand this, add more output and clap patterns.
Lol don't act stupid lol
@DrToiletfaceGames
9 жыл бұрын
Echo-GAMING lol what kind of comment is that lol
@sized4spills
9 жыл бұрын
+DrToiletface it was said in the video.
@boosted_2j
8 жыл бұрын
i swear i didnt write that :o someone was on my account.. sorry bro
Laziness just got to another level
@bgarv7
7 жыл бұрын
Brandon GarvenTM Hehe
@luongmaihunggia
6 жыл бұрын
Actually, you don't have to be lazy to use this. If your doom is dark and you can't find the switch, this could be very helpful.
@no-vo9bm
5 жыл бұрын
I like darkness and my parents come in my room and turn on the light and then i have to get up but my phone charger is a little brocken and i have to hold it a certain way to charge my phone. If i get up i would ruin it. Not lazy
6:00 Genius
Very cool project Scott
Cool project! Must try this
Loved it! Thanks
You're amazing
love all ur videos, never stop
Your channel name literally is my reaction
Am i the only one that spontaneously bursts out laughing because i imagined that invites a girl to "netflix and chill ;)" and his lights go on-off-on-off...? :D
Wow.... man you are very very very dedicated.
This man made a clap on clap off thing
Hammer geil! Ich brauch sowas :D
"So dont be stupid.." Haha that was great, scott.
I NEED THIS! And its cheap! *buying stuff online*
wow, great scott really is great😉
Happy 100.035 subscribers!
Hi great Scott I like your page so much you upload very interesting project and electronic basics you help me so much thanks
great scoot you should connect a fan when your chilling and when you want it on just clap that would be great
wieder sehr gelungenes Video! sehr nice
Great project, This is a thing i want in my house hahah :D
turning my pc on with 2 claps and open programs with cortana. love it
this is probably the first serious electronic circuit that i'm gonna make
Can u make a video about relais? I'm so confused about their connection
Next thing you know, Timmy knocks on mommy and daddy's door to ask them why the lights are flickering....Lol "clap light".
Hi Greatscott, nice video! I was wondering what components would have to be replaced for the project to switch on/off AC appliances which require high power around 1000W?
@Ofca_PL
Жыл бұрын
For 240v use relay for minimum 5A
You need to wire your entire house to this circuit. Then, when you get home, you can clap and everything powers on. Bonus points if your door says "welcome home, master" as well. Although, if someone thought it fitting to give a round of applause... well... you know.
00:04 Volume on 99? maybr just to be sure it's loud enough ;)
@Lukas-qd7fy
5 жыл бұрын
Lol
As always a neat project. I was however a bit surprised to see you still using your dremel and veroboard when you have a shapeoko? Looking forward to projects that include cnc stuff for that professional finish from this channel. Keep up the good work.
excellent explanation I got the idea now but you did before me
This is really cool, and actually quite close to something I was trying to do not long ago. I wanted to fit a lock to my front door and drill a small hole for a LDR, and use a momentary flashlight as a "clap". If you flash a specific sequence, the door unlocks. I never got around to doing it because for some reason, my code doesn't like putting out more than a volt on the digital pins -__-
@mariog1996ist
9 жыл бұрын
Jordan O'C did you set the pins as output?
@Xenro66
9 жыл бұрын
Mario G. I did. I've put my code on pastebin if you want to have a look over it and tell me how shit my programming is XD. pastebin.com/cid9diZP
@mariog1996ist
9 жыл бұрын
First of all to mention that I personally use Atmel studio. Now I can not see anywhere pinMode(). This function configures your pin direction if it is an input or output. Take a look at this link fix that and you are starting from something. www.arduino.cc/en/Reference/PinMode
@mariog1996ist
9 жыл бұрын
And my friend please do not use goto. just never when programming on C/C++. Always you will find a way to do it with loops.
@Xenro66
9 жыл бұрын
Mario G. Oh my god... How could I forget that?! **Ultimate facepalm**. I don't like using goto, but It's the easiest way I can loop something, it's the one I understand the most. I hate using "while" and "for" loops, they confuse the hell out of me. Thank you for pointing out my obvious mistake though.
I am a little concerned that both sides of the AC are not relay switched. I note that GS says don't be stupid so I would amend this design in two important ways: 1) Add a second relay for the other AC line and 2) add low current fuses to each side the AC lines so that the clap device cannot be overloaded. You would not want to connect a 3kW heater to this!
Awesome videos! Thanks a Lot for making such educative videos!
fantastic video man. I just gotta build this next! I have a room and the light switch is on the far wall away from the door. I always curse bumping into things to get to the switch. I bring a torch but this is sooo much better
Gratz on 100k!!!!!
this was uploaded in my birthday😂
Jen Bush's favorite project
lol i never noticed that you are lefthanded Awesome ! i am lefthanded too ;D now i makes sense why you mainly draw with a penclie and not with markers or sharpie, to avoid smudgeing your drawings :D
@greatscottlab
9 жыл бұрын
Raffy611 Correct
I am a electronic engineering student from india great sir keep it up I learned so many things from you Please keep uploading new project Kindly can show with arduino uno ??
You could save space by replacing the Output with a short extenstion cord ( the end) :)
amazing project as usual. Maybe i ll try to use it some time... :) thank you!
@greatscottlab
9 жыл бұрын
Carlos PECHIR You're welcome
@TheBadFred
9 жыл бұрын
GreatScott! are there any Abacom Lochmaster files for that project? Is there a milled pcb of that project, since you have the X-carve ...
@kyoudaiken
9 жыл бұрын
GreatScott! I think I will build a 2 channel one with a double clap and a triple clap in the next months! :) But I will power it via two 9V batteries in parallel and a step down converter which has an idle consumption of a few micro amps and pulse relays. :o Should last for years and when it goes dry, the appliance will be still on or off. Nothing to worry. :D
Nearly 100k Scott
i folow you on instructable and i addict of your vidéo!!!!
This is awesomeness.
Great video man ! You are awesome.
Portugal on that chip!
I simply have no words for you. You're trully Great. Have you finished electronics in uni or..? That's not only creative and thoughtful, but also very smart. :) Nice job! :)
really cool project!
It would help if you were consistent with the resistor values you used for the project. The first circuit you showed at 1:40 sets a quiescent bias point around 1/3 of the supply rail (i.e. 1.67V) not the 2.5V you show on the 'scope. I appreciate that you actually want to bias the quiescent point closer to the negative rail to maximise the swing since the opamp can't swing to the positive rail, but you need to explain that, not leave folks with the false impression that a 20K : 10K resistor divider will give 2.5V. It won't.
buying The Clapper would make you look lazy, but making one makes you just plain cool... great tutorial.
@greatscottlab
9 жыл бұрын
huckleberry582 Thanks mate ;-)
@huckleberry582
9 жыл бұрын
+GreatScott! I can see this becoming useful in some way on an arduino robot. Keep up the good work.
The Clapper!
From the socket you used, I assume you use 220V AC in your country but the relay you used was a 120v one
Thank you, I tried doing my own sound activated project (Didn't care too much about double clap), but the problem I had was the microphone being very insensitive. Some times I could get it to register with what I considered a tiny noise some times I would do a loud noise and it would barely register. I am hoping using the amp that you suggested will help.
Use analogReference() function - 1.1 V / 1024 = 0.001V
wow extremely fantastic very very very nice
next episode of strange addictions: man addicted to clapping
@shirin4912
5 жыл бұрын
Magnus Hegdahl Lmao
I have build one year ago an Roboter with this clapping function, it works. 😂
5:51 Nope nope nope! You've got 230V coming into that stripboard and the trace right next to it is the 5V side. I'd mount the relay off the board. Also, I bet you could get away without the amp. Your quoted 5 mV figure is when the ADC uses 5V as the reference. I think those can use a smaller voltage for the ADC full-scale, giving a smaller step size. Even with 5 mV and 40 steps, software should be able to clean that up sufficiently. More coding and trial-and-error though.
"Hey Google! Turn on X light." :)
Clap on, clap off, the Clapper!
Geil! Werd ich mir als nächstes Projekt mal vornehmen es gibt keine coolere Methode sein Licht anzuschalten als durch Klatschen! :D