Professional Documents
Culture Documents
com
BY ND
03 APR 2013
ver 1 rev 0
1
THE
UNOFFICIAL Pushbutton to 12V
Should you need to connect Arduino inputs to a DC voltage higher than 5V
ARDUINO +12V
basic connections
Pin Goes
Optocoupled inputs
HIGH Used when galavanic separation between external circuitry and Arduino circuit is required
when button
pressed
5V
Pushbutton to GND
1KΩ
5V
10KΩ
MAX +12V A C
1KΩ
IN IN
100nF
470Ω
10KΩ
K E
IN
To reduce the
Vin
interferences
add a capacitor LOW
A B
Pin Goes When using this circuit for 24 volts input increase R to 2200Ω
LOW K
when button C
pressed
NC E
Using Internal Pullup
5V
4N25
Pin Goes
HIGH
Pushbutton to 5V when button
pressed
Trimmer or Potentiometer Photoresistor
5V
5V 5V
Pin Goes IN
HIGH
when button
pressed
IN Pin Goes IN
LOW IN
when button
10KΩ
pressed
1KΩ
Analog
Input Analog www.pighixxx.com
IN Input
BY ND
03 APR 2013
ver 1 rev 0
2
THE Dual LEDs or bi-color LED LED clusters
UNOFFICIAL +12V
5V
ARDUINO
basic connections
470Ω
470Ω
A K
A
A #Leds Resistor Value
1KΩ
Connect a Led 820Ω
K
HIGH 750Ω
5V 680Ω
470Ω
OUT 390Ω
470Ω
A
A K LOW
A
Led goes K
ON
when pin A K
is set to
LOW
470Ω
K
A K
Leds goes
OUT K ON
when pin
is set to
LOW
NPN
Connect a Lamp (DC Low Voltage) 2.2KΩ
OUT
Connect a Led A K
C E E C
B B
A
Lamp goes
A
Led goes
ON ON
when pin when pin
is set to is set to C E
K HIGH LOW
NPN B
2.2KΩ BC337
470Ω
OUT
A K
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
3
THE
UNOFFICIAL
basic connections
Relè
100Ω
A K OUT
1N4007 1µF RCA
1KΩ
K
Relay goes
ON
when pin
is set to
HIGH
A
NPN
C
2.2KΩ B
OUT
E C E
B
BC337
Connect a Buzzer
Connect a Mosfet
+48V
100Ω
OUT
Mosfet
excited
when pin
GDS
is set to
HIGH
IRL540
OUT MAX 2.5A
D
100Ω G Buzzer
OUT
S
22KΩ
Reccomended
only for Switch or
in Low frequency
applications. www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
4
THE
UNOFFICIAL
1KΩ
10µF 16V
100KΩ
NPN
10µF 16V C
100Ω B
OUT
E
22KΩ
100µF 16V
100Ω
C E E C
B B
2N2222
A B Connect a Triac
K NC
NC E
TLP3020
A 6
470Ω 1KΩ 100Ω 1/2 W
OUT A2
TRIAC
100nf
Yuou can
use a
PWM K 4 G 100nf 630V
pin A1
AC IN
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
5
THE
UNOFFICIAL Connect a RGB Led Strip
ARDUINO
+12V
basic connections
D
100Ω G
OUT +12
G
100KΩ
You can also S
use a PWM
pin D
100Ω G R
OUT
B
100KΩ
S
D
100Ω G
Connect a DC Motor OUT
S
100KΩ
A K
1N4007
GDS
IRL540
Fase 1(A)
K
10KΩ
A
1µF
IN
Fase 2(B)
A
10KΩ C Counterclockwise
IN
You can also
use a PWM
B
pin
100nF
D
100Ω G
OUT 100nF B
A C
S
100KΩ
Set Pin
to HIGH GDS
Motor ON
IRL540
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
6
THE
UNOFFICIAL
ARDUINO Bi-Directional Voltage Level Converter 3.3V to 5V Bi-Directional Voltage Level Converter 3.3V to 5V
with voltage divider
basic connections
5V
3,3V 5V
4,7KΩ
10KΩ
10KΩ
IN/OUT IN/OUT
2N7000
10KΩ
10KΩ
IN/OUT IN/OUT
2N7000
S D
S D
TTL / CMOS converter (6 inputs/outputs) TTL / CMOS converter
G
10KΩ
OUT
NPN
VCC VDD TTL 0-5V
2,2KΩ
OUT Aout Fout
IN
IN Ain Fin
MC14504B
Bout MODE
Bin Eout
Cout Ein
Cin Dout
GND Din
www.pighixxx.com
C E E C
B B BY ND
03 APR 2013
2N2222 ver 1 rev 0
7
THE
UNOFFICIAL
ARDUINO
basic connections
OUT
5V
+2,5V
Digital
Output
100KΩ
22KΩ
IN
NPN 1KΩ
4,5 - 6V
Analog Connect to an external power supply!
MIC Input
3,3KΩ
10µF
C E E C
B B
2N2222
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
10
THE
UNOFFICIAL
ARDUINO
basic connections
1 14 11 8
13
16
7 1 DIN DOUT 24
5
DIG0 SEGD
6 3 2 15 DIG4
LTC-2623 SEGDP
16 15 14 13 12 11 10 9
5V
GND SEGE
DIG6 SEGC
MAX7221
DIG2 V+
MOSI
1 2 3 4 5 6 7 8
DIN DOUT
1 DIG0 SEGD 6
DIG3 Iset
DIG4 SEGDP 3
GND SEGE 5 DIG7 SEGG
DIG6 SEGC 2
RX
MAX7221
10µF
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
11
THE
UNOFFICIAL
ARDUINO
basic connections
Connect a LCD HITACHI 44780 compatible
use PWM
to change 1 Vss GROUND
LCD 2 Vdd RAW
brightness 1KΩ 3 Vee Contrast
D10 4 RS Register Sel
6 E Enable
D2 7 D0 Data bit 0
8 D1 Data bit 1
D3 9 D2 Data bit 2
10 D3 Data bit 3
D4 11 D4 Data bit 4
C E
12 D5 Data bit 5
B Used for 4bit mode
D5 13 D6 Data bit 6
BC337 14 D7 Data bit 7
D11 15 A +Backlight
16 K -Backlight
D12
10KΩ
5V Connect to Ground if
270Ω LCD Brightness is not used
1 2 3 4 5 6 11 12 13 14 15 16
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
8
THE Out1 Out2 Out3
UNOFFICIAL
ARDUINO
basic connections
Charlieplexing
OUT
270Ω
OUT1 H=High, L=Low, i=Input
7 Segments Display
270Ω
OUT2
5V
common 5 7
270Ω
270Ω
OUT3
OUT 9 6 OUT
OUT 10
OUT 1 3 OUT
4 OUT
2
A K
10 9 8 7 6
270Ω
OUT
OUT
270Ω
OUT 1 2 3 4 5
270Ω
OUT
270Ω
OUT
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
9
THE
UNOFFICIAL
ARDUINO
basic connections
LED Array
5V
common
OUT
1KΩ
OUT
1KΩ
OUT OUT
1KΩ
OUT C E
B
OUT
1KΩ BC337
OUT
270Ω
270Ω
270Ω
270Ω
270Ω x 4 1 14 11 8
OUT 13
OUT 16
OUT
OUT
OUT
OUT
OUT 7
OUT 5
270Ω 6 3 2 15
OUT A K
270Ω
OUT LTC-2623
16 15 14 13 12 11 10 9
270Ω
OUT
270Ω
OUT
1 2 3 4 5 6 7 8
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
12
03 APR 2013
www.pighixxx.com
ver 1 rev 0
ND
BY
1 Vss GROUND
2 Vdd RAW
3 Vee Contrast
4 RS Register Sel
5 R/W Read/Write
6 E Enable
7 D0 Data bit 0
8 D1 Data bit 1
9 D2 Data bit 2
10 D3 Data bit 3
INT
SCL
SDA
VDD
P7
P6
P5
P4
11 D4 Data bit 4
12 D5 Data bit 5
Used for 4bit mode
13 D6 Data bit 6
PCF8574x 14 D7 Data bit 7
15 A +Backlight
16 K -Backlight
Vss
P0
P1
P2
P3
A0
A1
A2
Connect via I2C a LCD HITACHI 44780 compatible
BC337
B
C
11 12 13 14 15 16
1KΩ
1 2 3 4 5 6
P4 Vss
P5 P3
P6 P2
PCF8574x
10KΩ
P7 P1
INT P0
SCL A2
SDA A1
VDD A0
SCL
basic connections
ARDUINO
5V
UNOFFICIAL
SDA
THE
13
THE
UNOFFICIAL
ARDUINO
basic connections
7
1
8
2
VDD
SCE
D/C
SCK
SDIN
VOUT
VDD
SCE
SDIN
GND
RES
LED
SCK
D/C
GND
RES
1N4148 x 4 5V
120Ω
D12 VDD LED
1.8KΩ
D2 D/C
1.8KΩ
D3 SCE
1.8KΩ
D4 SDIN
1.8KΩ
D5 RES
1.8KΩ
D6 SCK
4.7µF
VOUT 3.3KΩ = 1.8KΩ =
3.3KΩ
3.3KΩ
3.3KΩ
3.3KΩ
3.3KΩ
www.pighixxx.com
GND
BY ND
03 APR 2013
ver 1 rev 0
14
THE
UNOFFICIAL
D8 IN1 OUT1
2 3
D9 IN2 OUT2
ULN2003
D11 IN4 OUT4
IN5 OUT5
IN6 OUT6
IN7
5
OUT7
IN2 OUT2
External Motor Supply
IN3 OUT3
Not Arduino Supply!
IN4 OUT4
IN5 OUT5
IN6 OUT6
IN7 OUT7
Drive a Bipolar Stepper (Basic 1)
GND COM
22Ω
ULN2003
22Ω
D8 IN1 OUT1
D9 IN2 OUT2
22Ω =
D10 IN3 OUT3
ULN2003
IN5 OUT5
22Ω
IN6 OUT6
IN7 OUT7
22Ω
GND COM
Zener 12V
All Resistor 1/4W External Motor Supply
K A
12
www.pighixxx.com
Not Arduino Supply!
BY ND
03 APR 2013
ver 1 rev 0
15
THE
UNOFFICIAL
5V
GPB0 GPA7
GPB1 GPA6
GPB3 GPA4
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
GPB4 GPA3
GPB5 GPA2
MCP23017
GPB6 GPA1
GPA7
GPA6
GPA5
GPA4
GPA3
GPA2
GPA1
GPA0
RES
INTB
INTA
A2
A1
A0
GPB7 GPA0
GPB0
GPB1
GPB2
GPB3
GPB4
GPB5
GPB6
GPB7
VDD
VSS
SCL
SDA
NC
NC
NC RES 7
8
9
SCL A2
10 SDA
11
SDA A1 12 SCL
13
NC A0 14
15
16
17
www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0
16
THE
UNOFFICIAL
FTDI
A K
A K 10KΩ
IGO 1
GND
CTS
Vcc
RX
TX
RTS
1N4007 100nF Reset
7805
RESET PC6 PC5 AN5
(rx)D0 PD0 PC4 AN4
DCIN 12 24V OUT 5V (tx)D1 PD1 PC3 AN3
220µF 50V
47µF 16V
+ + D2 AN2
330Ω
330Ω
PD2 PC2
100nF
100nF
ATMEGA328
D4 PD4 PC0 AN0
22pF 22pF
VCC GND AGND
GND AREF Aref
PB6 AVCC AVcc
PB7 PB5 D13
Protect a I/O Pin D5 PD5 PB4 D12
K A 16MhZ
D6 PD6 PB3 D11
D7 D10
5.1
PD7 PB2
220Ω
Digital Pin Out D8 PB0 PB1 D9
Zener 5.1V
19 PB5 A K
330Ω
RESET 1 PC6 18 PB4
GND 5V
17 PB3
www.pighixxx.com
Recommended ICSP pinout
BY ND
03 APR 2013
ver 1 rev 0
17
THE
UNOFFICIAL Connect a SD Card
ARDUINO 3.3V
basic connections
VCC NC
Aout Fout
Ain Fin
MC14050B
D12 MISO
Bout NC
D10 SS Bin Eout
D11 MOSI
D13 SCK
Cout Ein
VCC
GND
Cout
Bout
Aout
Cin
Bin
Ain
Cin Dout
MC14050B
GND Din
Dout
Eout
Fout
Din
Ein
Fin
NC
NC
SD Card Pinout Simple 3.3V Power Supply
VCC
Only for 5V Arduino
4
GND 3 5 Clock
DIn 2 6 GND
ChipSel 1 7 DOut Vi Adj
LM317
Reserved 9 8 Reserved
470Ω
330Ω
Vo
DCIN 5V
100µF 16V
10µF 16V
+ +
100nF
OUT 3.3V
75Ω
www.pighixxx.com
BY ND
03 APR 2013
LM317 (TO-92) ver 1 rev 0
18
THE
UNOFFICIAL
DS1307
10KΩ
X2 SQW
GND VCC
LM35
Vbat SCL SCL
Out GND SDA SDA
A1 3V
Battery
A0
VCC GND
18KΩ
Out X1 VCC
DS1307
LM35 (TO-92) No 3V Battery?
Connect Vbat to ground.
X2 SQW
A K Vbat SCL
1N4148 x 2
GND SDA
Connect to VGA
470Ω
470Ω
470Ω
1
Sync
1KΩ 6 Front
9 Video
7 11
470Ω
Rear
68Ω
68Ω
VSync
www.pighixxx.com
10
3 BY
03 APR 2013
ND
ARDUINO ±5%
basic connections
±10%
BLACK 0 0 x1Ω
BROWN 1 1 x10Ω
RED 2 2 x100Ω
KΩ =x1,000Ω
ORANGE 3 3 x1,000Ω
YELLOW 4 4 x10,000Ω
MΩ =x1,000,000Ω
GREEN 5 5 x100,000Ω
BLUE 6 6 x1,000,000Ω
VIOLET 7 7
GRAY 8 8 MULTIPLIER
WHITE 9 9 www.pighixxx.com
BY ND
03 APR 2013
ver 1 rev 0