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 / 13439
13438  |  13440
Subject: 
Re: Help with my robot
Newsgroups: 
lugnet.robotics
Date: 
Tue, 12 Dec 2000 05:07:30 GMT
Viewed: 
1113 times
  
My first suggestion would be a swivel wheel in the front to make turning
easier for the bot.
The only solution to your programming would be two rotation sensors to aid
in running straight and to measure the distance that you have traveled. This
would also measure the distance required to turn.
You could go for a line follower using the light sensor. This can give you
an accurate turn and you could control the distance using a gray and black
track.
Here is a NQC program for two rotation sensors running in a staright line.
task main()
{
SetSensor(SENSOR_1,SENSOR_ROTATION); ClearSensor(SENSOR_1);
SetSensor(SENSOR_3,SENSOR_ROTATION); ClearSensor(SENSOR_3);
while (true)
{
if (SENSOR_1 < SENSOR_3)
{OnFwd(OUT_A); Float(OUT_C);}
else if (SENSOR_1 > SENSOR_3)
{OnFwd(OUT_C); Float(OUT_A);}
else
{OnFwd(OUT_A+OUT_C);}
}
}

This is from the tutorial for NQC.
--
Bob Fay
rfay@we.mediaone.net

The Shop
http://www.geocities.com/Heartland/Bluffs/7900/
http://users5.50megs.com/bobfay
California
USA



Message is in Reply To:
  Help with my robot
 
I got a problem. I have a simple two motor robot that I want to have a push button cause the following: 1 hit the push button 2 robot turns 180 deg and move forward 3. after 15 feet robot stops 4 repeat 1 - 3 The problme i am having is that the (...) (24 years ago, 12-Dec-00, to lugnet.robotics)

10 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