Self-switching with darlington transistor

Hi there,

I would like to have an Arduino, that can switch itself off. Once, the button is pressed for two seconds, the Arduino will power itself via PIN #9. As soon as PIN #9 is set to LOW, the Arduino switches off and saves power.

Here is the circuit:

But sadly this doesn't work. The darlington transistor should be strong enough for the Arduino, I can switch another Arduino on and off. But the Arduino can't switch itself.

Where is the mistake?

Any hints are welcome.
Thanks a lot,

Tom

One mistake is connecting an output pin to a voltage way bigger than the supply voltage.
Another mistake is not limiting the current in the base.
Another mistake is saying Darlington in the title and drawing a FET , which is it?
Another mistake is the whole concept of the circuit.

Appart from that, spot on.

And you are trying to turn on a high-side switch using a logic HIGH, when it needs a logic LOW -
switching uses common-emitter, not emitter-follower.

The easiest way I've devised is to use a CMOS flip-flop to control the high-side switch,
the flip-flop is continuously powered (no problem, CMOS gates take only nano-amps).
The flip-flop has set input and reset input, one can be controlled from a switch, the other
from the Arduino.

However note the max voltage limits for this and the Pololu module. If you have 12V power
it gets more complicated.

Thanks for your advises.
The same circuit works, if I connect an LED.
Why can I switch an LED on and off, but not the Arduino itself?

So you are feeding 9V into the 5V volt input of your Arduino? :o

Do not confuse "works" with "it is not broken yet".

Is it a FET? If so what type? That is what is the part number.

Sorry, the picture is wrong. I feed the 9V to Vin, not to 5V.
The transistor is TIP120 Power Darlington Transistors - 3 pack : ID 976 : $2.50 : Adafruit Industries, Unique & fun DIY electronics and kits

EDIT Changed GoForSmoke to retrolefty- sorry lefty!
As retrolefty said a while ago
,

retrolefty:
Yes, quite possible. Pololu makes a popular mosfet based switch that can be made to work.
Pololu Pushbutton Power Switch LV (old version)

I build that functionality using a $1 e-bay 5vdc latching relay. One manually powers the board on and the first code in the setup function turns a output pin high to latch the power relay on. Then anytime the program wants to shut off power it just brings the output pin low.

Lefty

Sorry, the picture is wrong.

Yes very wrong. In electronics the schematic is king. If you go telling lies in it it is just like telling lies in words, even worse.

Now you have drawn a FET, you have used a darlington transistor. This MUST have a resistor in the base.
This can not be used as a top switch. The maximum voltage you can get out of it in that configuration is 2V less than the base signal which is a maximum of 5V. So all you can get out of it is 3V. That is enough to light an LED but not enough to power an Arduino.

You need to read a lot, lot more about electronics before you touch the hardware for the safety of all components.

MarkT:
However note the max voltage limits for this and the Pololu module. If you have 12V power it gets more complicated.

$1 more. :slight_smile:

Thanks for the links to polulu.

I still don't understand the mistake in my circuit.

Grumpy_Mike:
The maximum voltage you can get out of it in that configuration is 2V less than the base signal which is a maximum of 5V.

I thought, a transistor is able to switch more voltage from collector to emitter than from base to emitter. Isn't that the purpose of a transistor?
If I connect base to 9V from the battery, the transistor switches the Arduino on.

I thought, a transistor is able to switch more voltage from collector to emitter than from base to emitter. Isn't that the purpose of a transistor?

Only if the load is in the collector not the emitter.

You seem to have it in a common collector mode known as an emitter follower, although as you drew a FET rather that what you have actually got then who knows how you have actually connected it. In this mode the voltage on the emitter follows the voltage on the base only 0.7 to 2 V lower.

And common-drain mode on a FET is even worse!