Author Topic: powering IR receiver from uC output pin  (Read 767 times)

0 Members and 1 Guest are viewing this topic.

Offline djacobowTopic starter

  • Super Contributor
  • ***
  • Posts: 1164
  • Country: us
  • takin' it apart since the 70's
powering IR receiver from uC output pin
« on: May 15, 2019, 05:13:11 pm »

I've got a battery powered device under development that has IR remote control receiver. The receiver datasheet (https://www.vishay.com/docs/82471/tsop772.pdf) suggests that the supply current is 0.8 mA and the the max supply current is 5mA (presumably, when the output pin is driving 5mA)

Right now I am powering it through a largish PFET that controls a bigger power rail shared by some high current consumers. I want to do the IR receiver separately. I could use another PFET, but not using anything is preferable.

Can anyone think of a reason that I cannot power down this receiver by driving its Vcc directly from a microcontroller pin? The output current will never be anywhere near 5mA because the output is going right back to an input pin of the same microcontroller.

 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: powering IR receiver from uC output pin
« Reply #1 on: May 16, 2019, 07:02:02 am »
Quote
Can anyone think of a reason that I cannot power down this receiver by driving its Vcc directly from a microcontroller pin?
Microcontrollers usually have a limited amount of current that ALL the gpio pins can soure, notjust on each individual pin. You need to check the total current that ALL the gpios are going to output.

Hint: the amount of current microcintrollers can sink is higher than they can source.
To control the ir receiver by sinking current, put the gpio in open collector mode. In effect, the micro is switching the 0V on/off instead of the power.

This may not be an problem, do the check like a good engineer  ;)
 

Offline perieanuo

  • Frequent Contributor
  • **
  • Posts: 914
  • Country: fr
Re: powering IR receiver from uC output pin
« Reply #2 on: May 16, 2019, 08:05:24 am »
Just add one transistor and one resistor, your BOM won't explode


Envoyé de mon iPad en utilisant Tapatalk
 

Offline bson

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: powering IR receiver from uC output pin
« Reply #3 on: May 17, 2019, 04:30:12 pm »
It will probably be fine, but do wire it up on a breadboard to check.  5mA is probably the maximum output current into a shorted load, but a GPIO input pin will be very high impedance and draw very little current.  So supply current will be dominated entirely by what the device itself needs, which is probably very little (the < 1mA figure).  But you can't know for sure until you check for yourself.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf