Vous êtes sur la page 1sur 39

THE

UNOFFICIAL

Pushbutton to 12V
Should you need to connect Arduino inputs to a DC voltage higher than 5V

ARDUINO

+12V

basic connections
Optocoupled inputs

Pin Goes
HIGH
when button
pressed

Used when galavanic separation between external circuitry and Arduino circuit is required

5V

5V

10K

1K

Pushbutton to GND
MAX +12V

1K

IN

470

10K

100nF

IN

IN
To reduce the
interferences
add a capacitor

Vin
LOW

NC

When using this circuit for 24 volts input increase R to 2200

Pin Goes
LOW
when button
pressed

Using Internal Pullup


5V

4N25
Pin Goes
HIGH
when button
pressed

Pushbutton to 5V

Trimmer or Potentiometer

Photoresistor

5V
5V
Pin Goes
HIGH
when button
pressed

IN

IN

Pin Goes
LOW
when button
pressed

IN
1K

IN
10K

5V

Analog
Input

IN

Analog
Input

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

Dual LEDs or bi-color LED

LED clusters
+12V

5V

ARDUINO
470

470

basic connections
A

K
A

#Leds Resistor Value

Connect a Led

1K
820
750
680
470
390

HIGH

5V

470

OUT
A
A

LOW

K
A

470

Led goes
ON
when pin
is set to
LOW

OUT

Leds goes
ON
when pin
is set to
LOW

NPN
Connect a Lamp (DC Low Voltage)
Connect a Led

2.2K

OUT
C

1N4007

OUT

2N2222

Led goes
ON
when pin
is set to
HIGH

Lamp goes
ON
when pin
is set to
LOW

NPN

E
B

BC337

2.2K

470

OUT
A

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

ARDUINO

Connect an Audio Amplifier

Connect a Relay
+5V ... 12V

basic connections

Rel
100
A

OUT

1F

RCA

1K

1N4007
Relay goes
ON
when pin
is set to
HIGH

NPN
C
2.2K

OUT

E
B

BC337
Connect a Buzzer
Connect a Mosfet
+48V

100

OUT
Mosfet
excited
when pin
is set to
HIGH

GDS

IRL540

OUT MAX 2.5A


G

100

22K

OUT

Buzzer

Reccomended
only for Switch or
in Low frequency
applications.

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL
Connect a Speaker

ARDUINO
basic connections

100K

1K

+5V

NPN

10F 16V
100

10F 16V

OUT

100

22K

100F 16V

C
B

2N2222

NC

NC

Connect a Triac

TLP3020

470

1K

100

OUT

1/2 W

A2

Yuou can
use a
PWM
pin

100nf

TRIAC

G
A1

100nf 630V

AC IN
www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

Connect a RGB Led Strip

+12V

ARDUINO
basic connections

100K

OUT
You can also
use a PWM
pin

100
100K

R
B

S
D

100

OUT
100K

+12
G

OUT

Connect a DC Motor

100

1N4007

GDS

IRL540
Connect an Encoder

Clockwise

Fase 1(A)

1F

10K

IN
A

Fase 2(B)

10K

IN

100K

OUT

D
100nF

100

Set Pin
to HIGH
Motor ON

Counterclockwise

100nF

You can also


use a PWM
pin

B
A C

GDS

IRL540
www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

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

10K

4,7K

5V

IN/OUT

10K

IN/OUT
2N7000

10K

10K

3,3V

IN/OUT

IN/OUT
2N7000

D
G

TTL / CMOS converter (6 inputs/outputs)

TTL / CMOS converter


+12V

CMOS voltage

10K

+5V

IN

VCC

VDD

Aout

Fout

Ain
Bout
Bin
Cout

MC14504B

OUT

TTL 0-5V

OUT

NPN
2,2K

IN

Fin

MODE

Eout
Ein

Cin

Dout

GND

Din

C
B

www.pighixxx.com
BY

ND

03 APR 2013
2N2222

ver 1 rev 0

THE
UNOFFICIAL

ARDUINO
basic connections

Connect a Microphone

Connect a Servo

OUT
5V

22K

100K

+2,5V

Digital
Output

IN

NPN

1K

Analog
Input
3,3K

