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 / 6570
6569  |  6571
Subject: 
Use a RCX as a Sensor port AND a Motor Output!
Newsgroups: 
lugnet.robotics
Date: 
Thu, 26 Aug 1999 09:44:05 GMT
Reply-To: 
nospam-dcchen@pacbell.net-nospam{stopspammers}
Viewed: 
507 times
  
So, I was messing around w/ the RCX and hooked up a Micromotor to one of
my output ports and lo and behold....I could control the motor by
toggling the Sensor Type for that port between a Passive (None, Switch,
Temp) mode = OFF and an Active Mode (Light, Rotation) mode = ON.

Cool, an extra motor output off of a sensor port!  Unfortunately, I
don't seem to be able to run a full size Technics Motor (the geared one)
off of the same scheme.

All the same, using RcxCC (GREAT PROGRAM!!! btw) I accessed the direct
controls setting the port to various modes to see what would happen.  I
also paralleled a Touch Switch and to the Micromotor to see what would
happen, here's what I found:

(Numbers represent readings on RCX screen for that Port, Temp readings
appear useless.  +/- = amplitude of variability around an inconsistent
number)
Sensor Setting:  Passive (None, Switch, Temperature)
Micro Motor Only Reading
MOTOR IS OFF -------
Mode Setting: Raw 14-16
Boolean 1 spinning the motor gives no change
Trans 0 " " " " "
Period 0 " " " " "
Percent 100 " " " "
Celcius 9999
F 9999
Angle 0

Sensor Setting: Active (Light/Angle)
Micro Motor Only Reading
MOTOR IS ON -------
Mode Setting: Raw 1023, lower as slowed, down to below 30 when motor
stalled
Boolean 0 while running, 1 when stalled
Trans +1 with each transition to on->off or off->on
Period +1 with each transition of on->off->on or vice versa
Percent 0 while running, 100 when stalled
Celcius 9999 w/ brief transition to random temp when going from
F stalled state to running state (not consistent)
Angle 0, 1 occasionally when transitioning from stalled to moving
(also not consistent)

Sensor Setting:  Passive (None, Switch, Temperature)
Micro Motor+Switch Reading
MOTOR IS OFF -------
Mode Setting: Raw 14-16 (Switch OUT), 7-9 (Switch IN)
Boolean 1  Switch or spinning motor has no effect
Trans 0, Switch state has no effect
Period 0 " " " " "
Percent 100 " " " "
Celcius 9999
F 9999
Angle 0

Sensor Setting: Active (Light/Angle)
Micro Motor+Switch Reading
MOTOR IS ON -------
Mode Setting: Raw 1023 w/ Switch OUT, lower as slowed, < 30 when motor
stalled
slower + < 800 w/Switch IN, lower as slowed, < 10 stalled
Boolean 0 while running, 1 when stalled, Switch IN slows motor
Trans +1 with each transition to on->off or off->on, Switch ignored
Period +1 with each transition of on->off->on, Switch also ignored
Percent 0 while running, 100 when stalled, > 40 with Switch IN
Celcius 9999 w/ brief transition to random temp when going from
F stalled to running state, < 40 C or < 100 F when Switch IN
Angle 0 while running, -1 with Switch IN, but can be additive
(also not consistent)


It's getting late, will test out combinations of MicroMotor + Light
Sensor or Rotation Sensor later.

Hope you find this interesting, sorry about the long post.
Dave



Message has 2 Replies:
  Re: Use a RCX as a Sensor port AND a Motor Output!
 
Ooops, subject should have been: Use RCX Sensor Port as a Sensor Port AND a Motor Output! Dave (25 years ago, 26-Aug-99, to lugnet.robotics)
  Re: Use a RCX as a Sensor port AND a Motor Output!
 
Great work! Extra motor output, speed sensing, stall detection and sensor/motor multiplexing. Thanks for the research! (...) (25 years ago, 26-Aug-99, to lugnet.robotics)

3 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