• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Arduino IR Obstacle Sensor Buzzer With LED

By Abhishek Ghosh April 23, 2018 11:06 am Updated on April 23, 2018

Arduino IR Obstacle Sensor Buzzer With LED

Advertisement

When an opaque material will come closer to the sensor, the buzzer will make sound LED will light up. Here is a Complete Guide to Setup Arduino Regular IR Obstacle Sensor Buzzer With LED With Schematic, Code, Illustration and Video. Upon searching the web, I I found that there is no proper complete guide of this basic thing. In this guide, we will use Regular IR Obstacle Sensor, which cheap; not Sharp IR Sensor. You’ll see that our diagram shown is of Sharp IR Sensor, but actually connection is same and for Regular IR Obstacle Sensor. Itself this guide has little prouction usage. We can only use transistor, resistors, Regular IR Obstacle Sensor, Buzzer without Arduino like programmable microcontrollor do the job at more cheap rate. This guide’s value is in usage of Regular IR Obstacle Sensor as a conditional switch. Here, we are lighting the LED without program. But we can do the reverse – when something will come closer, the LED will be off. This video probably give idea what exactly we will do :

 

Arduino IR Obstacle Sensor Buzzer With LED : Circuit Diagram and Code

 

You need following parts for this project :

  1. Arduino UNO or any such board
  2. A NPN transistor like BC 548 or 547
  3. One 1 K Ohm resistor
  4. One 470 Ohm resistor
  5. Two LEDs or one LED, one diode
  6. Regular IR Obstacle Sensor
  7. Breadboard
  8. Jumpers
  9. Craziness

This is kind of infographics with circuit diagram and photo :

Advertisement

---

Arduino-IR-Obstacle-Sensor-Buzzer-With-LED

Here is the code :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
int analogInPin = A5;
 
int out =13;
int sensorValue = 0; // value read from the serial
 
 
void setup() {
  Serial.begin(9600);
  pinMode(out, OUTPUT);
}
 
void loop() {
  // read the analog in value:
  sensorValue = analogRead(analogInPin);
 
 
  Serial.print("sensor = " );
  Serial.println(sensorValue);
 
  delay(200);
  
  if(sensorValue>700)
  {
    digitalWrite(out,1);
    delay(100);
  }
  else
  {
    digitalWrite(out,0);
  }
  
}

If you open serial monitor of Arduino IDE, you’ll get values when something is present closer to it or not present. You’ll notice that I have written if(sensorValue>700), that 700 is near maximum value I read on serial monitor. It may be different for you and you need to adjust the value. Also you may adjust delay(100) value for desired effect.

Tagged With arduino sharp ir sensor and Led code , infrared and buzzer arduino , IR LEDs Buzzer , ir with buzzer with arduino code , ir with buzzer with arduino , arduino ir counting objects buzzer , arduino coding sensor buzzer 2 leds , arduino code for ir sensor with led on , sharp ir sensor code with atmega 32 , ardiuno and ir sensor using buzzer
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Arduino IR Obstacle Sensor Buzzer With LED

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Arduino : IR Obstacle Detection Sensor For Dimming LED (Stop Event Facing Obstacle)

    Here is Arduino IR Obstacle Detection Sensor For Dimming LED to Stop Event Facing an Obstacle. Normally, We Use IR Obstacle Sensor to Initialize an Event, Like Lighting Up LED. We Can Do the Reverse.

  • Arduino With DHT 11 Sensor and Arduino Online IDE : Basic IoT

    Arduino With DHT 11 Sensor and Arduino Online IDE is Example of Basic IoT Which Needs No Special Hardware But Arduino, DHT11, Internet Connection & Web Browser.

  • Arduino Temperature Humidity Sensor : New DHT11, DHT21, DHT22 Test Code

    Here is New Test Codes For Arduino Temperature Humidity Sensor DHT11, DHT21, DHT22 Test Code as Hardware (Not Shields). 2 Libraries Needed.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy