|
Re: Speed Sensors
Posted by Nate Custer.
Student on team #470, Steve Gregory, from Ypsilanti and Visteon.
Posted on 6/8/2000 4:49 AM MST
In Reply to: Re: Speed Sensors posted by Justin Stiltner on 5/29/2000 12:15 AM MST:
: What about a magnet in the wheel and a reed switch close to the wheel on the 'fender' and have the Stamp count the # of times the reed switch is triggered in a given amount of time. Thus giving you your speed.
We did something similur to this for our tower. It used a limit switch firing when ever a bolt on the shaft pressed it. With a bit of work, and some input from the motor we could also track position. Here is the code:
lift = lift + ( (p2_y / 128) & (RC_SW1 &~ contSwitch) ) - ( (~(p2_y / 128) & 1) & (RC_SW1 ''&~ contSwitch) ) &~ hook_down
lastLiftDir = p2_y / 128
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|