MIC

4,5 - 6V
Connect to an external power supply!

10F

C
B

2N2222

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

Out1 Out2 Out3

ARDUINO
basic connections

OUT

Charlieplexing

270

OUT1

H=High, L=Low, i=Input

7 Segments Display
270

OUT2

5V
common

270

270

OUT3

OUT

OUT

10

OUT

OUT

OUT

OUT

2
A

10

270

OUT
OUT

270

OUT
270

OUT
270

OUT
www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

ARDUINO
basic connections
LED Array

OUT

7 Segments Display (Common Anode) with Multiplexing


5V
common

OUT
1K

OUT
1K

OUT

OUT
1K
C

OUT

E
B

OUT

OUT

11

OUT

16

270

270

OUT

OUT

14

OUT

13

OUT

270 x 4

OUT
OUT

270

270

OUT

270

BC337

1K

15

OUT

270

LTC-2623

OUT
270

16

15

14

13

12

11

10

OUT
270

OUT

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

10

THE
UNOFFICIAL

ARDUINO
basic connections

7 Segments Display (Common Anode) with MAX7221


1

14

11

13
16

7
5

15

LTC-2623
16

15

14

13

12

11

10

DOUT

DIG0

SEGD

DIG4

SEGDP

GND

SEGE

DIG6

SEGC

11

DIG2

DIG3

DIG7

14

SS

MAX7221

DIN

GND

SEGB

DIG5

SEGF

16

DIG1

SEGA

13

LOAD
CS

CLK

DIG4

SEGDP

GND

SEGE

DIG6

SEGC

DIG2

DIG7

Iset

RX

SEGD

DIG3

V+

SEGG

DIG0

5V

MOSI

DOUT 24

15

Current

1.5v

RX
2.0v

40ma
30ma
20ma
10ma

12K

12K

11K

10K

10K

18K

17K

16K

15K

14K

30K

28K

26K

24K

22K

68K

64K

60K

56K

51K

2.5v

3.0v

3.5v

12

MAX7221

DIN

V+
Iset
SEGG

GND

SEGB

DIG5

SEGF

DIG1

SEGA

LOAD
CS

CLK

13

SCK

0,1F

10F

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
LCD
brightness

1 Vss

1K

D10
Optional

Contrast
Register Sel

5 R/W

Read/Write

Enable

D0

Data bit 0

D1

Data bit 1

D2

Data bit 2

10 D3

Data bit 3

11 D4

Data bit 4

12 D5

Data bit 5

13 D6

Data bit 6

BC337

14 D7

Data bit 7

15

+Backlight

16

-Backlight

D3
C

D5

RAW

3 Vee
4 RS
6

D2

D4

GROUND

2 Vdd

D11

Used for 4bit mode

D12
10K

5V

Connect to Ground if
LCD Brightness is not used

270

1 2 3 4 5 6

11 12 13 14 15 16

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

BC337

A1

A2

P0

P1

P2

P3

Vss

B
A0

P4
P5
P6
P7
INT
SCL
SDA

VDD

SCL

INT

P7

P6

PCF8574x

SDA

A2

P0

P1

P2

P4

ARDUINO

1 Vss
RAW

GROUND
Contrast

D2

D1

D0

Data bit 6

Data bit 5

Data bit 4

Data bit 3

Data bit 2

Data bit 1

Data bit 0

Register Sel

10 D3

Data bit 7

RS

2 Vdd
3 Vee

11 D4

+Backlight

12 D5

-Backlight

Enable

13 D6

14 D7

Read/Write

15

5 R/W

16

11 12 13 14 15 16
1 2 3 4 5 6

E
C

Vss

SDA

P5
1K

P3

SCL

A1

Connect via I2C a LCD HITACHI 44780 compatible

VDD

basic connections

A0

12
THE
UNOFFICIAL

PCF8574x

10K

5V

ND
BY

Used for 4bit mode

www.pighixxx.com

03 APR 2013
ver 1 rev 0

13

THE
UNOFFICIAL

ARDUINO
basic connections

Connect a NOKIA LCD (Basic)


Only for 5V Arduino

SCK

D/C

SCE

VDD

LED

SDIN

RES

GND

VOUT

