Hi guix,
thanks for your reply, sorry it took me a while.
When i try to replicate the setup in the link you provided, the LED does switch on and off with the signal from the digital pin, but the brightness is significantly less than when i connect the led (and resistor) directly to 5v (or digi9).
Am i doing something wrong?
(transitor: BC547B C27, 10kΩ on digi 9, 200Ω on the led)
I think powering the BT module from an Arduino pin is perfectly feasible (not on a Due - those pins are pretty weak.)
But, read closely the datasheet. When it is delivering the rated 40mA, the voltage sags down. Can the BT work at this voltage?
Two pins works but when you switch on and off, you must switch them together. Doing two digitalWrite()s doesn't do this. You have to do some direct port manipulation which then makes your program difficult to move to a different processor or board, if you later decide to use a Pro Mini instead of an UNO. For my code which runs on multiple boards and powers sensors from the outputs, there's a lot of #define code.
You can use deep sleep mode to obtain extremely low power operation. In this mode,
the device shuts down completely and only draws about 300 μA of current. T