4

I have a arduino set below:

pinMode(1,OUTPUT);
digitalWrite(1,LOW);

Now, I am expecting 1.2mA current flow through the pin that is set as output. Is that accepted? If so, what it the max current a pin can sink?

The current comes from a pul up resistor on the line

note: I can't protect it with a diode.

bastelflp
  • 189
  • 1
  • 1
  • 10
Ryan B.
  • 103
  • 1
  • 6

3 Answers3

6

Ok, I just found it.

from the arduno docs:

Atmega pins set aa output can source (provide positive current) or sink (provide negative current) up to 40 mA (milliamps) of current to other devices/circuits.

Ryan B.
  • 103
  • 1
  • 6
2

Yes it can. This blog post of mine will help to explain it.

In short:

It’s all so simple now, isn’t it? The output pin is just like a switch that either connects it to 5V or to ground.

Majenko
  • 105,851
  • 5
  • 82
  • 139
1

can arduino on output mode sink current?

yes.

from the arduno docs:

the datasheet for the particular device is the best place for that answer.

dannyf
  • 2,813
  • 11
  • 13