A mainstream IR sensor has 3 pinouts:

  1. Vcc: 5V power
  2. GND: Reference ground
  3. Vo: Analog/Digital voltage output

One can power the sensor using phone's mini USB's Vbus and GND (Can one?). Can one then use USB's D- and D+ pins to read the voltage from the Vo pin?

  • 2
    \$\begingroup\$ You may have better luck using the microphone port to receiver IR. \$\endgroup\$
    – Bort
    Commented Jul 13, 2016 at 13:33

1 Answer 1


No. USB uses complex digital signaling on those data lines, that requires some digital processing power to work at all.

Using an USB enabled microcontroller to translate the output of the sensor would be one of the simplest solutions, but it needs its own program.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.