Pages: [1]   Go Down
Author Topic: Power off Arduino with  (Read 432 times)
0 Members and 1 Guest are viewing this topic.
Sky
Offline Offline
Newbie
*
Karma: 0
Posts: 24
I love paragliding
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks!
Could you please give an idea for switching Arduino power with a tact button ?? I.e. like in most of usual devices - button have no fixed on/off positions. The project contains a battery, which powering a board and sensors, so need to disconnect the battery by some way.
Guess should be some extra mosfet. A basic circuit would be appreciated.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6637
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The usual approach is to use a standalone atmega328p processor instead of a full Arduino (so that you don't have a USB-to-serial converter taking current too), and instead of disconnecting the battery from the processor, put it in power down mode.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Sky
Offline Offline
Newbie
*
Karma: 0
Posts: 24
I love paragliding
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks a lot dc42!
i use mini pro, so no any ttl converting chip onboard, but the device is for outdoor use and i guess low consumption mode will discharge a battery in, let's say two-three weeks, therefore would prefer to obtain a way of cutting power supply circuit with tact button.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6637
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you put the mcu into power down mode, you can reduce the current consumption to less than a microamp, and the battery will last years.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Full Member
***
Karma: 5
Posts: 207
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 150
Posts: 5666
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks a lot dc42!
i use mini pro, so no any ttl converting chip onboard, but the device is for outdoor use and i guess low consumption mode will discharge a battery in, let's say two-three weeks

No...a properly programmed AVR chip in power saving mode can use current in the nanoamp range.

ie. It can go for longer than the shelf life of the battery.

See: http://www.gammon.com.au/forum/?id=11497

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Pages: [1]   Go Up
Jump to: