I am using the awesome Particle Electron with a NFC Reader from Elechouse ( link ).
Now I have it connected via SPI and the regular 3.3V power port. But I would like to cut the current to it while the elctron sleeps (not sure how much power it uses when not reading but even the LED on the reader kind of annoys me ).
Could I power this reader via a GPIO Port somehow maybe so I can turn it on and off with WriteDigital?
GPIO ports are IO ports, they really shouldnโt power anything,so put a little FET like a VN10 between your Reader and 3V3 and connect the gate to a GPIO to power it on/off.
thank you @Viscacha & @peekay123
would this work with a VN10LP ?
If I understand correctly itโd be like this:
GPIO -------------------------------|-- FET Gate XX Source <-> 3.3V XX FET Drain <-> VIN on NFC Reader
GND โ pull-down-resistor ----|
@Tiju, it didnโt work because you are using a P-MOSFET instead of an N-MOSFET. I should have specified! What you have will work. For the P_MOSFET, the pull-up is not required since the 3.3v gate voltage is provided by the Photon GPIO pin. Either way is good.