Which sensor should i use?

Hi,

i would want to implement a vehicle which is able to stop at guided designated location. There will be a guided lane for the vehicle. Therefore, there will be no left and right movement for the vehicle.

An example is that there is 10 designated location where i would want the vehicle to stop in between the start and end point. I would want to add include counters to keep track of the number of times the vehicle passed by.

What kind of sensor should i use here? I am looking on using ultrasonic sensors. Would that be suitable?

I don't see a use for a ultrasonic sensor here. But an optical sensor with marks on the path? Is this kind of a railway? What kind of vehicle? How big is it? Does it carry the controller/sensors or is that in some central/on the path?

Yes. it is some kind of railway. the vehicle is relatively small (about 30cm x 20cm x 10cm). The sensor is going to be attached on the vehicle.

What kind of sensor would i need if i were to mark lines (say 10 lines in total, 20 cm between each line) on the railway itself? Optical sensor seems to be unsuitable for this.

Is the vehicle controller on the vehicle or do you control it from somewhere else?

Optical sensor seems to be unsuitable for this.

Please describe why! I think they're perfectly suited for this but maybe you know something that you didn't tell yet.

Thank you for your reply.

The vehicle is controlled using an mobile application. Can i ask for some suitable resources(e.g. video) on optical sensor? Because i cannot find any related videos on optical sensors regarding to robotics.

How about a reflective sensor like (or similar to) this one, looking for marks on the ground as I think you were getting at earlier.

Soon as it sees a transition from light to dark, hit the brakes.

You would have to do some experiments and calculations to get the truck to stop in the exact right place, due to inertia. But that just means moving the marks so that the actual stopping place is correct.

manor_royal:
How about a reflective sensor like (or similar to) this one, looking for marks on the ground as I think you were getting at earlier.

Soon as it sees a transition from light to dark, hit the brakes.

You would have to do some experiments and calculations to get the truck to stop in the exact right place, due to inertia. But that just means moving the marks so that the actual stopping place is correct.

Thanks for the information. I can see that this reflective sensor is very similar to IR sensor. Is it possible to use a IR sensor for my project with the idea that u have proposed (by drawing a black line on different locations)? Since IR sensor do recognize different brightness.

Sorry, i am still new to Arduino here.

Thanks for the information. I can see that this reflective sensor is very similar to IR sensor.

That is an infrared and therefor optical sensor.

Since IR sensor do recognize different brightness.

As do other optical sensors, please describe what problem you see here. If you describe your project a little more we may see what limitations there are and provide other suggestions.