element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project14
  • Challenges & Projects
  • More
Project14
Blog Building an infrared obstacle detection[UID=4f18]
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Hesam.M
  • Date Created: 27 Apr 2019 7:09 AM Date Created
  • Views 1516 views
  • Likes 5 likes
  • Comments 3 comments
  • infrared module
  • infrared_sensor
  • infrared detector
  • infrared receivers
Related
Recommended

Building an infrared obstacle detection[UID=4f18]

Hesam.M
Hesam.M
27 Apr 2019

An obstacle detection unit is an essential part of a variety of projects, such as robotics and security applications. The infrared sensors are widely used for these types of applications. The main drawback of some circuit designs is that the detection units are sensitive to the outside lights and react unstable or noisy.

In this project, we selected a proper IR receiving component and designed the circuit in a way to act as stable as possible. Also, you can adjust the sensitivity of the sensor to detect the obstacles located near or far from the sensor.

You can examine the schematic diagram in the figure-1. The famous 555 chip is used to produce a 38KHz square wave. Frequency of the wave can be adjusted by turning the R5 potentiometer. The receiver side uses a TSOP1738 (HS0038) IR receiver module. It typically reacts to the 38KHz IR pulse and activates its output.

 

image

Figure-1, Schematic diagram of the IR obstacle detector

 

 

According to the TSOP1738 datasheet: “The TSOP17XX– series are miniaturized receivers for infrared remote control systems. PIN diode and preamplifier are assembled on lead frame, the epoxy package is designed as IR filter. The demodulated output signal can directly be decoded by a microprocessor. TSOP17XX is the standard IR remote control receiver series, supporting all major transmission codes.”

So these features, especially its embedded IR filter, make it suitable for our application. The figure-2 shows the designed PCB for the circuit. The PCB board mostly designed by SMD components which only take a small 3.2cm*1.8cm board size.

 

image

Figure-2, PCB board design of the IR obstacle detection circuit

 

As you can see on the PCB silkscreen, you must install an isolation barrier between the IR diode and the receiver.  The two components are installed next to each other, so you have to make sure that the receiver only reacts to the “front-reflected” IR light. If you could not find something to put between the sensors, just cover the 5mm IR diode with a black heat-shrink and allow the light to exit just from the front. The figure-3 demonstrate a 3D view of the assembled board. You can inspect the installed components.

 

image

Figure-3, A 3D view of the PCB board

 

The LED D3 shows the correct power connection and the LED D1 lights up when an obstacle is located in the sensor detection range.

The R1 potentiometer determines the transmission power which of course affects the detection range. The potentiometer R5 adjust the frequency. If you have an oscilloscope, you should be able to see a signal like the figure-4 at the U1, pin-3 (output). Adjust the R5 to read 38KHz. Actually, the R5 allows you to install a wide range of similar IR receivers that might operate with different frequencies.

 

image

Figure-4, The 38KHz signal at the 555’s pin-3

 

A 3-pins male pin-header connects the board to an external circuit. You must connect the +5V supply to the + terminal and the ground to the – terminal. The “S” output acts as an active low trigger. It means when the sensor detects an object, the “S” output will be connected to the ground (as the LED D3 lights up). The SMD package of the SMD components is 0805. The PDF schematic, Gerber and NC-Drill files can be downloaded from the reference.

 

Reference

https://www.pcbway.com/blog/technology/How_to_make_a_noise_free_infrared_obstacle_detection.html

  • Sign in to reply

Top Comments

  • Hesam.M
    Hesam.M over 6 years ago in reply to DAB +4
    Thank you. it depends on your potentiometer adjustment. it is around 35 to 40cm, because it is a reflected light, but if you use a back mirror for the Diode (something like a car's front-light) definitely…
  • DAB
    DAB over 6 years ago +1
    Interesting project. What kind of range do you get? DAB
  • dubbie
    dubbie over 6 years ago +1
    Looks lilke a good project. I have used a few IR systems and have been thinking about using one recently, so this was timely. I'm not that keen on component builds though so I might look for a completed…
  • dubbie
    dubbie over 6 years ago

    Looks lilke a good project. I have used a few IR systems and have been thinking about using one recently, so this was timely. I'm not that keen on component builds though so I might look for a completed module somewhere.

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Hesam.M
    Hesam.M over 6 years ago in reply to DAB

    Thank you. it depends on your potentiometer adjustment.

    it is around 35 to 40cm, because it is a reflected light, but if you use a back mirror for the Diode (something like a car's front-light) definitely it would be higher

    for some projects people need less range and not to be sensitive for distance, then adjustment is useful

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Interesting project.

     

    What kind of range do you get?

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube