Automobile Autopilot(sort of)
Philldapill
Posts: 1,283
I'm in the "tinkering" stage of a project I'd like to make involving a automated steering mechanism for my car. The general idea is:
1. Get a small camera mounted on the side of the car to "watch" the line on the side of the road.
2. Using a microcontroller, analyze the image and determine the error(how far to the right or left the line is)
3. Have a mechanical mechanism to adjust the steering so that the car remains on the road.
I've got the mechanical mechanism idea down pretty well, so that's not really an issue. The real issue is about the camera and microcontroller. Any suggestions for a simple camera or imaging device? I'd like to use the propeller for this, but I'm worried if it would have the image processing power and speed to be up for the job.
The imaging doesn't have to be SUPER clear. Since the road boundry lines are pretty much uniform throughout the United States, I was thinking using a lens filter to detect the particular color of the line. If I can get a rough estimate of where the line is, relative to the car, I think that should be sufficient. I believe ViewPort could handle this, but I'd like this system to be laptop free - hence the use of the Propeller.
·
1. Get a small camera mounted on the side of the car to "watch" the line on the side of the road.
2. Using a microcontroller, analyze the image and determine the error(how far to the right or left the line is)
3. Have a mechanical mechanism to adjust the steering so that the car remains on the road.
I've got the mechanical mechanism idea down pretty well, so that's not really an issue. The real issue is about the camera and microcontroller. Any suggestions for a simple camera or imaging device? I'd like to use the propeller for this, but I'm worried if it would have the image processing power and speed to be up for the job.
The imaging doesn't have to be SUPER clear. Since the road boundry lines are pretty much uniform throughout the United States, I was thinking using a lens filter to detect the particular color of the line. If I can get a rough estimate of where the line is, relative to the car, I think that should be sufficient. I believe ViewPort could handle this, but I'd like this system to be laptop free - hence the use of the Propeller.
·
Comments
Two (or more) of these linear cameras would probably work. Just don't try and use the system on old country backroads where the sideline is on the broken edge of the pavement.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tia'Shar Manetheren
If you mount the camera outside make sure it is well protected. I would mount it inside where it is protected and can use the front of the hood as a reference for the relative position of the vehicle.
The problem with using the propeller for image processing is the lack of memory. By itself it is fast enough to do some basic image manipulation, but when you add the time required to access external memory it gets a lot slower. Even at a resolution of 320 x 240 x 8 you need 76,800 bytes to store the image.
Four props might be able to handle the images at that resolution. As much as I like the propeller I would be tempted to look at an alternative that could address at least 512K of memory for the image processing.
Also, kwinn, couldn't adding extra ram and an sd card get around some of this?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
Put another way its going take a lot more than a Prop.
Post Edited (LilDi) : 8/19/2009 9:25:31 PM GMT
Of course, I'll always have my hands ready to grab the wheel in case my gadget goes a bit nutty. I'd rather not total my car just to play with some electronics...
I think that's a very bad idea. Since an accelleromter can't tell the difference between a tilt and a turn, I think you'd get into a situation where the turn is unstable: you tilt your head a little, the car turns, it thinks you've tilted more, so it turns even more, and so on. A better solution would use an IMU. DIY drones sells one for about $100.
I am right, right?
1. You are driving down the road and someone next you honks their horn. You quickly turn your head to look ...
2. You spill a drink and look down ...
3. a bee gets in the car ...
sounds like fun though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Searider
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tia'Shar Manetheren
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tia'Shar Manetheren
SRLM, could I just ask you to explain your·two or more cameras comment?
At the moment I'm thinking along the lines of a camera mounted in each wing mirror angled slightly out so that the middle of the camera is where the line should be.
The Lexus LS460 has gone one step further and has electric power steering to actualy steer the car to hold its lane using a Lane Keeping Assist system, although the driver must remain active otherwise the system will deactivate. See http://en.wikipedia.org/wiki/Lane_departure_warning_system