Experimentalist
Well-known member
Hi
For the next part of my project I am using a Bluetooth module:
http://www.lctech-inc.com/Hardware/Detail.aspx?id=684fb223-1a23-4b83-8dbd-4d58c2b3c0cb
I have connected this to the hardware serial port 1 of the Teensy 3.0 I am using and can send and recieve without issue. What I would now like to be able to do is turn the module on or off using a digital pin when I can not easily access it in its enclosure.
My project currently uses a TFT display with touch screen and also a micro SD card using the PJRC adaptor. I think, at a glance, I am now down to my last two digital pins so after this I have little room for adding much else.
The connections to the Bluetooth module are simply as follows:
GND
3.3
5.0
TXD
RXD
KEY
I am using this to display debug output using Bluetooth and have it connected to the Teensy 3.0 as follows:
GND - Teensy 3.0 GND
For power, either/or (Both work):
3.3 - Teensy 3.3V
or
5.0 - Teensy Vin
RXD - Teensy 3.0 TX1 (Pin 1)
So rather than connecting the power to 3.3V or Vin I would like to drive it from a digital pin. I guess I need to use a transistor to switch the module but I am unsure and I am looking to the community for guidance. It is a long time since I had to switch my mind to such things and I find a void between my ears.
What I am looking for is what components I would need and the circuit diagram. My guess is just a transistor and maybe a resistor or is there a pin capable of supplying the required current? Specifcation seems to show "working current: pairing 20 ~ 30MA, paired 8MA."
Can you help?
For the next part of my project I am using a Bluetooth module:
http://www.lctech-inc.com/Hardware/Detail.aspx?id=684fb223-1a23-4b83-8dbd-4d58c2b3c0cb
I have connected this to the hardware serial port 1 of the Teensy 3.0 I am using and can send and recieve without issue. What I would now like to be able to do is turn the module on or off using a digital pin when I can not easily access it in its enclosure.
My project currently uses a TFT display with touch screen and also a micro SD card using the PJRC adaptor. I think, at a glance, I am now down to my last two digital pins so after this I have little room for adding much else.
The connections to the Bluetooth module are simply as follows:
GND
3.3
5.0
TXD
RXD
KEY
I am using this to display debug output using Bluetooth and have it connected to the Teensy 3.0 as follows:
GND - Teensy 3.0 GND
For power, either/or (Both work):
3.3 - Teensy 3.3V
or
5.0 - Teensy Vin
RXD - Teensy 3.0 TX1 (Pin 1)
So rather than connecting the power to 3.3V or Vin I would like to drive it from a digital pin. I guess I need to use a transistor to switch the module but I am unsure and I am looking to the community for guidance. It is a long time since I had to switch my mind to such things and I find a void between my ears.
What I am looking for is what components I would need and the circuit diagram. My guess is just a transistor and maybe a resistor or is there a pin capable of supplying the required current? Specifcation seems to show "working current: pairing 20 ~ 30MA, paired 8MA."
Can you help?