If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
How do you define "most simple"? Simplest build. Fewest parts. Fewest internal states. Shortest development time.
I would personally have used a microcontroller for fluid motion because it is easy to experiment with different strategies. If you use discrete components you need to change the circuit all the time until you get it right.
Registered Member #162
Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3141
I helped my daughter construct a 'Cybot' from 'Real Robots' magazine. It has line-following as one of it's modes. Cybot steers 'jerkily' .. definately not smoothy, The Cybot has a free 'castor' wheel and two independantly powered driving/steering wheels.
In theory smooth control is practical, BUT The motors/bridges are ON/OFF forward/reverse which will always give 'jerky' movement, so you will require variable-speed drive/steer motors OR separate smoothly variable steering. Even if the propulsion/steering of the Cybot was smooth the line-following would still be jerky as the line sensors (phototransistors) are simple light/dark sensors so linear feedback gives jerky steering. so you need a line sensor that not only gives an indication of left/right of line, but also by how much. (unless you use a predictive computer) If you have simple but fast sensors and stepper motors the movement will still be 'jerky' but will appear smooth. for Cybot site.
Registered Member #135
Joined: Sat Feb 11 2006, 12:06AM
Location: Anywhere is fine
Posts: 1735
here
What I can tell you is .....programming it sucks!
This is an 8051 based system, with LDR's and LCD status display. These were the requirements imposed on the class by our instructor. I would never use an LDR because the light/shadow problem and its a big one! That's why you need lights to light the tape path. I would always recommend using an IR pair, but a lot of the instructors are behind the times.
Also beware that your two motors will not usually drive with the same speed/force. So you have to use a transistor to drive the motor anyway, but have to put a pot on the base lead and adjust the drive current so they make the thing go straight.
Mine was slow as sin, but passed the course. This included gaps, take-offs, nasty turns. A friend of mine had his pass in I think under 1 minute. But he had multiple subroutines to check the status of the LDR's. So its doable, you just have to continuously check in your subroutines.
Registered Member #56
Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
I have made several :) They are a classic programming challenge for the basicstamp2.
So, what do you plan to use, microprocessor, discrete logic, computer?
The simplest way is to take an ir led and photodiode/cds cell (you can use discrete ones or get a little module that has them both), and aim it down at the line. You power the led all of the time. You ground one side (the cathode if it is a semiconductor one), and connect the other side through a variable resistor (try 10k) to vdd. At the junction between the light sensor and the variable resistor you connect some type of gate that has hysteresis of some kind. Hook up an led to the output of the gate, and adjust the variable resistor until it lights when you are off the line and is off when you are on it (or vice verse if you used an inverter as the gate). Then build another receiver and adjust the same way. Then position them on either side of the line, so that when the car is on the line you have both leds on, and when it goes off one led goes out. Then you hook the output's of the sensors to a motor driver so that when it is centered on the line you have both motors going, but when one sensor touches the line it's motor goes off. To make it less jerky, you can make it so that when the moor would go off, it only slows down.
If you want to use a microprocessor look at the manual for the basic stamp 2, which uses a simple a/d converter to read the value of the sensor (using only a cds cell, a small cap, and 2 in/out pins), and some code to control it (which is very human readable, and should be easy to implement in any other computer/microprocessor system. The microprocessor version is a little harder to get sutup (make/buy the parts to use the uP), but will give you more freedom, and changing it's behavior is as easy as downloading new code. You can also use a single sensor (just ask), and integrate automatic compensation for changing light/etc.
Registered Member #64
Joined: Thu Feb 09 2006, 06:25AM
Location: Southampton, UK
Posts: 68
The Lego Mindstorms kits can acheive what you want. You get everything in one box, motors, sensors (light & touch). The RCX brick (the brains) has 3 sensor input and 3 motor outputs. Programming is done via a PC, and there's several firmware options to go for as well as the Lego firmware. It's possible to have a range of motor power settings, so motor control can be made quite smooth. You even get a layout on a paper sheet that has a line in an oval for bots to follow.
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.