SCE

SDIN

VDD

RES

GND

D/C

SCK

NOKIA 3110

NOKIA 5110
K

1N4148 x 4

5V

VDD
D/C
SCE
SDIN
RES

D12
1.8K

D2
1.8K

D3
1.8K

D4
1.8K

D5

120

LED

1.8K

D6

SCK
3.3K

3.3K

3.3K

3.3K

3.3K

4.7F

VOUT

3.3K =

1.8K =
www.pighixxx.com

GND
BY

ND

03 APR 2013
ver 1 rev 0

14

THE
UNOFFICIAL

ARDUINO

Drive a Unipolar Stepper (Basic 1)

basic connections
1

D8
D9
D11

OUT1

IN2

OUT2

IN3

OUT3

IN4
IN5
IN6

IN1

OUT1

IN2

OUT2

IN3

OUT3

IN4

OUT4

IN5

OUT5

IN6

OUT6

IN7

OUT7

GND

COM

ULN2003

D10

IN1

OUT4
OUT5
OUT6

IN7

OUT7

GND

COM

External Motor Supply


Not Arduino Supply!

Drive a Bipolar Stepper (Basic 1)

22
22

ULN2003

D9
D11

OUT1

IN2

OUT2

IN3

OUT3

22 =
IN4
IN5
IN6

ULN2003

D10

IN1

OUT4

22

D8

OUT5
OUT6

IN7

OUT7

GND

COM

22
Zener 12V

All Resistor 1/4W


K

12

External Motor Supply

Not Arduino Supply!

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

15

THE
UNOFFICIAL

ARDUINO

Connect a graphical LCD via I2C

basic connections

5V

GPA7

GPB1

GPA6

GPB2

GPA5

GPB3

GPA4

GPB4

GPA3

INTB

RES

A2

A1

A0

VSS

NC

SCL

SDA

NC

GPA0

INTA

GPA1

GPA2

GPA3

GPA4

GPA5

GPA6

GPA7

GPA1
GPA0

VDD

RES

GPB7

NC

GPB6

INTB

GPB4

VSS

GPB5

MCP23017

INTA

GPB3

VDD

GPA2

GPB2

GPB7

20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1

GPB1

GPB6

10K

GPB0

GPB5

MCP23017

GPB0

7
8

SCL

A2

10

SDA

11

SDA

A1

12

SCL

13

NC

14

A0
15
16
17

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

ARDUINO
FTDI Connector

basic connections

DIY Arduino
5V

16

Simple 5V Power Supply


100nF

FTDI
A

10K

IGO

100nF

OUT 5V

47F 16V

RESET
(rx)D0
(tx)D1

D2
D3
D4

330

100nF

DCIN 12 24V

220F 50V

7805

22pF

100nF

PC6

PC5

PD0

PC4

PD1

PC3

PD2

PC2

PD3

PC1

PD4
VCC

22pF

GND
PB6

Protect a I/O Pin


K

D5
D6
D7
D8

16MhZ

A
5.1

220

Digital Pin

Reset

100nF

RTS
TX
RX
Vcc
CTS
GND

1N4007

In/Out

ATMEGA328

AN5
AN4
AN3
AN2
AN1
AN0
AGND
Aref
AVcc
D13
D12
D11
D10
D9

PC0

GND
AREF

AVCC

PB7

PB5

PD5

PB4

PD6

PB3

PD7

PB2

PB0

PB1

Zener 5.1V

1 PC6

19 PB5
18 PB4

GND

330

RESET

5V

17 PB3
www.pighixxx.com

Recommended ICSP pinout


BY

ND

03 APR 2013
ver 1 rev 2

THE
UNOFFICIAL

Connect a SD Card

ARDUINO
3.3V

basic connections

VCC

NC

Aout

Fout

MC14050B

Ain
Bout

D12 MISO
D10 SS

Bin

D11 MOSI
D13 SCK
VCC

Aout

Ain

Bout

Bin

Cout

Cin

GND

Cout

MC14050B
NC

Fout

NC

Fin

Eout

Ein

Din

Dout

Ein
Dout

GND

Din

Clock
GND

Vi

DOut

LM317

Adj

75

100nF

DCIN 5V

10F 16V

Vo

470

Reserved

330

Reserved

5
6
7
8

100F 16V

ChipSel

3
2
1
9

Eout

Only for 5V Arduino

DIn

NC

Simple 3.3V Power Supply

VCC

GND

Fin

Cin

SD Card Pinout

17

OUT 3.3V

www.pighixxx.com
BY

LM317 (TO-92)

ND

03 APR 2013
ver 1 rev 0

18

THE
UNOFFICIAL

ARDUINO
Connect a RTC (DS1307)

basic connections

Connect a Temperature Sensor (LM35)

5V
32768Khz

LM35

X2

VCC

Vbat

Out

GND

A1

VCC

10K

5V
GND

DS1307

X1

SQW

SCL

SCL

SDA

SDA

3V
Battery

A0
18K

GND

X1

Out

LM35 (TO-92)

No 3V Battery?
Connect Vbat to ground.
A

X2
Vbat

VCC

DS1307

VCC

1N4148 x 2

SQW
SCL

GND

SDA

Connect to VGA
Connect to Composite Video
1
470

470

470
1
1K

Sync

Front

Video

11

470
68

68

Rear

VSync

10

www.pighixxx.com
BY

ND

03 APR 2013

HSync

ver 1 rev 0

19

THE
UNOFFICIAL

ARDUINO
basic connections
Connect a Keypad

Connect a Keypad (with Interrupt)

2 + 3

1 + 2

2 + 5
3 + 7

1 + 7
5 + 7

3 + 6
1 + 6

5 + 6

3 + 4
1 + 4
4 + 5
1 2 3 4 5 6 7

1 2 3 4 5 6 7

1N4148 x 4

IN

IN
IN

IN
IN

IN

IN

IN
IN

IN
IN

IN
IN

IN
2
www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 1

20

THE
UNOFFICIAL

ARDUINO
basic connections

Connect a IR Sensor
TSOP4836
SFH5110

TSOP1736
SFH506
TFMS5360

TSOP1836
NJL61H380

SFH505A

Connect a IR Emitter
IS1U60

PIC12043S

NPN

39

1K

OUT

5V

100nF

100

VCC

IR

TSAL6200

C
B

4.7F

GND

5V

2N2222

12K

IN

Reccomended
to suppress
power supply
disturbances

R=

Vin - VF
1000
IF *

Vin Source Voltage


VF Forward Voltage
IF Forward Current

Led
Led

www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

21

THE
UNOFFICIAL

ARDUINO

5V

Connect a MAX232

basic connections
C1+

4 x 1F

TX2

TX1 RX1 RX2

V+

GND

C1-

T1OUT

MAX232

VCC

C2+

C2-

14 12

GND

C1-

T1OUT

C2+
C2-

MAX232

V+

+
T2OUT

T2IN

R2IN

R2OUT

GND

Rear

R1IN
A

R1OUT

V-

T1IN

T2OUT

T2IN

TXD
3

R2OUT

R2IN

RTS
Tx
Rx
Vcc

100nF
T1IN

1K

VCC

V-

R1OUT

1K

C1+

100nF

R1IN

DTR

GND

RXD

DCD

Front

8
RX2

RS-232
TTL/CMOS

10 11 13
TX2 TX1 RX1
RI

DSR

CTS

RTS

www.pighixxx.com
BY

ND

05 APR 2013
ver 1 rev 0

22

THE
UNOFFICIAL

ARDUINO
basic connections

MIDI Interface
+5V

MIDI IN

MIDI OUT

Multiple Buttons using 1 Analog Input

1.2K
220

+5V

K
K

Vcc

6N137

5.6K

1K

NC
220

VE

100nF

VO

NC

GND

1K

1N4148

RX (pin 0)

Vcc

VE

VO

NC

GND

1K

NC

1K

TX (pin 1)

Analog
Input
1K

6N137
GND

1M

2
MIDI OUT

Current Source
Current Sink

NC

IN
4

Current Sink
Current Source

MIDI IN

NC
www.pighixxx.com
BY

ND

06 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

ARDUINO
basic connections
Connect a Digital Temperature Sensor (DS18B20)

GND

DS18B20

VDD GND

DS18B20

