Subject:
|
Re: Bump switches and "aggression"
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 16 Dec 2003 06:34:37 GMT
|
Original-From:
|
chris <cbrenizer@socket.STOPSPAMnet>
|
Viewed:
|
2455 times
|
| |
| |
there's probably a way to use a light sensor to sense four different colored
bricks. one for each direction.
= sensor
red
ylw
blue
wht /
---\ /----
different heights of 'wedges' would lift a column, as a bumper is either
slid in, or the bumper pushed down and pivoting up.
----- Original Message -----
From: "Gordon Elliott" <gelliott@csisc.cc>
To: <lego-robotics@crynwr.com>
Sent: Monday, December 15, 2003 8:44 PM
Subject: Re: Bump switches and "aggression"
By the way, there are 5 states, all switches off, and each of the 4
switches. (That does not count the combinations if more than one switch were
triggered at the same time). Thus a binary solution would take three inputs,
just one less than the number of switches. One could provide OR function
with diodes, but the analog solution is superior with only one input if an
a/d inpuit is available. That solution can decode all 16 states of 4
switches.
To do with diodes and 3 inputs, label switches A, B, C, D, and inputs I1,
I2, I3. With some sort of pullup (is one native?) on I1, I2, I3, then:
A
|---|<--- I3
B
|---|<---I1
|---|<---I3
C
|---|<---I2
|---|<---I3
D
|---|<---I1
|---|<---I2
|---|<---I3
I3 obviously triggers sensing some input, then I1 and I2 decode
combinations.
Given use of 3 inputs, and say only one more diode, one could have 6
switches if that did any good:
A
|---|<--- I1
B
|---|<---I1
|---|<---I2
C
|---|<---I2
D
|---|<---I2
|---|<---I3
E
|---|<---I3
F
|---|<---I3
|---|<---I1
Though using 3 inputs, this scheme solves certain problems with triggering
two nearby switches, say that A through F were in a circle so F was back
next to A. Then a trigger of any pair of neighbors only gives an off by one
error.
-- Gordon
----- Original Message -----
From: "Gordon Elliott" <gelliott@csisc.cc>
To: <lego-robotics@crynwr.com>
Sent: Monday, December 15, 2003 7:38 PM
Subject: Re: Bump switches and "aggression"
> There was discussion of one company that made switches with analog values
> that could be mixed, but they were apparently either expensive or hard to
> find (at least there was some difficulty).
>
> But simple resistor network, say a load resistor to ground and each switch
> with a different series resistor from positive reference voltage, could feed
> an a/d channel. It sounds like what was packaged in that particular system,
> but could be done with inexpensive resistors and external wiring. Then
> analog voltage ranges determine the binary combinations of the 4 switches.
> Does this make any sense? (Of course one could use 4 separate inputs, but
> that might tax available resources).
>
> -- Gordon
>
> ----- Original Message -----
> From: "Øyvind Steinnes" <phoenix@online.no>
> To: <lego-robotics@crynwr.com>
> Sent: Monday, December 15, 2003 2:24 PM
> Subject: Re: Bump switches and "aggression"
>
>
> >
> > "Rob Limbaugh" <lego-robotics@crynwr.com> wrote in message
> > news:004201c3c2be$0a5c6cf0$640ba8c0@markera...
> > > Personally, I find multiple bump sensors the way to go. In software, I
> > can
> > > make their significance be whatever I want. I also think that dice-roll
> > > decision making would decrease the chance surviving aggression.
> > >
> > > - Rob
> >
> > How can I attach lets say 4 switches so the make a binary code, (4switches
> > should need only two ports). I want to have one switch on each side of the
> > bot and in front and back.
> >
> >
> > Øyvind Steinnes
> > http://www.brickshelf.com/cgi-bin/gallery.cgi?m=Phoenix
>
>
>
>
|
|
Message is in Reply To:
| | Re: Bump switches and "aggression"
|
| By the way, there are 5 states, all switches off, and each of the 4 switches. (That does not count the combinations if more than one switch were triggered at the same time). Thus a binary solution would take three inputs, just one less than the (...) (21 years ago, 16-Dec-03, to lugnet.robotics)
|
60 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|