Make it mech
  • How & Why
    • Arduino
    • Leapmotion with arduino
    • Sensors/Modules
    • Basic Electronics
    • NodeMcu
    • LabView
    • MATLAB
    • Industrial Automation
  • Projects
    • arduino projects
    • Brain Wave Decoder
    • Circuit Diagrams
    • Electrical
    • IEE Projects
  • Ideas
  • Robotics
  • LeapMotion
  • EEG
  • Mechatronics
  • Videos
No Result
View All Result
Make it mech
No Result
View All Result

RECOMMENDED Articles

Smart and fast arduino line following robot | Line follower using arduino

Smart and fast arduino line following robot | Line follower using arduino

4 years ago
How to use NodeMCU Getting started with NodeMcu the Basics

How to use NodeMCU Getting started with NodeMcu the Basics

4 years ago
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

10-Cool Arduino projects of all time | Arduino based Projects List

2 years ago
220v ac to 12v dc power supply

220v AC to 12v DC Power Supply Step by Step Project

2 years ago

BROWSE BY CATEGORIES

  • Arduino
  • arduino projects
  • Basic Electronics
  • Brain Wave Decoder
  • Breadboard Circuits
  • Circuit Diagrams
  • Circuits
  • EEG
  • Electrical
  • How & Why
  • Ideas
  • IEE Projects
  • Industrial Automation
  • Inspiration & Motivation
  • IOT
  • LabView
  • Leapmotion with arduino
  • MATLAB
  • Mechatronics
  • NodeMcu
  • Projects
  • Robotics
  • Self Learning
  • Sensors/Modules
  • Soft skills
  • Startups
  • Success

How to Use IR Sensor module with Arduino | How Arduino IR obstacle detector module works

How to Use IR Sensor module with Arduino | How Arduino IR obstacle detector module works
541
SHARES
1.5k
VIEWS

Arduino IR Sensor Module

Arduino IR Proximity Sensor:

Welcome Back to the Arduino learn by doing projects  Tutorial series. Our task for today is IR sensor Module the obstacle detecting module with Arduino. I found this module very helpful in many projects. I extremely recommend this if you are making Line following Robot.It has a quite good response and easy to interface. Instead of making circuits with IR led’s  use this module and easily interface with Arduino. I have made a very clean Robot using IR sensor module you can see in this post.


Arduino smart and fast line following Robot

The IR module is more useful because we can also use this module to measure distance. More importantly, it can be used as an encoder, flame sensor, line black and white color detection.
The working phenomenon of IR module is same as the other obstacle avoiding sensors of sending and receiving signals.
so let’s start with the Contents list:

Related posts

Mechatronics Projects for Final Year students with Industrial Aspect

Mechatronics Projects for Final Year students with Industrial Aspect

January 30, 2021
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

January 30, 2021

Contents:

  1. Introduction to IR  proximity module
  2. Working principle of IR module
  3. Components list
  4. Circuit Diagram of IR module with Arduino
  5. Arduino code

Introduction to IR proximity Sensor Module


The Infrared ( IR )  Sensor has infrared Transmitter and Receiver.It can be used in many ways.There are many applications of IR module. It has a quite good response as it gives 0 to 5v the range of 0 to 1024 so we can adjust our threshold in between this range.
The great and cool thing about this IR module is that it has a built-in comparator and a potentiometer for adjusting distance range.We can easily adjust our threshold range by varying potentiometer.
An indication Led is also placed over this module for obstacle indication.

Working Principle of IR Module


The working principle of IR module is same as in other modules the one transmitter and receiver. The Transmitter sends the infrared signal and receiver catches the bounce back signal.whenever an object come near to the sensor the signals reflected back to the receiver. The signal will not reflect on the black surface so it gives 0 instead of 1 this is very helpful in the case of the line following robot.
The Module has only one pin as an output.
ir sensor working

 


Components List


  1. 1x Arduino board UNO  (any Arduino board)
  2. 1x Arduino IR sensor Module
  3. Jumper wires
  4. Bread board

Circuit Diagram


The interfacing of IR module is quite easy.It has one output pin connect this pin to any Arduino digital pin.
  • Connect positive  VCC to Arduino 5v and negative Gnd to Arduino Gnd
  • Connect out pin to any Arduino digital pin / for analog output connect to Arduino analog A0-A5
The coding for IR module is just defining pinout configuration. Test your circuit and code then move towards implementing more circuits.
Here is the circuit diagram:
ir with arduino

 


Arduino Code


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const int IrSensor=2;
void setup() {
pinMode(13, OUTPUT);
 
pinMode(IrSensor,INPUT);
}
void loop() {
if(digitalRead(IrSensor)==HIGH)      //Check the sensor output
{
digitalWrite(13, HIGH);   // set the LED on
}
else
{
digitalWrite(13, LOW);
}
delay(100);
}

 

 

This is the simplest code whenever an object comes closer to the sensor the built in Led on Arduino board will blink.we will see some of the cool projects with IR modules in coming posts.
Get connected with us and Subscribe to our YouTube channel for video Tutorials.
Here is the Picture of my Line following Robot using IR modules.
Stay motivated and Happy.

 

Mak

Mak

Mechatronics Engineer - Entrepreneur - Solution Architect Love writing & Traveling - Being Average isn't a Choice Stay Happy - Live in Freedom & Always have Faith on Yourself...

Related Posts



Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts

Most Popular

  • 220v ac to 12v dc power supply

    220v AC to 12v DC Power Supply Step by Step Project

    687 shares
    Share 275 Tweet 172
  • How to use L293d Module motor shield with Arduino

    650 shares
    Share 260 Tweet 163
  • Mechatronics Projects for Final Year students with Industrial Aspect

    620 shares
    Share 248 Tweet 155
  • Circuit designing steps for EEG portable monitoring device

    615 shares
    Share 246 Tweet 154
  • EEG circuit | Schematic diagrams of brain wave project

    601 shares
    Share 240 Tweet 150

Related Posts

Mechatronics Projects for Final Year students with Industrial Aspect
Ideas

Mechatronics Projects for Final Year students with Industrial Aspect

January 30, 2021
Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas
Arduino

Top 10 Arduino Based Projects For Final Year Students | Arduino project ideas

January 30, 2021
ldr with arduino
Arduino

How to control (LDR) Light Dependent Resistor with Arduino | LDR Circuit

January 30, 2021
How to use L293d Module motor shield with Arduino
Arduino

How to use L293d Module motor shield with Arduino

January 30, 2021

Next Post
How to use L293d Module motor shield with Arduino

How to use L293d Module motor shield with Arduino

  • Home
  • Privacy Policy
  • About Us
  • Contact Us

© 2021 Make it mech - All Rights Reserved

No Result
View All Result
  • How & Why
    • Arduino
    • Leapmotion with arduino
    • Sensors/Modules
    • Basic Electronics
    • NodeMcu
    • LabView
    • MATLAB
    • Industrial Automation
  • Projects
    • arduino projects
    • Brain Wave Decoder
    • Circuit Diagrams
    • Electrical
    • IEE Projects
  • Ideas
  • Robotics
  • LeapMotion
  • EEG
  • Mechatronics
  • Videos

© 2021 Make it mech - All Rights Reserved

Go to mobile version