VDD GND

DS18B20

A simple Rain Sensor with Arduino

23

MAXIM
18B20

VDD

+5V
DQ

DQ

4.7K

DQ

IN

100nF

GND

VDD
+5V

DQ

DS18B20

~ Max 40mt (130 ft)


on CAT5 cable

470
1K
2.2K

NC

5V

47K

1M

Voltin Resistor Value

10K

AC input

4N25

C
B

47K

BC517

Rx

470
10F 16V

IN

1N4007
Vin
LOW

4N25

IN

www.pighixxx.com
BY

ND

06 APR 2013
ver 1 rev 0

24

THE
UNOFFICIAL

ARDUINO
basic connections

Connect a PS2 Keyboard

Scan Codes
100

10K

IN

+5V

76

05

0E

16

04

1E
15

0C

26
1D

03

25
24

0B

2E
2D

83

36
2C

0A

3D
35

01

3E
3C

09

46
43

45
44

78
4E

4D

07
55

54

66
5B

5D

10K

0D

06

58

100

IN

1C

12

NC

Clock

5V

GND

NC

Data

14

1B

1A

11

23

22

2B

21

34

2A

33

32

3B

31

42

3A

4B

41

4C

49

52

5A

4A

59

29

www.pighixxx.com
BY

ND

07 APR 2013
ver 1 rev 0

25

THE
UNOFFICIAL

ARDUINO
basic connections
Connect a EEPROM via I2C

Write operations Enabled

xx24x01x

1Kb

xx24x32x

32Kb

xx24x02x

2Kb

xx24x64x

64Kb

xx24x04x

4Kb

xx24x128x

128Kb

xx24x08x

8Kb

xx24x256x

256Kb

xx24x16x

16Kb

xx24x512x

512Kb

Write operations Disabled

A0

Vss

SCL
SDA

24XXXX
+5V

100nF

A0
A1
A2
Vss

Vcc
WP
SCL
SDA

2.2K

A2

WP

24XXXX

Address
0x50
0x51
0x52
0x53
0x54
0x55
0x56
0x57

24XXXX

A1

Vcc

SCL
SDA

www.pighixxx.com
BY

ND

07 APR 2013
ver 1 rev 0

26

THE
UNOFFICIAL

ARDUINO
basic connections

A Simple programmer

Connect a PS2 Dualshock controller

10K

Rear

1N4148
10K

3.3V

33K

GND

Attention

Clock

Vib.Motor

MOSI

NC

ICSP

ACK
100nF
4.7K

A
5.1

Zener 5.1V

E
B

BC547

13

MISO

5V

SCK

MOSI

RESET

GND

10

+3.3V

11

MISO

4.7K

www.pighixxx.com
BY

ND

08 APR 2013
ver 1 rev 0

27

THE
UNOFFICIAL

ARDUINO

Port Expander (PCF8574xx)

basic connections

A0

VDD

PCF8574xx informs the microprocessor


that there is incoming data or a change
of data on its ports without having to
communicate via the I2C communication bus.

A typical Application
+5V

A1

P2

2.2K

INT
P7

A0

VDD

A1

SDA

A2

SCL

Absolute max per pin 25mA


Absolute max 150mA
for entire package

P6

P0
P1

P3

P2

P5

SCL
2

INT
P7

330
P6

330

P4

VSS

SDA

P3

P5

VSS

P4

SCL

SDA

In applications requiring additional


drive, two port pins may be connected
together to sink up to 50-mA current.

2.2K

P1

100nF

SCL

PCF8574

P0

PCF8574xx

A2

Address
PCF8574 PCF8574A
0x38
0x20
0x39
0x21
0x3A
0x22
0x3B
0x23
0x3C
0x24
0x3D
0x25
0x3E
0x26
0x3F
0x27

SDA

How to connect multipe devices

1N4148
B

Buzzer

NPN

+5V
E
VDD

A0

VDD

A1

SDA

A1

SDA

A1

SDA

A2

SCL

A2

SCL

A2

SCL

INT

P0

INT

P0

P7

P1

P7

P1

P0
P1
P2
P3
VSS

20

P6

P2

P5

P3

P4

VSS

21

P6

P2

P5

P3

P4

