• 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

This Article Has Been Shared 391 Times!

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

  • Arduino Programming Language Tutorial

    Arduino Programming Language Tutorial Explains Where From That “Language” Originated and Why We Talk About Writing Codes in C++, C Language.

  • Arduino UNO Prototype Shield Tutorial

    In Arduino UNO Prototype Shield Tutorial We Have Talked How We Can Use to Convert a Project Semi-Permanent With Shield, Components & Solder.

  • How to Increase the Number of Digital Pins in Arduino (Port Extender)

    13+6 Pins Often a Limitation of Arduino in Projects Where We Need Many Pins. Here is How to Increase the Number of Digital Pins in Arduino.

  • Connecting Arduino With M029 JoyStick : Getting Started

    Here is a Getting Started Guide Around Connecting Arduino With M029 JoyStick and Testing With Basic Code. It is a useful thing for robotics.

  • Arduino Temperature & Humidity Sensor DHT 11 With LCD 1602A

    Create a Arduino Temperature & Humidity Sensor DHT 11 With LCD 1602A Following Few Steps. Circuit Diagram, Code and Helpful Step by Step Guide For Troubleshooting.

Additionally, 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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Arduino IR Obstacle Sensor Buzzer With LED," in The Customize Windows, April 23, 2018, February 1, 2023, https://thecustomizewindows.com/2018/04/arduino-ir-obstacle-sensor-buzzer-with-led/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT