To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2458
2457  |  2459
Subject: 
Re: 3 sensors = 8 inputs?!
Newsgroups: 
lugnet.robotics
Date: 
Thu, 7 Jan 1999 06:51:51 GMT
Reply-To: 
brett@ANTISPAMsr.hp.com
Viewed: 
1237 times
  
Mark Crosbie wrote:
Now, the tricky part is how to build a Lego creation so that
different physical sensors (bumpers, touch switches etc) get
mapped to one of these 8 logical sensor values.

Couldn't you do this by simple wire connections?

Let's pretend you had a LOT of the motor/sensor connector wires:

Sensor #1 is connected to input port #1 hit = 1 0 0
Sensor #2 is connected to input port #2 hit = 0 1 0
Sensor #3 is connected to input ports #1, 2 hit = 1 1 0
...
Sensor #7 is connected to input ports #1, 2, 3 hit = 1 1 1

This give you seven sensors (0 0 0 = no hits) with a unique value for
any sensor as long as only ONE sensor is hit at a time.  For example, it
the above if sensors #1 and #2 were hit it would LOOK like sensor #3.
But then I think the various MUX ideas have the same limitation.  You
get around this by placing your sensors such that #3 can never be hit at
the same time as #1 or #2 (for example on the front and back; if you're
moving backwards it HAS to be #3 because it's mounted on the back).

Not the MUX designs I've seen can get you up to 4 sensors PER input
port.  But this design is simpler to implement and code for.  It's a
NEAT idea that has great potential for some applications.

--
                                                        Brett Carver
                                                        brett@sr.hp.com
                                                        (707) 577-4344



Message has 2 Replies:
  Re: 3 sensors = 8 inputs?!
 
(...) The way the inputs work does not allow hooking something up to two inputs at the same time while still keeping independent use of the inputs. You would need to add at least diodes. I assume you want a pure LEGO solution, but LEGO doesn't have (...) (26 years ago, 7-Jan-99, to lugnet.robotics)
  Re: 3 sensors = 8 inputs?!
 
In article <36945987.18CE@sr.hp.com>, Brett Carver <lugnet.robotics@lugnet.com> writes (...) Do that and you have shorted all three sensors together! (26 years ago, 7-Jan-99, to lugnet.robotics)

Message is in Reply To:
  3 sensors = 8 inputs?!
 
To further the thread on the limitations of having only 3 input sensors: One of the first things that occurred to me was that three inputs gives you 3 bits of input, which means up to 8 sensors. Depending on which sensors trigger, you convert that (...) (26 years ago, 7-Jan-99, to lugnet.robotics)

11 Messages in This Thread:






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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
6 hours ago
Custom Search

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