Популярное

ARDUINO TUTORIAL FOR BEGINNERS LESSON 10: CONTROLLING BUZZER BY PHOTORESISTOR

118 Просмотры
Размещено
#ArduinoUno #Photoresistor #ArduinoPhotoresistor #LDR #ArduinoLDR #BuzzerPhotoresistor

ARDUINO TUTORIAL FOR BEGINNERS LESSON 10: CONTROLLING BUZZER BY PHOTORESISTOR

In this lesson, we are going to learn how to increase and decrease buzzer sensitivity or the sound it produces using a photoresistor. This Arduino tutorial for beginners will let you learn the concept behind buzzer sound activation using photoresistors or also commonly known as light-dependent resistors (LDR)

Reference: https://www.makerlab-electronics.com/

Step by Step Tutorial: https://e-boombots.com

Learn about the Arduino Kit: https://youtu.be/S2Hd-TeijnU

My Collection of Boards and Sensors: https://youtu.be/sEn6LZP_mi0

ARDUINO TUTORIAL FOR BEGINNERS LESSON 9: DARK AND LIGHT ACTIVATED LEDs USING PHOTORESISTOR : https://youtu.be/OmnWxB3oEg4

Best IoT Project: https://youtu.be/lZsEdkC4A3g

I have recommended stores where you can buy the components:

https://e-boombots.com/
https://www.makerlab-electronics.com/
https://www.e-gizmo.net/oc/index.php

Lesson 10 Controlling Buzzer by Photoresistor

Introduction
Since you have learnt how to use a photoresistor, in this lesson, you will learn how to control a buzzer to make it beep in different frequencies by the photoresistor.

Compoment
- 1* Arduino Uno board
- 1 * USB data cable
- 1 * Photoresistor
- 1 * Buzzer (Active)
- 1 * Resistor (10KΩ)
- Several jumper wires
-1 * Breadboard

Experiment Principle

When you shine some light on the photoresistor, if the incident light gets stronger, the resistance of the photoresistor will decrease; if the incident light becomes weaker, the resistance will increase.

In this experiment, the output of the photoresistor is sent to pin A0 on the Arduino Uno board and then processed by the ADC on the board to output a digital signal. We use this digital signal as the parameter of the delay() function in the sketch to make the buzzer beep.

When the incident light is strong, the output value gets greater, thus the buzzer will beep slowly; when incident light is weak, the output value is smaller, thus the buzzer will beep sharply.

Experiment Procedures
Step 1: Build the circuit
Step 2: Program (Please refer to the example code)
Step 3: Compile the code
Step 4: Upload the sketch to the Arduino Uno board
Now, if you place the photoresistor in a dark environment, the buzzer will beep sharply; if you shine a flashlight on the photoresistor, the buzzer beeping will slow down.

Join this channel to get access to perks:
https://www.youtube.com/channel/UCEoNaDH6R_Iu8ee58-hsGxQ/join
Категория
Ардуино
Комментариев нет.