VSS

PCF8574

A0

PCF8574

VDD

PCF8574

A0

INT

P7

B
P6

BC337

P5

22

P4

www.pighixxx.com
BY

ND

10 APR 2013
ver 1 rev 1

28

THE
UNOFFICIAL

ARDUINO

Shift Register (74HC595)

basic connections

A typical Application

QG

QH

SRCLR

GND

QH

330

QF

(RCLK) Needs to be pulled HIGH to


set the output to the new shift
register values. This must be pulled
high directly after SRCLK has gone
LOW again.
(SRLCK) When this pin is pulled high
it will shift the register.

RCLK

SRCLK

(Serial Clear)
Clear)
(Serial
Shift Register
Register
Shift
Must be
be pulled
pulled
Must

+5V

Will empty
empty the
the whole
whole
Will
if pulled
pulled LOW.
LOW.
if
HIGH to
to enable.
enable.
HIGH

(Output Enable) This pin enables


the output when tied to GND
& disabled when HIGH.

OE

10

QE

74HC595

The pin (QH) contains the overflow


that is shifted out the other end

VCC

SER

QA

QD

QB

(Ser) Input for the next pin that


gets shifted in.

QC

QA

QD

QC

QE

QF

VCC

QG

QB

QH

GND

Absolute max per pin 20mA

74HC595
9

OE

SER

RCLK

SRCLK

QH

SRCLR

How to connect multipe devices


+5V

100nF

QC

QA

QD

SER
OE

QE

RCLK

QF

QE
QF

QG

VCC

QB

QC

QA

QC

QA

QD

SER

QD

SER

OE

QE

RCLK

QF

VCC

74HC595

QB

74HC595

VCC

74HC595

10

QB

OE
RCLK

SRCLK

QG

SRCLK

QG

QH

SRCLR

QH

SRCLR

QH

SRCLR

GND

QH

GND

QH

GND

QH

SRCLK

www.pighixxx.com
BY

ND

10 APR 2013
ver 1 rev 0

ARDUINO

Connect a Digital Potentiometer (MCP4161)

basic connections
5V

Connect a Distance Sensor (Sharp GP2Y0A21)

CS

100K

SCK

100nF
SDI

10
SCK 13

SCK

MOSI 11

SDI
VSS

Vin

Vout

MCP4161

VSS
CS

MCP4161

29

THE
UNOFFICIAL

VDD
P0B
P0W
P0A

VDD

B
W
A

P0B
P0W
P0A

MICROCHIP

MCP1541

GND

Connect a DAC (MCP4921)


5V

VIN
VOUT

VDD

MCP1541

CS

Analog
Input

SCK

MCP1541
5V

100nF

10F 16V

100

10

SDI

MCP4921

IN

VSS

VOUT
VSS
VREF
LDAC

CS
SCK

MOSI 11

SDI

VOUT
VSS
VREF

10K

VDD

MCP4921

10
SCK 13

100nF

10F 16V

100K

SHARP

VOut

LDAC

www.pighixxx.com
BY

ND

13 APR 2013
ver 1 rev 0

30

THE
UNOFFICIAL

ARDUINO
basic connections

RS485 Node

5V

RX/TX

RE
DE

RX

First

J1

VCC

56

Middle

Node

Node

Last

Node

Node

A
GND

4.7K

100K

J2

J3

RE

A
DE
D

SN75176

Node termination jumpers config

B
120

TX

SN75176

4.7K

100nF

VCC

J1 on
J2 on
J3 on

J1 off
J2 off
J3 off

J1 off
J2 off
J3 on

A
GND

5V

DMX Controller (Basic)


100nF

Opt
Opt

RE

Ref
INV -

DE

OUT

SN75176

100
VCC
B
A

1
GND

2
3

+
www.pighixxx.com
BY

ND

14 APR 2013
ver 1 rev 1

THE
UNOFFICIAL

TOLERANCE

ARDUINO

5%

basic connections

10%

BLACK

x1

BROWN

x10

RED

x100

ORANGE

x1,000

YELLOW

x10,000

GREEN

x100,000

BLUE

x1,000,000

VIOLET

GRAY

WHITE

K =x1,000
M =x1,000,000

MULTIPLIER
www.pighixxx.com
BY

ND

03 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

ARDUINO
basic connections

Ceramic Capacitor Code

102K

= 1,000pF - 10%

1p0

1pF

10

10pF

101

n10

100pF

1.2

1p2

1.2pF

12

12pF

121

n12

120pF

1.5

1p5

1.5pF

15

15pF

151

n15

150pF

1.8

1p8

1.8pF

18

18pF

181

n18

180pF

2.2

2p2

2.2pF

22

22pF

221

n21

220pF

2.7

2p7

2.7pF

27

27pF

271

n27

270pF

3.3

3p3

3.3pF

33

33pF

331

n33

330pF

3.9

3p9

3.9pF

39

39pF

391

n39

390pF

4.7

4p7

4.7pF

47

47pF

471

n47

470pF

5.6

5p6

5.6pF

56

56pF

561

n56

560pF

6.8

6p8

6.8pF

68

68pF

681

n68

680pF

8.2

8p2

8.2pF

82

82pF

821

n82

820pF

II

Significant
Digit

1st

2nd

0
1
2
3
4
5
6
7
8
9

Multiplier
none
10
100
1,000
10,000
100,000
1,000,000

C
J
K
M
D
Z

0.25pF
5%
10%
20%
0.5pF
+80% -20%

1,000

0.001

pF

nF

www.pighixxx.com
BY

ND

11 APR 2013
ver 1 rev 1

III

THE
UNOFFICIAL

ARDUINO
basic connections
Polyester Film-Mylar Capacitor Code

Working
Voltage

334K

= 0.33F 20%
100V

100V

102

1n

.001

1,000pF

103

10n

.01

10,000pF

104

100n

.1

100,000pF

122

1n2

.0012

1,200pF

123

12n

.012

12,000pF

124

120n

.12

120,000pF

152

1n5

.0015

1,500pF

153

15n

.015

15,000pF

154

150n

.15

150,000pF

182

1n8

.0018

1,800pF

183

18n

.018

18,000pF

184

180n

.18

180,000pF

222

2n2

.0022

2,200pF

223

22n

.022

22,000pF

224

220n

.22

220,000pF

272

2n7

.0027

2,700pF

273

27n

.027

27,000pF

274

270n

.27

270,000pF

332

3n3

.0033

3,300pF

333

33n

.033

33,000pF

334

330n

.33

330,000pF

392

3n9

.0039

3,900pF

393

39n

.039

39,000pF

394

390n

.39

390,000pF

472

4n7

.0047

4,700pF

473

47n

.047

47,000pF

474

470n

.47

470,000pF

562

5n6

.0056

5,600pF

563

56n

.056

56,000pF

564

560n

.56

560,000pF

682

6n8

.0068

6,800pF

683

68n

.068

68,000pF

684

680n

.68

680,000pF

822

8n2

.0082

8,200pF

823

82n

.082

82,000pF

824

820n

.82

820,000pF

Significant
Digit

1st

2nd

0
1
2
3
4
5
6
7
8
9

Multiplier
none
10
100
1,000
10,000
100,000

F
G
J
K
M

1~2%
2%
5%
10%
20%

1,000

0.001

pF

nF

www.pighixxx.com
BY

ND

11 APR 2013
ver 1 rev 1

31

THE
UNOFFICIAL

ARDUINO
Drive a Motor (L298)

basic connections

1N4007

L298N

1N4007

B
100nF
100nF

+
VIN

100F 50V

+
100F 50V

5V

OUT
CURRENT SENSING B

OUTPUT 4

OUTPUT 3

INPUT 4

ENABLE B

INPUT 3

LOGIC SUPPLY VOLTAGE V SS

GND

INPUT 2

ENABLE A

INPUT 1

SUPPLY VOLTAGE VS

OUTPUT 2

OUTPUT 1

CURRENT SENSING A

OUT
OUT
OUT

www.pighixxx.com
BY

ND

15 APR 2013
ver 1 rev 0

32

THE
UNOFFICIAL
5V

ARDUINO

Debouncing a Pushbutton

basic connections
4.7K

Simple Debouncer
IN

5V

10K
VCC

1Y

6A

2Y
3A

1N4148

6Y
5A

6 ports
available

5Y

3Y

4A

GND

4Y

100nF

10K

2A

SN7414

100nF

1A

IN
470

100nF

1A

VCC

1Y

6A

2A

6Y

2Y

5A

5V

GND

4Y

SN7414

1A

VCC

CLR

VCC

1Y

6A

CLR

6Y

CK

5A

PR

2A

3K

1 CLR

4A

GND

4Y

GND

PR

D
PR

5Y

3Y

3A

VCC

CK

CK CLR
D

2Y

SN7474

4A

SN7414

3Y

220

5Y

IN Step
IN Dir

100nF

220

3A

Debouncing a Rotary Encoder

CLR 2

CK
Q

100nF

D
Q

3K

PR

CK

PR
PR

1F

CLR

D
CK

Q
Q

B
A C

GND

SN7474

www.pighixxx.com
BY

ND

15 APR 2013
ver 1 rev 0

33

THE
UNOFFICIAL

ARDUINO
Drive a Stepper (L293)

basic connections
VIN

5V

OUT4

GND
OUT2

J1

GND
GND

1/2en

VCC1

IN1

IN4

OUT1

OUT4

GND

OUT3

IN2

IN3

VCC2

3/4en

GND

100F
50V

L293D

GND

L293D

OUT1

OUT

IN4

OUT

IN1

OUT

OUT

VCC1

OUT

OUT

1/2en

GND

100F
50V
100nF

J2

GND

OUT2

OUT3

IN2

IN3

VCC2

3/4en

100nF

www.pighixxx.com
BY

ND

16 APR 2013
ver 1 rev 1

34

THE
UNOFFICIAL

ARDUINO
basic connections

LAB edition

Current Sense

IN

Arduino Logic Analyzer

220

D2
220

D3

Analog
Input

220

D4
5V

220
5.6K

1OUT

220

1IN-

D6

1IN+

2OUT

100nF

2IN2IN+

GND

1K

D7

220

VCC

LM358

D5

A
5.1

Zener 5.1V

See instructions
at
la.pighixxx.com

1OUT

VCC

1IN-

2OUT

1IN+

2IN-

GND

2IN+

LM358

www.pighixxx.com
BY

ND

16 APR 2013
ver 1 rev 1

35

THE
UNOFFICIAL

ARDUINO
basic connections

LAB edition

Arduino Component Tester (basic)

A0
A1

470K

680
470K

680
470K

680

A2

To get full
accuracy
use 1% tolerance
resistors

D9
D8

Allways be shure to
discharge capacitors
before connecting
them to the Tester!

D11
D10

Download sketch
at
at.pighixxx.com

D13
D12

www.pighixxx.com

Original Project by Markus Frejek AVR-Transistortester, Embedded Projects Journal, 11. Ausgabe, 2011
Arduino version by PighiXXX

BY

ND

25 APR 2013
ver 1 rev 0

THE
UNOFFICIAL

IV

Simple Transistor Comparison Table

ARDUINO
BC337

basic connections

45V - 800mA
100@100mA
cbe

2N2222
40V - 600mA
35@.1mA

TRANSISTOR Name

cbe

MAX working
Voltage

xxV - xxxmA
xxx@xxxmA

1A

BC547

BCxxx

45V - 100mA
420@2mA

BC546

MAX Collector
Current

45V - 100mA
420@2mA

hFE
Amplification

BC556
cbe

cbe

10

BC558

25V - 800mA
100@100mA

30V - 100mA
420@2mA

cbe

cbe

50

cbe

cbe
BC328

80

45V - 100mA
420@2mA

0m

0m

0m

A
BC557

BC327

BC640

45V - 100mA
180@2mA

45V - 800mA
100@100mA

80V - 1A
63@150mA

cbe

cbe

ecb

Pinout
BC559

BC549

30V - 100mA
200@2mA

30V - 100mA
200@2mA

BC548
cbe

30V - 100mA
200@2mA

cbe

cbe

BC338
45V - 800mA
100@100mA
cbe

NPN
PNP

BC639
80V - 1A
40@150mA
www.pighixxx.com
ecb
BY

ND

25 APR 2013
ver 1 rev 1