Activate Buzzer and LED using LDR and Arduino

  Рет қаралды 320,538

Maker 101

Maker 101

Күн бұрын

Пікірлер: 121
@maker101io
@maker101io 3 жыл бұрын
Source Code: create.arduino.cc/editor/mertarduinotech/b5878d8a-2629-4414-b841-1b82bf4ea56e/preview Recommended Items: Use Your Muscles in Project - amzn.to/3wdL45C​ 37 Sensor & Module Packages - amzn.to/3m66WeQ​ Try this Robot Arm - amzn.to/3fq8DCl​ Best Resin 3D Printer - amzn.to/39tY8KB​ Arduino Compatible Kits - bit.ly/2J2AFF7​ Banggood Spring Sale - bit.ly/3slMbOn
@lostisland26
@lostisland26 7 жыл бұрын
Thanks a lot for these wonderful tutorials. Me and my 12 year son are following your tutorials religiously and we are successfully able to make a buzzer led. Thanks. Keep posting new projects :)
@Wffgcdewffkdhrhdb
@Wffgcdewffkdhrhdb 2 жыл бұрын
serialPrint ( Religiously || Regularly) Syntx error // 🤣🤣
@OmerYelin
@OmerYelin 4 жыл бұрын
The code: //set pin numbers const int ledPin = 13; const int buzzerPin = 12; const int ldrPin = 0; void setup() { Serial.begin(9600); pinMode (ledPin,OUTPUT); pinMode (buzzerPin,OUTPUT); pinMode (ldrPin,INPUT); } void loop() { int ldrStatus = analogRead(ldrPin); //read the state of the LDR value if (ldrStatus >= 400) { tone(buzzerPin,100); digitalWrite(ledPin,HIGH); delay(100); noTone(buzzerPin); digitalWrite(ledPin,LOW); delay(100); Serial.println("----------- ALARM ACTIVATED -------------"); } else { noTone(buzzerPin); digitalWrite(ledPin,LOW); Serial.println("ALARM DEACTIVATD"); } }
@streetwolfsumeet9392
@streetwolfsumeet9392 7 жыл бұрын
your tutorials are very simple and easy to perform.... the method of making videos is excellent.. I have tried many of them and really enjoyed doing them... Thank you..! hoping to see much ahead
@sivaforu2004
@sivaforu2004 4 ай бұрын
Hi, Good One but I need to have same setup but with timer, so that once the timer ends the buzzer is on and LED starts blinking, one person can reset the timer once again. This I wanted to do for battery charging say after 3 hrs buzzer starts and LED blinking to indicate the charging is complete! Thanks for the idea!
@Time_pass9900
@Time_pass9900 Жыл бұрын
How to give supply to the total setup please reply me.....
@buithanhtam5324
@buithanhtam5324 Жыл бұрын
Nice, thanks for being my asignment
@ak_sanjaysaravannan6242
@ak_sanjaysaravannan6242 4 жыл бұрын
TQ Mert Arduino for this video it was so helpful to my school project
@elkapublico2884
@elkapublico2884 5 жыл бұрын
My LED is not blinking, the buzzer is not that loud. And you did not show what the second window you used. But thank you for the video. At least I have some new ideas with the codes.
@ishankgoel229
@ishankgoel229 7 жыл бұрын
hmm...I like it but sometimes the LDR does not work properly i.e it blinks even if light is not there.Can u add a function for it before the loop and after the loop.Plz do if u can because it will improve the LDR sensor.
@mahdeenafis6937
@mahdeenafis6937 6 жыл бұрын
same problem here
@rese6780
@rese6780 3 жыл бұрын
Same
@shaheenbarcha9193
@shaheenbarcha9193 7 жыл бұрын
Best Channel ever.. 10/10
@romeopineda567
@romeopineda567 3 жыл бұрын
Excellent presentation
@Stephen_10111
@Stephen_10111 7 ай бұрын
Thanks it worked
@electrox3019
@electrox3019 3 жыл бұрын
Nice work bro
@achraf3767
@achraf3767 2 жыл бұрын
il fonctionne bien mais j'aurais un problème que led est s'allumer mais j'étends pas le son
@lokstnater1224
@lokstnater1224 2 жыл бұрын
I have a problem where the code just says ALARM DEACTIVATED and no matter what I do it just doesn't work
@danafallaha1086
@danafallaha1086 3 жыл бұрын
hello please can you give information about how can make the same of this project but with birthday music
@ShahidHussain-yw3dd
@ShahidHussain-yw3dd 2 жыл бұрын
Same ye hi sound ka buzzer chahiye kha milega
@royalhyeken6566
@royalhyeken6566 5 жыл бұрын
How to make a timer buzzer , example when you using a blender, after the blender done at some timer we set , the buzzer rings. Pls help me by posting another tutorial video
@Noah7s-f6s
@Noah7s-f6s 7 жыл бұрын
Thank you so much!!! Your videos are the best for learning new stuff with the arduino!
@markvolk
@markvolk 3 жыл бұрын
Thank you a loot. It was helpfull!!
@vishwajeetkumar6902
@vishwajeetkumar6902 3 жыл бұрын
Mera kyu nahi badia se work kar raha hai....photoresistor se jab 10k resistor remove karte hai to alarm activate hota hai..otherwise always deactivate rahta hai
@Godsake2022
@Godsake2022 11 ай бұрын
Tutorial how to occupied and banned eat food from fridge although is not mine fridge and food. Thank you, everybody laughed after this prank. Thanks a lot! From me subscribe!
@kvlpnd
@kvlpnd 8 жыл бұрын
What is the function of 10K resistor here? Also, please zoom in while programming since for mobile users it can be hard to read the code. Thanks.
@kvlpnd
@kvlpnd 8 жыл бұрын
+Mert Arduino Tutorial & Projects Thanks for reply with understanding. Also, do not consider my suggestion as a warning. I was just suggesting that you can zoom in a particular part to enlarge it a bit. Thanks.
@Aspect-ef1oh
@Aspect-ef1oh 3 жыл бұрын
great video
@lebronirving1392
@lebronirving1392 8 жыл бұрын
It works! Thank you so much! I love your videos, and I subscribed! Thanks!!!
@ayanpramanik1730
@ayanpramanik1730 5 жыл бұрын
Led is not working... No need to connect led positive terminal with 220 ohm register,if we do that led is not blinking... Remove the 220 ohm register and directly connect the led positive terminal with pin 13, now led is blinking...
@munnasengar35
@munnasengar35 4 жыл бұрын
Nice video sir
@F_MuhdikhwanMohdzahferee
@F_MuhdikhwanMohdzahferee Жыл бұрын
Greatt👍🏻👍🏻👍🏻
@michael80126
@michael80126 6 жыл бұрын
Thank you so much! I build myself a Lighting-Trigger for my DSLR out of this. :-)
@razanahmad5623
@razanahmad5623 2 жыл бұрын
How to connect this to an app?
@RayllALT
@RayllALT 8 жыл бұрын
WHAT serial.begin(9600); does?
@RayllALT
@RayllALT 8 жыл бұрын
why this line is in your code, can you please tell, will be helpful for me, thanks. :)
@RayllALT
@RayllALT 8 жыл бұрын
ah, so 3600 is the refresh rate of serial monitor or something like that, am I right?
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
Rayll it sets the baudrate of your serial port for serial communication, at how many bits per second data is transfered (if i can remember correctly)
@giliardg.deoliveira5568
@giliardg.deoliveira5568 7 жыл бұрын
If you wanna learn how Making Music with Arduino, leave a reply!If you wanna learn how Making Music with Arduino, leave a reply!
@parzaech2327
@parzaech2327 7 жыл бұрын
Giliard G. de Oliveira yes I want
@elitedino484
@elitedino484 6 жыл бұрын
I do
@anikettricks9858
@anikettricks9858 4 жыл бұрын
Best video , very very useful video 👌👌
@hamzahnasirudin8036
@hamzahnasirudin8036 8 жыл бұрын
keep uploading very nice tutorial ive ever look
@berkayerenbulut9509
@berkayerenbulut9509 7 жыл бұрын
abi bu sorunu veriyo yüklerken Arduino:1.8.2 (Windows 7), Kart:"Arduino Nano, ATmega328" Çalışmanız programın 2894 bayt (9 %) saklama alanını kullandı. Maksimum 30720 bayt. Global değişkenler belleğin 265 byte kadarını (12%) kullanıyor. Yerel değişkenler için 1783 byte yer kalıyor. En fazla 2048 byte kullanılabilir. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20 Taslak yüklenirken bir hata oluştu This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@akashkhare507
@akashkhare507 3 жыл бұрын
Keep doing it
@alialkassam3786
@alialkassam3786 5 жыл бұрын
My code won't work without Serial.printIn what do i do?
@gamingjedi52
@gamingjedi52 3 жыл бұрын
write Serial.println
@shaffayqazi1404
@shaffayqazi1404 7 жыл бұрын
which buzzer active or passive
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
Abdul Shaffay he used active buzzer in this video
@damonspamaccount5244
@damonspamaccount5244 5 жыл бұрын
Arduino: 1.8.8 (Windows 8.1), Board: "Arduino/Genuino Uno" Sketch uses 2932 bytes (9%) of program storage space. Maximum is 32256 bytes. Global variables use 263 bytes (12%) of dynamic memory, leaving 1785 bytes for local variables. Maximum is 2048 bytes. An error occurred while uploading the sketch This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@MrBomer213
@MrBomer213 4 жыл бұрын
Hello Mert Arduino, Thank you so much for the video. I was wondering if you can please share the Schematic of the project ??
@carloscastellanosgonzalez8252
@carloscastellanosgonzalez8252 5 жыл бұрын
Thankyou for the information !!!
@1981heverton
@1981heverton 5 жыл бұрын
precisa de quatros leds de cores diferentes ao acionar o botão acende um e o buzzer apita depois apaga e assim com os demais pode me ajudar
@a.denizdeniz4553
@a.denizdeniz4553 7 жыл бұрын
gerçekten çok işime yaradı teşekkür ederim
@aheikal1715
@aheikal1715 6 жыл бұрын
Thanks now i can solve my home work adruino on school
@curiosityseesomethinginter9116
@curiosityseesomethinginter9116 6 жыл бұрын
sir please; please; would you tell me from where i can learn Arduino programming language from "Basic to Advance" or recommend some books for it
@fendiy3948
@fendiy3948 6 жыл бұрын
How many ohms does LDR have?
@meditationvideo5922
@meditationvideo5922 2 жыл бұрын
Please help me this is not working
@mirandarichardson2949
@mirandarichardson2949 7 жыл бұрын
Do you know how to create this code in scratch S4A?
@kavishmaini3876
@kavishmaini3876 7 жыл бұрын
good job
@abhaypal6502
@abhaypal6502 7 жыл бұрын
Superb
@allenwalker1727
@allenwalker1727 4 жыл бұрын
Can I please get a block diagram of this project? I really need it.
@yusufkenan9683
@yusufkenan9683 4 жыл бұрын
Koda artık ulaşamayıyorum
@kaandagc4682
@kaandagc4682 6 жыл бұрын
please look my problem: 'tone' was not declared in this scope
@Joe-xq6on
@Joe-xq6on 6 жыл бұрын
try putting "tone"
@leoying8131
@leoying8131 5 жыл бұрын
you need to capitalize the "t"
@techquestlabs
@techquestlabs 6 жыл бұрын
Which version of arduino ide do u use
@anran5966
@anran5966 7 жыл бұрын
Hi, what battery do you use? I tried 9v battery but it doesnt work..
@berat761
@berat761 3 жыл бұрын
Teşekkürler Mert Çok yardımcı oldu (ciddiyim)
@tonyinfo1016
@tonyinfo1016 7 жыл бұрын
supère la vidéo !
@Gen_Kael
@Gen_Kael 4 жыл бұрын
Aaaand @4:30 is where I got left in the dust.
@soteropolitano3413
@soteropolitano3413 3 жыл бұрын
Muito grato🤘🏽
@tcnhd5767
@tcnhd5767 6 жыл бұрын
What is the use of this please tell fast give reply to my answer anybody can tell
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
Tcn Narayana what the hell u mean what is the use of it? can be used anywhere u want damnit
@archishap2754
@archishap2754 6 жыл бұрын
can you please give the code as a download ??
@codingvio7383
@codingvio7383 4 жыл бұрын
Why not just copy it down? How lazy can you get.
@gamingjedi52
@gamingjedi52 3 жыл бұрын
@@codingvio7383 it is not about laziness my friend, it just takes a lot of time to write the code
@theoriginal1155
@theoriginal1155 5 жыл бұрын
can you try using a breadboard mini? thanks i need help on my school project!!
@iqbalhadi8800
@iqbalhadi8800 5 жыл бұрын
There's no different, it's work *I'm trying this with mini breadboard, trust me 😂
@alexflorea43
@alexflorea43 7 жыл бұрын
Mert can you make a video on how to use the serial monitor
@AliceMerciadri
@AliceMerciadri 6 жыл бұрын
I LOVE YOU.
@herhangibiremir
@herhangibiremir 5 жыл бұрын
abi esp8266 da olurmu
@YohnPaul
@YohnPaul 7 жыл бұрын
i tried and the buzzer rings but the led does not glow....what might have gone wrong :-( plz hlp and am using an arduino mega
@YohnPaul
@YohnPaul 7 жыл бұрын
The led is brand new...jus recieved the kit recently...maybe the code us to be modified...thanks
@ipodmaurits
@ipodmaurits 7 жыл бұрын
Yohn Paul check if your led too is connected the good way. don't forget the resistor too. You can test your leds with a simple blink sketch. Make sure too that the led position in your arduino code is the same as on your board
@YohnPaul
@YohnPaul 7 жыл бұрын
Maurits Muis thanks.....i configured that there was an error on my connections,all works fine now
@tamarwebmail5433
@tamarwebmail5433 7 жыл бұрын
I wrote noTone (buzzerPin) but it doesnt work. I use the arduino duemilanova..
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
Tamar Webmail make sure the letters are of same size
@GamingMr101
@GamingMr101 6 жыл бұрын
Hi sir. Why does the ldr does not work?
@codingtimes3199
@codingtimes3199 8 жыл бұрын
OK but you haven't thé code un your PC? on the vidéo thé write ils vert small. you van make the photo ans sens me by facebook.
@CreativeDesk
@CreativeDesk 7 жыл бұрын
Music name?
@LEON-zm5fc
@LEON-zm5fc 4 жыл бұрын
my name is kaknut
@rafi6170
@rafi6170 5 жыл бұрын
is tone need a library from manage library
@Vaiinz
@Vaiinz 7 жыл бұрын
Please make a ardunio tutorial video about Buzzer with Sound sensor
@sunnysahu8372
@sunnysahu8372 6 жыл бұрын
Mujhe aise he chote project ke bare me jaana hai aur bana mai elctronic me repairng sikh raha hu
@aritroshome60
@aritroshome60 7 жыл бұрын
Superb but......................give the code as a download link
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
Aritro Shome why ghad damnit write yo own, try to write without seeing his code... dass gonna improve vo programming skills imho
@yunuscanozkan5357
@yunuscanozkan5357 5 жыл бұрын
kanka türkçe video at
@codingtimes3199
@codingtimes3199 8 жыл бұрын
Please van you vive me your arduino code d'or this projet
@sisirakumara2053
@sisirakumara2053 8 жыл бұрын
Mert Arduino Tutorial & Projects
@elitedino484
@elitedino484 6 жыл бұрын
Mert Arduino and Tech it doesn't work for me
@sunitachauhan2471
@sunitachauhan2471 6 жыл бұрын
I want all the products in 2 days can you supply me
@hamzahzroglu3121
@hamzahzroglu3121 6 жыл бұрын
insan kodu da bırakır ama
@faisaltaher851
@faisaltaher851 7 жыл бұрын
I cannot get it to stop buzzing even after its dark
@shutdahellup69420
@shutdahellup69420 6 жыл бұрын
faisal taher lol check your if statement if its correct or try to increase the value from 400 to 600 maybe?
@oswaldopalafox1582
@oswaldopalafox1582 Жыл бұрын
😮
@beenavaishy2516
@beenavaishy2516 6 жыл бұрын
Fake video. I have tried it many times but it doesn't work. Please let me know that where I am wrong.
@lobstah996
@lobstah996 6 жыл бұрын
''ledPin'' was not declared at this scope
@Joe-xq6on
@Joe-xq6on 6 жыл бұрын
const int ledPin = 13; const int buzzerPin = 12; const int ldrPin = A0; void setup () { Serial.begin(9600); pinMode(ledPin, OUTPUT); pinMode(buzzerPin, OUTPUT); pinMode(ldrPin, INPUT); } void loop() { int ldrStatus = analogRead(ldrPin); if (ldrStatus >= 400) { tone(buzzerPin, 100); digitalWrite(ledPin, HIGH); delay(100); noTone(buzzerPin); digitalWrite(ledPin, LOW); delay(100); Serial.println("----------- ALARM ACTIVATED -----------"); } else { noTone(buzzerPin); digitalWrite(ledPin, LOW); Serial.println("ALARM DEACTIVATED"); } }
@Itsyaboy_Jeff
@Itsyaboy_Jeff 4 жыл бұрын
epic
@alonhermoni1291
@alonhermoni1291 4 жыл бұрын
anyone else getting expected ' ' or ' ' before 'void' ?
@janindubahagya3413
@janindubahagya3413 4 жыл бұрын
superm$$$$
@karacaveli4811
@karacaveli4811 7 жыл бұрын
Abi helal olsun
@danujayasaputro7861
@danujayasaputro7861 4 жыл бұрын
it's not working, why?
@nepnaeemselectronicspakist1824
@nepnaeemselectronicspakist1824 2 жыл бұрын
Whst is this nonsense
Push Button and LED control with the Arduino
4:38
Maker 101
Рет қаралды 334 М.
Интересно, какой он был в молодости
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 3,5 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 103 МЛН
Simple buzzer circuit
6:25
Matt makes
Рет қаралды 50 М.
Multiple Servo Motor Control with Joystick and Arduino
5:36
Maker 101
Рет қаралды 1 МЛН
Arduino TFT LCD Touch Screen Tutorial
7:58
How To Mechatronics
Рет қаралды 1,6 МЛН
Buzzer with Arduino to Generate a Tone
8:31
BINARYUPDATES
Рет қаралды 187 М.
Arduino uno with LDR and LED, Buzzer Using Tinkercad
9:42
Learn Embedtronics
Рет қаралды 5 М.
Arduino Sound Sensor Control
3:25
Maker 101
Рет қаралды 389 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 616 М.
8x8x8 LED CUBE WITH ARDUINO UNO
6:46
HARRY LE
Рет қаралды 15 МЛН
DC Motor Control with an H-Bridge and Arduino (Lesson #17)
19:16
Science Buddies
Рет қаралды 97 М.
Интересно, какой он был в молодости
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 3,5 МЛН