Optical mouse distance measuring

Hi!

Hello there!
I am messing with bots for a bit, and now I thought of a robot positioning system using an optical mouse like sensor for positioning. it would be on the bottom of the bot and it would measure the distance on the floor rather than from the surroundings. I could call out a pair of coordinates and the robot would drive to that spot. all the optical sensors I see though for robots only measure distance from objects, not by the surface. does anyone know of any kind of sensor like this or is it time to take apart a gaming mouse. and also how accurate would this arrangement be?

Thanks

You can guy just the chip. Googling for “optical mouse sensor” will get you a lot of hits. Some will be places you can actually buy them, some will be manufacturers. With the manufacturers, you can then go to places like Mouse, DigiKey, etc and find which ones you can actually buy.
Here’s one link I found:
https://www.spikenzielabs.com/Catalog/index.php?main_page=product_info&products_id=1075

ok thanks will check that out.