10
31 JAN 2013 www.pighixxx.com BY PIGHIXXX Optocoupled inputs Used when galavanic separation between external circuitry and Arduinocircuit is required Trimmer or potentiometer Pushbutton to 5V IN Button pressed HIGH +5V Arduino 10KΩ +5V Arduino IN Analogic Input Photoresistor Pulsante premuto HIGH +12V UNO ARDUINO THE UNOFFICIAL basic connections Pushbutton to GND IN Pushbutton to 12V 470Ω 1KΩ Should you need to connect Arduino inputs to a DC voltage higher than 5V When using this circuit for 24 volts input increase R to 2200Ω to reduce the interferences add a capacitor 100nf IN Button pressed LOW 10KΩ +5V Arduino K A E C 4N25 1 2 3 6 5 4 1KΩ IN MAX +12V V in LOW +5V Arduino 10KΩ IN +5V Arduino 1KΩ Analogic Input

UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

Embed Size (px)

Citation preview

Page 1: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

31 JAN 2013

www.pighixxx.com

BY PIGHIXXX

Optocoupled inputsUsed when galavanic separation between external circuitry and Arduinocircuit is required

Trimmer or potentiometerPushbutton to 5V

IN

ButtonpressedHIGH

+5V Arduino

10KΩ

+5V Arduino

IN

AnalogicInput

Photoresistor

PulsantepremutoHIGH

+12V

UNOARDUINO

THEUNOFFICIAL

basic connections

Pushbutton to GND

IN

Pushbutton to 12V

470Ω

1KΩ

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

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

to reduce the interferences

add a capacitor

100n

f

IN

ButtonpressedLOW

10KΩ

+5V Arduino

K

A

E

C

4N25

1

2

3

6

5

4

1KΩIN

MAX +12V

VinLOW

+5V Arduino

10KΩ

IN

+5V Arduino

1KΩ

AnalogicInput

Page 2: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

01 FEB 2013

www.pighixxx.com

BY PIGHIXXX

UNOARDUINO

THEUNOFFICIAL

basic connections

Connect a Led

Set Pinto LOW:

LED goesON

470Ω

+5V Arduino

OUT

K

A

A K

Connect a Led

Set Pinto HIGH:LED goes

ON

470Ω

OUT

K

A

A K

Dual LEDs or bi-color LED

470Ω

+5V Arduino

OUT

K

A

A K

470Ω

K

A

A K

HIGH

LOW

NPN

2.2KΩOUT

AK

Connect a Lamp (DC Low Voltage)

A K

1N4007 PN2222A

E

B

C

Set Pinto HIGH:

LAMP goesON

LED clusters

2.2KΩOUT

Set Pinto HIGH:LED goes

ON

A

K

470Ω

+12V

A K

NPN

BC337

E

B

C

21KΩ1

820Ω2

750Ω3

680Ω4

470Ω5

390Ω6

Resistor Value

Page 3: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

01 FEB 2013

www.pighixxx.com

BY PIGHIXXX

UNOARDUINO

THEUNOFFICIAL

basic connections

3

AK

Relè

NPN

E

BC

2.2KΩOUT

Set Pinto HIGH:

Relay goesON

+5V ... 12V

BC337

E

B

C

A K

1N4007

Connect a Relay

10ΩOUT

Set Pin to HIGHMosfetexcited

+48V

Connect a Mosfet Connect an Audio Ampli�er

22KΩ

G D SIRF520

Connect a Buzzer

100ΩOUT

100ΩOUT

1µF

1KΩ

RCA

Buzzer

S

GD

Page 4: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

UNOARDUINO

THEUNOFFICIAL

basic connections

02 FEB 2013

www.pighixxx.com

BY PIGHIXXX

4Connect a Speaker Power Arduino with 1.5V batteries

Connect a Triac

BC337

NPN

E

BC

2.2KΩOUT

+5V Arduino

E

B

C

100K

Ω10

0KΩ

10Ω

A2

GA1

TRIAC

Puoi usareanche unpin PWM

K

A

4

6

TLP3020

1

2

3

6

4

OUT470Ω 1KΩ

100n

f

100Ω 1/2 W

100nf 630V

220 Volt

1,5V

1,5V

1,5V

1,5V

1,5V 7,5V

Connect only to Arduino Power Jack Barrel

Page 5: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

UNOARDUINO

THEUNOFFICIAL

basic connections

2.2KΩOUT

Connect a DC Motor

A K

1N4007

Set Pin to HIGH

Motor ON

AK

1µF

G D S

S

GD

IRF520

You can alsouse a PWM

pin

10ΩOUT

S

GD

10ΩOUT

S

GD

10ΩOUT

S

GD

You can alsouse a PWM

