Pages: 1 [2]   Go Down
Author Topic: Current from I/O PIN  (Read 2663 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I solved the question smiley-grin
With a BJT NPN and some resistor...
The Vcc on the led is a 9V battery


* Photo 27-10-12 12 02 57.jpg (2308.31 KB, 2592x1936 - viewed 39 times.)
Logged

Offline Offline
Jr. Member
**
Karma: 9
Posts: 75
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's a somewhat badly formatted and unverified list of the pins

Code:
Pin Port     Func
0   PA8          RX0
1   PA9          TX0                    15
2   PB25         Digital Pin 2
3   PC28         Digital Pin 3          15
4   PA29 and PC26   Digital Pin 4       15
5   PC25         Digital Pin 5          15
6   PC24         Digital Pin 6          15
7   PC23         Digital Pin 7          15
8   PC22         Digital Pin 8          15
9   PC21         Digital Pin 9          15
10   PA28 and PC29   Digital Pin 10      15
11   PD7          Digital Pin 11         15
12   PD8          Digital Pin 12         15
13   PB27   Digital Pin 13 / Amber LED "L"
14   PD4          TX3                   15
15   PD5          RX3                   15
16   PA13         TX2
17   PA12         RX2
18   PA11         TX1
19   PA10         RX1
20   PB12         SDA
21   PB13         SCL
22   PB26         Digital Pin 22
23   PA14         Digital Pin 23         15
24   PA15         Digital Pin 24         15
25   PD0          Digital Pin 25         15
26   PD1          Digital pin 26         15
27   PD2          Digital Pin 27         15
28   PD3          Digital Pin 28         15
29   PD6          Digital Pin 29         15
30   PD9          Digital Pin 30         15
31   PA7          Digital Pin 31         15
32   PD10         Digital Pin 32
33   PC1          Digital Pin 33         15
34   PC2          Digital Pin 34         15
35   PC3          Digital Pin 35         15
36   PC4          Digital Pin 36         15
37   PC5          Digital Pin 37         15
38   PC6          Digital Pin 38         15
39   PC7          Digital Pin 39         15
40   PC8          Digital Pin 40         15
41   PC9          Digital Pin 41         15
42   PA19         Digital Pin 42         15
43   PA20         Digital Pin 43
44   PC19         Digital Pin 44         15
45   PC18         Digital Pin 45         15
46   PC17         Digital Pin 46         15
47   PC16         Digital Pin 47         15
48   PC15         Digital Pin 48         15
49   PC14         Digital Pin 49         15
50   PC13         Digital Pin 50         15  
51   PC12         Digital Pin 51         15  
52   PB21         Digital Pin 52
53   PB14         Digital Pin 53         15
54   PA16         Analog In 0
55   PA24         Analog In 1
56   PA23         Analog In 2
57   PA22         Analog In 3
58   PA6          Analog In 4
59   PA4          Analog In 5
60   PA3          Analog In 6
61   PA2          Analog In 7
62   PB17         Analog In 8
63   PB18         Analog In 9
64   PB19         Analog In 10
65   PB20         Analog In 11
66   PB15         DAC0
67   PB16         DAC1
68   PA1          CANRX
69   PA0          CANTX                15
70   PA17         SDA1
71   PA18         SCL1                 15
72   PC30         LED "RX"
73   PA21         LED "TX"
74   PA25         (MISO)               15
75   PA26         (MOSI)               15
76   PA27         (SCLK)               15
77   PA28         (NPCS0)              15
78   PB23         (unconnected)        15
USB   PB11         ID                  15
USB   PB10         VBOF                15
  

The "15" indicates a high-current pin.

HC pins can source 15mA and sink 9.
LC pins can source 3mA and sink 6.

______
Rob


I think pin 32 is HC and so is pin  72.

Other additions:
  timer pins: 2-5, 10-13, 58,60,61
  PWM pins: 6-9

pin attributes are set in hardware/arduino/sam/variants/arduino_due_x/variant.cpp

analogWrite() in  hardware/arduino/sam/cores/arduino/wiring_analog.c
does analog out using either hardware DAC, PWM, or Timer/Counter pins else does high/low on digital pins.
« Last Edit: October 28, 2012, 11:01:34 am by mantoui » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
i hope I'm on topic.
Pls can anyone confirm my interface circuits for DUE?
There are mountains of examples for UNO but i didn't find any for DUE and i don't want to fry my 20 minutes old DUE.



* ArduDUE.jpg (514.43 KB, 2592x1944 - viewed 32 times.)
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 515
Posts: 31567
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks fine. I woudn't use that seriese resistor on the input, it is just a waste, but it does no harm.
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6382
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or you can look for LEDs that are sufficiently bright when used at 3mA...
Logged

Pages: 1 [2]   Go Up
Jump to: