BUILD LASER LIGHT BARRIER DETECTION USING ARDUINO AND NODEMCU
Laser light barrier detection
- Introduction
- Hardware - Software
- Little more about tutorial
- Coding - Sketch
- Execution
INTRODUCTION
LITTLE MORE ABOUT TUTORIAL
- In this tutorial, it is shown how to build a laser light barrier detector. It will demonstrate and show that if anything comes in-between laser light sender and receiver it will turn on LED and Buzzer will turn on.
- This tutorial explains the basic use of laser module and photoresistor along with how to trigger on Buzzer and LED on a specific event.
HARDWARE
- NodeMCU
- Male-Female Jumper Wires
- BUZZER
- LED
- Laser Module
- Photo Resistor
- Resistor
SOFTWARE
- Arduino IDE
LITTLE MORE ABOUT TUTORIAL
- The sketch(code) written in C programming language
- Laser module emits the laser light
- The resistance of a photoresistor decreases with increase in incident light intensity.
- Place laser and photoresistor face towards each other.
- In this example we will continuously emit laser light towards photoresistor.
- The photoresistor will detect laser light and generates voltage output accordingly
- Read photoresistor input from analog pin
- When we place barrier in-between laser light and photoresistor, photoresistor will change it's resistance and provide input to attached pin
- By reading this analog input pin value we can identify that there is a barrier in-between.
- Once INPUT analog pin (A0) detect value of voltage unusual(in this case 1000) it will ring buzzer and trun on LED to demonstrate event.
SKETCH - CODE
Sketch |
EXECUTION - DEMO
Please check out the video link Demo - VideoThanks.
Comments
Post a Comment