T
T
token2016-01-21 14:32:26
Arduino
token, 2016-01-21 14:32:26

Two buttons control the power supply of the ardina + are used as digital inputs, is there any danger?

Hello, there is the following scheme:
b15d27as-960.jpg
It works like this: when one of the buttons is pressed, power is supplied to the Arduino, then the state of the inputs (7 or 8) determines which button was pressed and some action is performed. Question: being powered by a 12 volt battery, through the RAW pin (which has an internal regulator), is there any chance of burning the board or digital pin?
Version with optocouplers:
38963c508801.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rainbird, 2016-01-21
@token

There is a possibility, depending on the diode: there will be a negative voltage on the pin (relative to GND), equal to the voltage drop across the diode. For silicon diodes, the threshold voltage is about 0.4..1.0V, for Schottky - 0.1..0.3V. And from the datasheet on the mega:

Absolute Maximum Ratings
Voltage on any Pin except RESET
with respect to Ground ................................-0.5V to VCC+0.5V

A
Armenian Radio, 2016-01-21
@gbg

There is a chance to get an unknown what instead of the result of the work, because the controller will be powered by the devil knows how due to the bounce of the contacts.
Such things are done using the sleep mode of the controller with wake-up interruption from a change in the state of the input.

T
token, 2016-01-22
@token

Changed to optocouplers. Am I right that this circuit is free from all the above disadvantages?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question