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
1891 gold badge1 silver badge10 bronze badges
asked Nov 8, 2017 at 22:00
3
  • Arduino pin current limitations Commented Nov 8, 2017 at 22:07
  • wouldn't INPUT allow more current? Commented Nov 9, 2017 at 7:00
  • yes it would, but Really what I'm doing in toggling between input and output LOW. The goal is to toggle the node from 0V to 3.3V. Commented Nov 11, 2017 at 16:08

3 Answers 3

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.

answered Nov 8, 2017 at 22:07
1
  • 6
    That's the absolute maximum rating. Recommended is 20mA Commented Nov 8, 2017 at 22:11
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.

answered Nov 8, 2017 at 23:13
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.

answered Nov 8, 2017 at 22:14

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.