ir problem

Discussion in 'General Electronics Chat' started by krishnanhemanth, Feb 5, 2010.

  1. krishnanhemanth

    Thread Starter New Member

    Feb 5, 2010
    3
    0
    hi

    I have a 6 v dc motor which is controlled by a pic microcontrollor.It has a h bridge to reverse the motor. The motor runs only after an object is detected by the IR TRANSCIEVER. the ir has a range of 4 inch ( 100 mm)

    The problem is that the IR keeps detecting even when no object is there in its detect range. it happens very randomly on an average of every 20 mins.

    What has gone wrong.
    please help and thanks in advance
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    For us to be able to assist you, we are going to need you to provide a clearly labeled schematic.

    You can attach one to a post in this thread using the "Manage Attachment" feature provided.

    hgmjr
     
  3. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    5,675
    899
    False hits can be a problem with IR systems. Here is a link to noise correction using the 12F/C series PIC.

    http://users.frii.com/dlc/robotics/projects/botproj.htm

    Scroll to the 12C508 IR Obstruction Detector. There are also useful links therein to the Dallas group.

    The best part of the project is the error correction concept. The code is for a 12C/F series PIC, but is easily adapted to other versions.

    I have been using a modified version to detect movement of a 3/16 inch wire that is about an inch or two from the detector. The application has been outdoors in bright sunlight and works flawlessly.

    John
     
  4. krishnanhemanth

    Thread Starter New Member

    Feb 5, 2010
    3
    0
    thankyou for your time and suggestions.

    i shall post the schematics.

    By the way, iam an mechanical guy . I know only the basics of electronics.

    could you please guide me if there is any site for learning pic programming


    thanks in advance

    krishnanhemanth
     
Loading...