I'm working with a uC and a Bluetooth Module. I need the lowest current consumption in this project because it is intended to be a mobile device. Thus, I'm using sleep modes on the uC. Now, I've encountered a problem:
The Bluetooth module has to receive a High level (3.3V) on an input pin when the uC is in sleep mode (to let it know that communication can't be done right now). Problem is when uC is going full sleep mode (as I want) all pins go low (0V). Therefore, I think I should use a voltage inverter.
I have researched and found two possible options:
to use a common transistor as a switch inverter. (base connected to a resistor and uC pin, collector to a resistor and Bluetooth Module input pin, and emisor to ground)
to use a logic gate inverter as 74HC1G04.
I got a few questions:
- Is it really that simple to use a logic gate inverter? What is the down side? why do people use transistors?
- Which option would get the lowest current consumption?
- I have seen some transistor switching guides. They talk about the load current needed to turn on a motor, bulb or whatever they want to have at the end of the transistor switch. But in my case, I have a input pin of a low energy bluetooth module which I believe does not need a big current load... So, any comment on how to know what current is needed for this to work?
Btw, I am a noob in Electronics Engineering and I am ready to learn!
I'm using a Atmega328 as uC and a RN4020 as BLE (bluetooth low energy). Thanks for your help!