To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.faqOpen lugnet.faq in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 FAQ / 537
536  |  538
Subject: 
[MindStorms FAQ 4.4 How do I make a rotation counter?]
Newsgroups: 
lugnet.faq
Date: 
Tue, 13 Jul 1999 21:31:57 GMT
Viewed: 
3019 times
  
Subject:          4.4 How do I make a rotation counter?
Content-Language: en
Topic-Level:      0
Revision:         Robert Munafo, 1999-07-13
Location:         /robotics/rcx/
Comment:          Topic-level is inaccurate pending a reference for topic
levels

<p>To make a counter, first you need to have a rotation <i>sensor</i>. </p>

<p>As already mentioned, the fiber optic module and the polarity switch
are both adaptable for use as rotation sensors. Another solution is to
construct a rotating wheel with a light or touch sensor to detect
holes or protrusions on the wheel (the light sensor approach is more
universal because the wheel spins more freely). This can be done
entirely out of LEGO&reg; parts, as shown (for example) at: </p>

<blockquote>
<a href="http://www.plazaearth.com/usr/gasperi/HBANGLE.HTM">
http://www.plazaearth.com/usr/gasperi/HBANGLE.HTM </a></blockquote>

<p>Once you have a rotation sensor, you make it into a "counter" by
continually monitoring it in your program and updating a variable
that keeps track of the rotation count. This can be done easily in
NQC or Visual Basic, but not in RCX Code. </p>



1 Message 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