Activate Buzzer and LED using LDR and Arduino
HTML-код
- Опубликовано: 14 ноя 2016
- Arduino basic tutorial for beginner. We will learn use buzzer, LDR and LED with the Arduino board. Activate Buzzer and LED using LDR and Arduino.
Required Hardware:
Arduino Board: amzn.to/2LZr6t4
Buzzer: amzn.to/3ud2PkF
LED: amzn.to/3qxSs8O
LDR: amzn.to/3unEzwm
220 and 10K ohm Resistor: amzn.to/3jXMJXs & amzn.to/3bj2HY9
Jumper Wires: amzn.to/3doetmT
Breadboard: amzn.to/3qxLxwm
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
Source Code: create.arduino.cc/editor/mert...
Social Media:
/ mertarduino
/ mertarduino - Наука
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
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 :)
serialPrint ( Religiously || Regularly)
Syntx error //
🤣🤣
Nice, thanks for being my asignment
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
Excellent presentation
Thank you so much! I build myself a Lighting-Trigger for my DSLR out of this. :-)
Nice work bro
Thanks it worked
Nice video sir
Thank you a loot. It was helpfull!!
Best Channel ever..
10/10
Superb
great video
TQ Mert Arduino for this video it was so helpful to my school project
keep uploading very nice tutorial ive ever look
Thankyou for the information !!!
Greatt👍🏻👍🏻👍🏻
Thank you so much!!! Your videos are the best for learning new stuff with the arduino!
It works! Thank you so much! I love your videos, and I subscribed! Thanks!!!
Muito grato🤘🏽
supère la vidéo !
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!
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
Best video , very very useful video 👌👌
Hello Mert Arduino, Thank you so much for the video.
I was wondering if you can please share the Schematic of the project ??
Keep doing it
hello
please can you give information about how can make the same of this project but with birthday music
How to give supply to the total setup please reply me.....
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.
Teşekkürler Mert Çok yardımcı oldu (ciddiyim)
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
Thanks now i can solve my home work adruino on school
gerçekten çok işime yaradı teşekkür ederim
Same ye hi sound ka buzzer chahiye kha milega
il fonctionne bien mais j'aurais un problème que led est s'allumer mais j'étends pas le son
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.
same problem here
Same
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.
+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.
I have a problem where the code just says ALARM DEACTIVATED and no matter what I do it just doesn't work
How to connect this to an app?
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
which buzzer active or passive
Abdul Shaffay he used active buzzer in this video
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
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.
WHAT serial.begin(9600); does?
why this line is in your code, can you please tell, will be helpful for me, thanks. :)
ah, so 3600 is the refresh rate of serial monitor or something like that, am I right?
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)
My code won't work without Serial.printIn what do i do?
write Serial.println
Mert can you make a video on how to use the serial monitor
Do you know how to create this code in scratch S4A?
good job
😮
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...
I LOVE YOU.
Can I please get a block diagram of this project? I really need it.
Please help me this is not working
can you try using a breadboard mini? thanks i need help on my school project!!
There's no different, it's work
*I'm trying this with mini breadboard, trust me 😂
Koda artık ulaşamayıyorum
Superb but......................give the code as a download link
Aritro Shome why ghad damnit write yo own, try to write without seeing his code... dass gonna improve vo programming skills imho
Mujhe aise he chote project ke bare me jaana hai aur bana mai elctronic me repairng sikh raha hu
If you wanna learn how Making Music with Arduino, leave a reply!If you wanna learn how Making Music with Arduino, leave a reply!
Giliard G. de Oliveira yes I want
I do
kanka türkçe video at
Please make a ardunio tutorial video about Buzzer with Sound sensor
can you please give the code as a download ??
Why not just copy it down? How lazy can you get.
@@codingvio7383 it is not about laziness my friend, it just takes a lot of time to write the code
What is the use of this please tell fast give reply to my answer anybody can tell
Tcn Narayana what the hell u mean what is the use of it?
can be used anywhere u want damnit
Hi, what battery do you use? I tried 9v battery but it doesnt work..
my name is kaknut
How many ohms does LDR have?
please look my problem:
'tone' was not declared in this scope
try putting "tone"
you need to capitalize the "t"
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.
Which version of arduino ide do u use
Bu proje yi yaparken 1 jumper kabloyu Şehit verdim :D
is tone need a library from manage library
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");
}
}
Hi sir. Why does the ldr does not work?
abi esp8266 da olurmu
I wrote noTone (buzzerPin) but it doesnt work. I use the arduino duemilanova..
Tamar Webmail make sure the letters are of same size
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
The led is brand new...jus recieved the kit recently...maybe the code us to be modified...thanks
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
Maurits Muis thanks.....i configured that there was an error on my connections,all works fine now
epic
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.
Music name?
superm$$$$
Abi helal olsun
I cannot get it to stop buzzing even after its dark
faisal taher lol check your if statement if its correct or try to increase the value from 400 to 600 maybe?
insan kodu da bırakır ama
Please van you vive me your arduino code d'or this projet
Mert Arduino Tutorial & Projects
Mert Arduino and Tech it doesn't work for me
I want all the products in 2 days can you supply me
anyone else getting expected ' ' or ' ' before 'void' ?
''ledPin'' was not declared at this scope
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");
}
}
Aaaand @4:30 is where I got left in the dust.
it's not working, why?
Fake video. I have tried it many times but it doesn't work. Please let me know that where I am wrong.
Whst is this nonsense