How do you program a sharp gp2d120 sensor?
I'm not finding any information on the net to explain how to program the gp2d120 with an arduino. I have seen stuff in other codes but don't understand any of it. So what I'm wondering is how do I actually tell it what to do at a certain distance. I understand that it use a certain amount of volt for different distance but wasn't sure how you actually put that in a code. I have everything I need to get started on my robot and hoping I can just figure this sensor out so I can post it up on here. If someone know a tutorial for me that would be awesome.