Current output

Hi everyone, first of all I know nothing about elctronics so let me know if my question doesn't make any sense! :smiley:

I want to use an arduino chip to simulate keyboard inputs using snap action switches. The switch I'm thinking of using is made to work with up to 100mA current and I need to know if the chip will send current stronger or weaker than that.

Thanks!

A properly connected switch passes less than 1mA of current. Could tell more if I knew the exact switch that you have. Most switches connect from ground to an input set with pinMode INPUT_PULLUP. The internal pullup is 30K to 50K so the current through the closed switch is very low.

The switch I'm thinking of using is made to work with up to 100mA

Another way of saying "up to" is "less than or equal to". :wink: ...The switches can work at lower current.

Hi everyone, first of all I know nothing about electronics

The 1st thing you learn when you take and electronics class is [u]Ohm's Law[/u] which describes the relationship between voltage, resistance, and current. ("Resistance" is the resistance to current flow.)

Presumably, the switch will be on an input. The Arduino inputs have very-high resistance (around 100 meghohms). For practical purposes we can treat that as infinite resistance and assume (pretend) that no current flows into an Arduino input. Current will flow-through the pull-up or pull-down resistor when the switch is on.

The Arduino outputs are ~5V (when high) or ~zero volts (when low) and the maximum current allowed is 40 mA (0.04 Amps). That means the minimum load resistance is 125 Ohms (Ohm's Law).

You can think of electrical current-flow like water-flow in pipes ([u]water flow analogy[/u]). Voltage is water pressure and current is water flow. A skinny pipe or a partially turned-on water valve is resistance.

Just be aware that it's a imperfect analogy. If you cut a pipe you get zero resistance and water flows-out everywhere. If you cut a wire you get infinite resistance and no current flows. Also, nothing bad happens with zero water-resistance but with zero (total) electrical resistance that's a "short circuit" and you can get excess current and things burn-up! Its not unusual to have zero resistance in part of the circuit. Wires have (nearly) zero resistance and a switch has (nearly) zero resistance when turned-on, etc.

.