pin

Connect a RGB Led Strip

G D SIRF520

+12V

B

R

G

+12

version 1.0 05/02/2012

B

A

100n

F

100n

F

10KΩIN

10KΩIN

Connect an Encoder

C Counterclockwise

Clockwise

Fase 1(A)

Fase 2(B)

CAB

28 FEB 2013

www.pighixxx.com

BY ND

5

Page 6: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

TTL / CMOS converter (6 inputs/outputs)

VDDVCC

GND

Aout

Ain

Bout

Bin

Cout

Cin Dout

Din

Eout

Ein

Fout

Fin

MODE

MC14

504BIN

+5V +12V

OUT

2N22222,2KΩ

OUT

IN

CMOS voltage

TTL 0-5V

TTL / CMOS converter

10KΩ

EC

B

E

B

C

2N7000IN/OUT IN/OUT

3,3V 5V

D

G

S

10KΩ

10KΩ

Bi-Directional Voltage Level Converter 3.3V to 5V

2N7000IN/OUT IN/OUT

5V

D

G

S

10KΩ

4,7K

Ω

10KΩ

Bi-Directional Voltage Level Converter 3.3V to 5Vwith voltage divider

UNOARDUINO

THEUNOFFICIAL

basic connections

02 MAR 2013

www.pighixxx.com

BY ND

6

Page 7: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

IN

22KΩ

100K

Ω

3,3K

Ω

1KΩ

10µF

E

B

C

+2,5V

AnalogueInputMIC

Connect a Microphone

OUT

4,5 - 6VConnect to an external power supply!

DigitalOutput

Connect a Servo

UNOARDUINO

THEUNOFFICIAL

basic connections

02 MAR 2013

www.pighixxx.com

BY ND

7

Page 8: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

UNOARDUINO

THEUNOFFICIAL

basic connections

03 MAR 2013

www.pighixxx.com

BY ND

8Charlieplexing

OUT

OUT

OUT

OUT

A K

OUT1

OUT2

OUT3

270Ω

270Ω

270Ω

270Ω

270Ω

270Ω

270Ω

Out1 Out2 Out3

H=High, L=Low, i=Input

5

9

10

1

6

3

4

7

2

OUT

OUT

OUT

OUT

OUT

OUT

OU

T

OU

T

5V

7 Segments Display

270Ω

4321 5

78910 6

common

Page 9: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

UNOARDUINO

THEUNOFFICIAL

basic connections

05 MAR 2013

www.pighixxx.com

BY ND

9

16

13

7

5

1

1KΩ

6

common

2 153

7 Segments Display with Multiplexing

1KΩ

1KΩ

1KΩ

270Ω

14 11 8

OUT

OUT

OUT

OUT

OUT

OUT

OUT

OUT

OUT

OUT

OUT

OUT

5V

4321 5 876

13141516 12 91011

LTC-2623

E

B

C

BC337

270Ω

270Ω

270Ω

270Ω

OUT

OUT

OUT

OUT

OU

T

OU

T

OU

T

OU

T

A K

LED Array

Page 10: UNOFFICIAL Should you need to connect Arduino inputs to a ... basic connections.pdf · 01 FEB 2013 BY PIGHIXXX UNO ARDUINO THE UNOFFICIAL basic connections Connect a Led Set Pin to

UNOARDUINO

THEUNOFFICIAL

basic connections

08 MAR 2013

www.pighixxx.com

BY ND

107 Segments Display with MAX7221

16

13

7

5

1

6 2 153

14 11 8

4321 5 876

13141516 12 91011

LTC-2623

5V

DOUTDIN

DIG7

DIG5

DIG1 SEGA

SEGF

SEGB

SEGG

CLK

DIG0

DIG4

GND

DIG6

DIG2

DIG3 Iset

V+

MAX7221

GND

SEGC

SEGE

SEGDP

SEGD

LOAD CS

0,1µF

10µF

RX

SCKSS

MOSI1

11

8

14

15

7

16

13

2

5

3

6

DOUTDIN

DIG7

DIG5

DIG1 SEGA

SEGF

SEGB

SEGG

CLK

DIG0

DIG4

GND

DIG6

DIG2

DIG3 Iset

V+

MAX7

221

GND

SEGC

SEGE

SEGDP

SEGD

LOAD CS

1

12 13

24

Current 1,5v 2,0v 2,5v 3,0v 3,5v

40ma30ma20ma10ma

12KΩ 12KΩ 11KΩ 10KΩ 10KΩ18KΩ 17KΩ 16KΩ 15KΩ 14KΩ30KΩ 28KΩ 26KΩ 24KΩ 22KΩ68KΩ 64KΩ 60KΩ 56KΩ 51KΩ

RX