Answer the question
In order to leave comments, you need to log in
Two buttons control the power supply of the ardina + are used as digital inputs, is there any danger?
Hello, there is the following scheme:
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:
Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question