My project is an Automatic Braking System(ABS). I need helping creating it.

So my project with arduino is going to be an ABS like the ones in cars. The problem is I'm new to Arduino. First, I need to find a device that can find the speed of the object in front of it (Nothing as expensive as LiDAR).
Second, I need to find a device that can find the distance of the object in front of it.

I am planning on these 2 to create an algorithm where the a system can be deployed automatically if the device detects that it will crash with the moving object in front of it. The device will be moving as well.

To put it in simpler terms, I'm replicating the ABS in Arduino.

1 Like

ABS is "Anti-lock Braking System"

In what kind of vehicle do You intend to apply this project?

Railroader:
In what kind of vehicle do You intend to apply this project?

Right now, this will be a typical arduino and I just move the Arduino and if the system activates before it crashes into the moving object in front of it, then it is successful.

So it is an obstacle detecting device You want to build?

Railroader:
So it is an obstacle detecting device You want to build?

Somewhat, It needs to detect the obstacles,their speed, and the distance from the device to the object in front of it

BoweyFlagellum:
Somewhat, It needs to detect the obstacles,their speed, and the distance from the device to the object in front of it

If you look, you will find there is a lot more to it than what you think.

BoweyFlagellum:
So my project with arduino is going to be an ABS like the ones in cars. The problem is I'm new to Arduino. First, I need to find a device that can find the speed of the object in front of it (Nothing as expensive as LiDAR).
Second, I need to find a device that can find the distance of the object in front of it.

I was involved, about 20years ago, in the assembly of a POC car that accomplished a similar outcome to what you are trying to do.
You need to know;

  • Your speed
  • The other vehicles speed
  • The distance between the two.
  • An algorithm that connects the three so that the braking effort and distance threshold can be calculated, the distance that the brake is to be applied will greatly depend on the overall speed.

Instead of brake application it sounded an alarm and applied a bias to the throttle pedal, to let the driver know of a dangerous situation.
The bias was enough to make pressing the throttle harder, but not hard enough to prevent an emergency application if a "get me out of here" situation occurred.
The system used a very expensive Volvo radar system that was being fitted to their long range road trucks.

There are now some inexpensive doppler radar units available.
I have been experimenting with some at my work, however for your application you would need a relatively narrow beam width to look down the road and not detect roadside obstacles.
Tom... :slight_smile:

BoweyFlagellum:
So my project with arduino is going to be an ABS like the ones in cars. The problem is I'm new to Arduino. First, I need to find a device that can find the speed of the object in front of it (Nothing as expensive as LiDAR).
Second, I need to find a device that can find the distance of the object in front of it.

Assuming that, because you're using cheap Arduino hardware, something like an ultrasonic emitter/detector will work you can calculate relative speed by measuring how distance changes over time.

For example, if you do measurements 500mS apart and find the second reading is 10cm closer than the first than you can say that the rate of closure is 20cm/sec.

From this you know distance and relative speed.

Presumably it's fairly simple to know to hit the brakes when your rate of closure is above some threshold 'x' when your distance is less than 'y'.

BoweyFlagellum:
So my project with arduino is going to be an ABS like the ones in cars. The problem is I'm new to Arduino. First, I need to find a device that can find the speed of the object in front of it (Nothing as expensive as LiDAR).
Second, I need to find a device that can find the distance of the object in front of it.

I am planning on these 2 to create an algorithm where the a system can be deployed automatically if the device detects that it will crash with the moving object in front of it. The device will be moving as well.

To put it in simpler terms, I'm replicating the ABS in Arduino.

It always helps to be clear about what you are attempting to do and use the correct lingo.

As pointed out in reply #1, ABS is anti-lock braking system. That is NOT what you are describing.

You are describing automatic braking or a collision avoidance system (of which ABS could be a part, or not).

Blackfin:
Assuming that, because you're using cheap Arduino hardware, something like an ultrasonic emitter/detector will work you can calculate relative speed by measuring how distance changes over time.

For example, if you do measurements 500mS apart and find the second reading is 10cm closer than the first than you can say that the rate of closure is 20cm/sec.

From this you know distance and relative speed.

Presumably it's fairly simple to know to hit the brakes when your rate of closure is above some threshold 'x' when your distance is less than 'y'.

one big Karma

What sort of distances and speeds are you talking about?
Modulating and responding to the distance is going to be a proportional solution, perhaps look at PID algorithms.

TomGeorge:
I was involved, about 20years ago, in the assembly of a POC car that accomplished a similar outcome to what you are trying to do.
You need to know;

  • Your speed
  • The other vehicles speed
  • The distance between the two.
  • An algorithm that connects the three so that the braking effort and distance threshold can be calculated, the distance that the brake is to be applied will greatly depend on the overall speed.

Instead of brake application it sounded an alarm and applied a bias to the throttle pedal, to let the driver know of a dangerous situation.
The bias was enough to make pressing the throttle harder, but not hard enough to prevent an emergency application if a "get me out of here" situation occurred.
The system used a very expensive Volvo radar system that was being fitted to their long range road trucks.

There are now some inexpensive doppler radar units available.
I have been experimenting with some at my work, however for your application you would need a relatively narrow beam width to look down the road and not detect roadside obstacles.
Tom... :slight_smile:

So how do I combine the 3 to create that system. I would assume there would be a lot of "if conditions" to do that. Can you simply explain how the 3 elements were combined?