To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 1381
1380  |  1382
Subject: 
Re: IR sensors
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 5 Feb 1997 07:02:30 GMT
Original-From: 
Richard Vannoy <RICHARDV@ABAC.antispamCOM>
Reply-To: 
richardv@abac.comSPAMLESS
Viewed: 
1518 times
  
           i was wondering if it's possible to drive more than one
infrared LED (emitter) through the handy board and IC. Has anyone tried
doing before???

Sure.  We put "Front" on digital(14) and "Right" on digital(15).  And
you can have as many as you want that don't interfere with each other.

We did something like...

    contact = digital(14) * 2 + digital(15)

to get both sensor results into an integer, then..

    if(contact!=0)      // Close to something!!!
    {
        if(contact==3)    ...both have contact
        if(contact==2)       just the front one has contact,

and write the code for the four possibilities, turn away from the wall,
find the wall, etc. based on what you want it to do.

We also are running short on digital ports, so we're setting up a
resistor thingy from the literature to allow multiple IR sensors to
generate one analog signal into an analog port.

        i want to model the wall-following behavior in my car, by using
emitter-detector pairs on both sides of the car
        comments, help, suggestions.....



Message is in Reply To:
  re:IR sensors
 
Hi everyone, i was wondering if it's possible to drive more than one infrared LED (emitter) through the handy board and IC. Has anyone tried doing before??? i want to model the wall-following behavior in my car, by using emitter-detector pairs on (...) (28 years ago, 3-Feb-97, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR