element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Alpha Rover - IR sensors and remote
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Attack of the Drones to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 12 Apr 2021 4:14 PM Date Created
  • Views 1816 views
  • Likes 5 likes
  • Comments 2 comments
  • arduino uno plus
  • alphabot
  • ir remote
  • ir sensor
  • attackofthedronesch
Related
Recommended

Alpha Rover - IR sensors and remote

ralphjy
ralphjy
12 Apr 2021

The IR obstacle detection modules on the AlphaBot were not working and the IR remote was also not working, so that was my project for the weekend.

 

One of the object detection modules wasn't functioning and the other one would function intermittently.  This is a simple circuit, so not much to check - ir diode, photo detector, pot, and comparator.

 

image

 

Turns out it was a silly assembly error on my part.  I neglected to use a nut as a spacer between the sensor board and the main board because the mounting screw I had used was too short.  There is a copper plane under the soldermask on the main board and without the spacer the through hole pins on the sensor poked through the mask and were intermittently shorting out.  I decided to use a short standoff instead of a spacer on the screw and that was an easy fix.

 

I still had another couple of issues with the sensor.  I noticed in testing that the sensor would turn on whenever there was bright sunlight because the photo detector is not shielded.  The quick fix for this was to print a shroud shown below.

imageimage

 

The final issue with the sensor is the range.  From what I've found on similar circuits - the range should be 2-30cm.  I can only get up to 15cm consistently with the pot adjustment.  That's not enough range to stop the robot if it is moving at full speed.  I'll need to look at this more.  I know that as an upgrade I'd like to use the 53L0X LIDAR sensors that would provide 1-2m max range.  Below is a demo of the sensor operation.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

The next problem was that the IR remote was not working with example program provided.  The remote unit is shown below.  It is using the NEC encoding protocol.

image

 

The receiver is mounted at the left rear.

image

 

A quick check indicated that the signal was being cleanly received - here is the output of the receiver.

image

 

The library being used for decoding the remote signals is the IRremote library.  It is now at Version 3.1.0.  The example program that I'm using was written at least 4 years ago and the library has gone through many upgrades since then - some major ones.  I walked the Versions backward and it is working using Version 1.0.0 image!!  I don't think I want to spend time figuring this out - I'm just going to use the old library until I have problems.

image

 

I decided to try running using the remote and also verifying the obstacle detection.

 

The video is pretty laughable, but it appears that the remote and obstacle sensors are working.  I need to work on my wheel speed matching issue next.  There is supposed to be feedback from an optical sensor, but I'm getting poor repeatability.  Maybe I'm expecting too much running open loop (i.e. without position feedback).  Seems like it should do a lot better.

 

I probably won't use the IR control - I'll switch to using some form of RF (WiFi, BLE, LoRa).

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply
Parents
  • dubbie
    dubbie over 4 years ago

    Ralph,

     

    A nice improvement. I have also experienced similar problems with the IR detector and implemented similar solutions. Great minds! Looking forward to future steps.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dubbie
    dubbie over 4 years ago

    Ralph,

     

    A nice improvement. I have also experienced similar problems with the IR detector and implemented similar solutions. Great minds! Looking forward to future steps.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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