I am creating a custom PCB for a project I'm working on, and the input voltage for the board will be from USB, so 5V. I have a regulator that will give me a clean 3.3V for the ESP.
I also have a Sharp distance sensor (http://www.sharp-world.com/products/dev ... 21yk_e.pdf) that operates on 5V. I figure (feel free to tell me I'm wrong!) I can provide power to this sensor from the USB 5V, but that leaves me with an issue actually reading the output from the sensor via an ADC pin.
My question is, how can I do this while still getting accurate readings? I've googled and read "shift register" is an answer, but that seems to be more for digital signals (?).
I don't need anything super "fast", if that matters, I hope to monitor the distance at regular intervals but it's nothing where milliseconds count or anything.
Any specific advice to my specific situation would be very much appreciated!!