3 entries 1 exit

Hello,
I am very new to the arduino world, I have a very simple project but I can't manage to get the code right.
I have 3 entries, pin 3, 4 and 5 they get 0 or 12 volts.
If one of these entries get 12 volts i want pin 2 as an output to read High.
Thanks for the help.

Welcome to the forum

Put 12V on an Arduino pin and it is dead, so if you have not done it yet, stop right now

Where is the 12V coming from ?

What code?

googled for you

using 12 volts as input

There's half the story.

Seems like just an if statement away. Look into using the or logical operator. or or usually seen ||. See also &&.

Unless you meant one and only one instead of any.

BTW in English those would be called inputs, not entries, and outputs, not exits.

HTH

a7

3 entries, 1 exit - I love it.
Mouth, nose, eyes, ears…
Two exits down below…

Careful, some may be used bi-directional.

You’ll need a bigger micro.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.