Arduino Basic Connections

download Arduino Basic Connections

of 39

Transcript of Arduino Basic Connections

  • 7/24/2019 Arduino Basic Connections

    1/39

    1Pin GoesHIGH

    when buttonpressed

    +12VARDUINO

    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

    Toreducethe

    interferences

    addacapacitor

    100nF

    IN

    Pin Goes

    LOWwhen button

    pressed

    10K

    5V

    Pushbutton to 5V

    IN

    Pin GoesHIGH

    when buttonpressed

    10K

    5V

    Using Internal Pullup

    IN

    Pin GoesHIGH

    when buttonpressed

    5V

    Trimmer or Potentiometer

    IN

    AnalogInput

    5V

    Photoresistor

    IN

    1K

    AnalogInput

    5V

    03 APR 2013

    www.pighixxx.com

    BY ND

    Optocoupled inputsUsed when galavanic separation between external circuitry and Arduino circuit is required

    K

    A

    E

    C1K

    IN

    MAX +12V

    VinLOW

    10K

    5V

    4N25

    A

    K

    NC

    B

    C

    E

    IN

    Pin GoesLOW

    when buttonpressed

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    2/39

    Connect a Led

    470

    OUT

    K

    A

    A K

    Connect a Led

    470

    OUT

    K

    A

    A K

    Dual LEDs or bi-color LED

    470

    OUT

    K

    A

    A K

    47

    0

    K

    A

    A K

    HIGH

    LOW

    NPN

    2.2K

    OUT

    A

    K

    Connect a Lamp (DC Low Voltage)

    A K

    1N4007 2N2222

    LED clusters

    2.2K

    OUT

    A

    K

    470

    +12V

    A K

    NPN

    BC337

    E

    B

    C

    2ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    5V

    5V

    #Leds Resistor Value

    1K

    820

    750

    680

    470

    390

    Led goesON

    when pinis set toLOW

    Led goesON

    when pinis set toHIGH

    Lamp goesON

    when pinis set toLOW

    Leds goesON

    when pinis set toLOW

    ver 1 rev 0

    EC

    B

    C

    B

    E

  • 7/24/2019 Arduino Basic Connections

    3/39

    OUT

    +48V

    Connect a Mosfet

    22K

    G D SIRL540

    S

    GD

    3ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    Mosfetexcited

    when pinis set toHIGH

    A

    K

    Rel

    NPN

    E

    B

    C2.2K

    OUT

    +5V ... 12V

    BC337

    E

    B

    C

    A K

    1N4007

    Connect a Relay

    ver 1 rev 0

    Relay goesON

    when pinis set toHIGH

    Connect a Buzzer

    100

    OUT

    Buzzer

    Connect an Audio Amplifier

    100

    OUT

    1F

    1K

    RCA

    OUT MAX 2.5A

    100

    Reccomended

    only for Switch orin Low frequency

    applications.

  • 7/24/2019 Arduino Basic Connections

    4/39

    Connect a Triac

    A2

    GA1

    TRIAC

    K

    A

    4

    6

    OUT470 1K

    100nf

    100 1/2 W

    100nf 630V

    AC IN

    4ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    TLP3020

    A

    K

    NC

    B

    NC

    E

    Yuou canuse aPWM

    pin

    ver 1 rev 0

    Connect a Speaker

    NPN

    E

    B

    C100

    OUT

    +5V

    100K

    22K

    8

    10F 16V

    100

    100F 16V

    1K

    10F 16V

    EC

    B

    C

    B

    E

    2N2222

  • 7/24/2019 Arduino Basic Connections

    5/39

    100K

    OUT

    Connect a DC Motor

    A K

    1N4007

    Set Pinto HIGH

    Motor ON

    A

    K

    1F

    S

    GD

    You can alsouse a PWM

    pin

    100

    OUT

    S

    GD

    100

    OUT

    S

    GD

    100

    OUT

    S

    GD

    You can alsouse aPWM

    pin

    Connect a RGB Led Strip+12V

    B

    R

    G

    +12

    B

    A

    100n

    F

    100nF

    10K

    IN

    10K

    IN

    Connect an Encoder

    C Counterclockwise

    Clockwise

    Fase 1(A)

    Fase 2(B)

    CA

    B

    5ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

    100

    G D SIRL540

    100K

    100K

    100K

    G D SIRL540

  • 7/24/2019 Arduino Basic Connections

    6/39

    TTL / CMOS converter (6 inputs/outputs)

    VDDVCC

    GND

    Aout

    Ain

    Bout

    Bin

    Cout

    Cin Dout

    Din

    Eout

    Ein

    Fout

    Fin

    MODE

    MC14504BIN

    +5V +12V

    OUT

    2,2K

    OUT

    IN

    CMOS voltage

    TTL 0-5V

    TTL / CMOS converter

    10K

    2N7000

    IN/OUT IN/OUT

    3,3V 5V

    D

    G

    S

    10K

    10K

    Bi-Directional Voltage Level Converter 3.3V to 5V

    2N7000

    IN/OUT IN/OUT

    5V

    D

    G

    S

    10K

    4,7

    K

    10K

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

    THEUNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

    EC

    B

    C

    B

    E

    2N2222

    NPN

  • 7/24/2019 Arduino Basic Connections

    7/39

    IN

    22K

    100K

    3,3

    K

    1K

    10F

    +2,5V

    AnalogInputMIC

    Connect a Microphone

    OUT

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

    DigitalOutput

    Connect a Servo

    5V

    7ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

    EC

    B

    C

    B

    E

    2N2222

    NPN

  • 7/24/2019 Arduino Basic Connections

    8/39

    Charlieplexing

    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

    OUT

    OUT

    5V

    7 Segments Display

    270

    4321 5

    78910 6

    common

    8ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    9/39

    16

    13

    7

    5

    1

    1K

    6

    common

    2 153

    7 Segments Display (Common Anode) with Multiplexing

    1K

    1K

    1K

    270

    270

    270

    270

    270 x 4 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

    OUT

    OUT

    OUT

    OUT

    A K

    LED Array

    9ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    10/39

    7 Segments Display (Common Anode) 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,1F

    10F

    RX

    SCKSS

    MOSI1

    11

    8

    14

    15

    7

    16

    13

    2

    5

    3

    DOUTDIN

    DIG7

    DIG5

    DIG1 SEGA

    SEGF

    SEGB

    SEGG

    CLK

    DIG0

    DIG4

    GND

    DIG6

    DIG2

    DIG3 Iset

    V+

    MAX722

    1

    GND

    SEGC

    SEGE

    SEGDP

    SEGD

    LOAD

    CS

    1

    12 13

    24

    Current 1.5v 2.0v 2.5v 3.0v 3.5v

    40ma

    30ma

    20ma

    10ma

    12K 12K 11K 10K 10K

    18K 17K 16K 15K 14K

    30K 28K 26K 24K 22K

    68K 64K 60K 56K 51K

    RX

    10ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    6

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    11/39

  • 7/24/2019 Arduino Basic Connections

    12/39

  • 7/24/2019 Arduino Basic Connections

    13/39

  • 7/24/2019 Arduino Basic Connections

    14/39

    OUT1IN1

    GND

    IN2

    IN3

    IN4

    IN5

    IN6

    IN7 OUT7

    COM

    OUT5

    OUT6

    OUT2

    OUT3

    OUT4

    ULN2003

    OUT1IN1

    GND

    IN2

    IN3

    IN4

    IN5

    IN6

    IN7 OUT7

    COM

    OUT5

    OUT6

    OUT2

    OUT3

    OUT4

    ULN2003

    D11

    D9

    D8

    D10

    Drive a Unipolar Stepper (Basic 1)

    External Motor Supply

    Not Arduino Supply!

    5

    6

    2

    4

    3

    1

    OUT1IN1

    GND

    IN2

    IN3

    IN4

    IN5

    IN6

    IN7 OUT7

    COM

    OUT5

    OUT6

    OUT2

    OUT3

    OUT4

    ULN2003

    D11

    D9

    D8

    D10

    Drive a Bipolar Stepper (Basic 1)

    External Motor SupplyAll Resistor 1/4W

    Not Arduino Supply!

    22

    22

    22

    22

    22 =

    K A

    12

    Zener 12V

    14ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    15/39

    GPB0

    GPB7

    GPB1

    GPB2

    GPB3

    GPB4

    GPB5

    GPB6

    NC

    VDD

    VSS

    NC

    SCL

    SDA

    GPA7

    GPA1

    GPA0

    GPA3

    GPA2

    GPA6

    GPA5

    GPA4

    A1

    A0

    RES

    A2

    INTA

    INTB

    MCP23017

    Connect a graphical LCD via I2C

    GPB0

    GPB7

    GPB1

    GPB2

    GPB3

    GPB4

    GPB5

    GPB6

    NC

    VDD

    VSS

    NC

    SCL

    SDA

    GPA7

    GPA1

    GPA0

    GPA3

    GPA2

    GPA6

    GPA5

    GPA4

    A1

    A0

    RES

    A2

    INTA

    INTB

    MCP23017

    234567891011121314151617181920 1

    10K

    5V

    SCL

    SDA

    7

    89

    10

    11

    12

    13

    14

    15

    16

    17

    15ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    16/39

    DIY Arduino

    PC6

    GND

    PD0

    PD1

    PD2

    PD3

    PD4

    VCC

    PB0

    PB6

    PB7

    PD5

    PD6

    PD7

    PC5

    GND

    AREF

    PC1

    PC0

    PC4

    PC3

    PC2

    PB2

    PB1

    PB4

    PB3

    AVCC

    PB5

    ATMEGA328

    5V

    10K

    100nF

    22pF 22pF

    16MhZ

    Reset

    AN5

    AN4

    AN3

    AN2

    AN1

    AN0

    AGND

    Aref

    AVcc

    D13

    D12

    D11

    D10

    D9D8

    D6

    RESET

    FTDI

    1

    (rx)D0(tx)D1

    D2

    D3

    D4

    D7

    D5

    330

    A K

    1PC6

    17PB3

    18PB4

    19PB5

    GND

    RESET

    5V

    Recommended ICSP pinout

    16ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 2

    100nF

    100nF

    FTDI Connector

    GN

    D

    CT

    S

    Vc

    c

    RX

    TX

    RT

    S

    A K

    I G OA K

    Simple 5V Power Supply

    330

    1N4007

    +

    220F50V

    +

    47F16V

    100nF

    100nF

    7805

    OUT 5VDCIN 12 24V

    Protect a I/O Pin

    Digital Pin In/Out220

    K A

    5.1

    Zener 5.1V

  • 7/24/2019 Arduino Basic Connections

    17/39

    Connect a SD Card

    NC

    VCC

    GND

    Aout

    Ain

    Bout

    Bin

    Cout

    Cin

    Dou

    t

    Din

    Eou

    t

    Ein

    Fou

    t

    Fin

    NC

    MC14050B

    D10 SSD11 MOSI

    D13 SCK

    D12 MISO

    3.3V

    GND 3

    DIn 2

    5 Clock

    6 GND

    7 DOut

    8 Reserved

    4

    VCC

    ChipSel 1

    Reserved 9

    SD Card Pinout

    NCVCC

    GND

    Aout

    Ain

    Bout

    Bin

    Cout

    Cin Dout

    Din

    Eout

    Ein

    Fout

    Fin

    NC

    MC14050B

    +

    100F16V

    +

    10F16V

    100nF

    LM317

    DCIN 5V

    OUT 3.3V

    Vi

    Vo

    Adj

    330

    470

    75

    Simple 3.3V Power Supply

    LM317 (TO-92)

    Only for 5V Arduino

    17ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    18/39

    Connect a Temperature Sensor (LM35)

    A K

    1N4148 x 2

    LM35GND

    Out

    VCC

    5V

    A018K

    A1

    LM35 (TO-92)

    GNDVCC

    Out

    Connect to Composite Video

    1K

    470

    9

    7

    Sync

    Video

    Connect to VGA

    Front

    Rear

    470

    470

    470

    1

    10

    VSync

    3HSync

    1

    6

    11

    68

    68

    VCCX1

    X2

    Vbat

    GND

    SQW

    SCL

    SDADS1307

    VCCX1

    X2

    Vbat

    GND

    SQW

    SCL

    SDADS1307

    Connect a RTC (DS1307)

    SCL

    SDA

    32768Khz10K

    5V

    3VBattery

    No 3V Battery?Connect Vbatto ground.

    18ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    19/39

    19ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 1

    1 2 3 4 5 6 7

    Connect a Keypad

    ININ

    ININ

    ININ

    IN

    1N4148 x 4

    K A

    1 2 3 4 5 6 7

    Connect a Keypad (with Interrupt)

    ININ

    ININ

    ININ

    IN

    2

    1 + 2

    2 + 5

    3 + 7

    1 + 7

    5 + 7

    3 + 6

    1 + 6

    5 + 6

    3 + 4

    1 + 4

    2 + 3

    4 + 5

    3 1 5

    2

    7

    6

    4

  • 7/24/2019 Arduino Basic Connections

    20/39

    TSOP1736SFH506

    TFMS5360 SFH505A PIC12043SIS1U60TSOP1836

    NJL61H380TSOP4836SFH5110

    Connect a IR Sensor

    20ARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

    IRGND

    S

    VCC

    5V

    +

    4.7

    F

    100

    12K

    IN

    Reccomended

    to suppresspower supplydisturbances

    Connect a IR Emitter

    A K

    EC

    B

    C

    B

    E

    2N2222TSAL6200

    OUT1K

    100nF

    NPN 5V

    K A

    39

    R=IF

    Vin VF-1000*

    VF

    Vin

    IF

    Forward Voltage Led

    Forward Current Led

    Source Voltage

  • 7/24/2019 Arduino Basic Connections

    21/39

  • 7/24/2019 Arduino Basic Connections

    22/39

    ARDUINO

    THEUNOFFICIAL

    basic connections

    06 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    MIDI Interface

    5Current Source

    Current Sink 4

    Current Sink

    Current Source

    1 NC3NC

    2GND

    MIDI OUT

    MIDI IN

    NC GND

    6N137

    NC

    A

    K

    Vcc

    VE

    VO

    1N4148

    K A

    100nF

    NC GND

    NC

    A

    K

    Vcc

    VE

    VO6N137

    220

    MIDI IN MIDI OUT

    5.6K

    +5V

    220

    1.2K

    TX(pin 1)

    RX(pin 0)

    +5V

    Multiple Buttons using 1 Analog Input

    1K

    1K

    1K

    1K

    1K

    1M

    IN

    AnalogInput

    22

  • 7/24/2019 Arduino Basic Connections

    23/39

    ARDUINO

    THEUNOFFICIAL

    basic connections

    06 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    23Connect a Digital Temperature Sensor (DS18B20) A simple Rain Sensor with Arduino

    DS18B20

    VDD

    DQ

    GND

    MAXIM18B20

    IN

    +5V

    4.7

    K

    100nF

    DS18B20GND

    DQ

    VDD

    ~ Max 40mt (130 ft)

    on CAT5 cable

    +5V

    C

    B

    E

    BC517

    10K

    47K

    1M

    AC input

    A

    E

    CRx

    IN IN

    Vin

    LOW

    47K

    5V4N25

    4N25

    A

    K

    NC

    B

    C

    E

    +

    10F16V

    A K

    1N4007

    470

    VoltinResistor Value

    470

    1K

    2.2K

  • 7/24/2019 Arduino Basic Connections

    24/39

    2

  • 7/24/2019 Arduino Basic Connections

    25/39

    ARDUINO

    THEUNOFFICIAL

    basic connections

    07 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    25Connect a EEPROM via I2C

    Write operations Enabled

    Write operations Disabled

    0x510x52

    0x53

    0x54

    0x55

    0x56

    0x50

    0x57

    Address

    Vss SDA

    24XXXX

    A0

    A1

    A2

    Vcc

    WP

    SCL

    24

    XXXX

    Vss SDA

    A0

    A1

    A2

    Vcc

    WP

    SCL

    24XXXX

    100nF

    2.2

    K

    +5V

    SCL

    SDA

    xx24x02x

    xx24x512x

    xx24x01x

    xx24x04x

    xx24x08x

    xx24x16x

    xx24x32x

    xx24x64x

    xx24x128x

    xx24x256x

    1Kb

    2Kb

    32Kb

    64Kb

    4Kb

    8Kb

    16Kb

    128Kb

    256Kb

    512Kb

    26

  • 7/24/2019 Arduino Basic Connections

    26/39

    ARDUINO

    THEUNOFFICIAL

    basic connections

    08 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    26

    +3.3V

    ACK

    AttentionGND

    MISOMOSI

    Vib.Motor

    NCClock

    3.3V

    Connect a PS2 Dualshockcontroller

    13

    11

    10

    A Simple programmer

    100nF

    Rear

    K A5.1

    Zener 5.1V

    1N4148

    K A

    10K

    33K

    4.7K

    4.7K

    BC547

    E

    B

    C

    10K

    ICSP

    MOSI

    5V

    GND

    MISO

    SCK

    RESET

  • 7/24/2019 Arduino Basic Connections

    27/39

    27ARDUINOTHE

    UNOFFICIAL

    basic connections

    10 APR 2013ver 1 rev 1

    www.pighixxx.com

    BY ND

    Port Expander (PCF8574xx)

    Absolute max 150mAfor entire package

    Absolutemax per pin 25mA

    0x21

    0x22

    0x23

    0x24

    0x25

    0x26

    0x20

    0x27

    0x39

    0x3A

    0x3B

    0x3C

    0x3D

    0x3E

    0x38

    0x3F

    PCF8574 PCF8574A

    Address

    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.VDDA0

    VSS

    A1

    A2

    P0

    P1

    P2

    P3 P5

    P4

    P7

    P6

    SDA

    SCL

    INT

    PCF8574xx

    In applications requiring additional

    drive, two port pins may be connected

    together to sink up to 50-mA current.

    VDDA0

    VSS

    A1

    A2

    P0

    P1

    P2

    P3 P5

    P4

    P7

    P6

    SDA

    SCL

    INT

    PCF8574

    VDDA0

    VSS

    A1

    A2

    P0

    P1

    P2

    P3 P5

    P4

    P7

    P6

    SDA

    SCL

    INT

    PCF8574

    20 21

    VDDA0

    VSS

    A1

    A2

    P0

    P1

    P2

    P3 P5

    P4

    P7

    P6

    SDA

    SCL

    INT

    PCF8574

    22

    +5V

    SCL

    SDA

    How to connect multipe devices

    A typical Application

    100nF

    +5V

    SCL

    SDA

    2

    2.2K

    330

    330

    2.2

    K

    VDDA0

    VSS

    A1

    A2

    P0

    P1

    P2

    P3 P5

    P4

    P7

    P6

    SDA

    SCL

    INT

    PCF8574

    A K

    NPN

    E

    B

    C

    BC337

    E

    B

    C

    Buzzer

    1N4148

    K A

  • 7/24/2019 Arduino Basic Connections

    28/39

    28ARDUINOTHE

    UNOFFICIAL

    basic connections

    10 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    3 1

    4

    5

    6

    7

    2

    8 (Serial Clear)Will empty the whole

    Shift Register if pulled LOW.

    Must be pulled HIGH to enable.

    (Output Enable)This pin enables

    the output when tied to GND

    & disabled when HIGH.

    (RCLK)Needs to be pulled HIGH toset the output to the new shiftregister values. This must be pulledhigh directly after SRCLK has goneLOW again.(SRLCK)When this pin is pulled highit will shift the register.

    (Serial Clear)Will empty the whole

    Shift Register if pulled LOW.

    Must be pulled HIGH to enable.

    (Ser) Input for the next pin that

    gets shifted in.

    The pin (QH) contains the overflow

    that is shifted out the other end

    VCCQB

    GND

    QC

    QD

    QE

    QF

    QG

    QH SRCLR

    QH

    RCLK

    SRCLK

    QA

    SER

    OE

    7

    4HC595

    Absolutemax per pin 20mA

    Shift Register (74HC595)

    VCCQB

    GND

    QC

    QD

    QE

    QF

    QG

    QH SRCLR

    QH

    RCLK

    SRCLK

    QA

    SER

    OE

    74HC595

    How to connect multipe devices

    VCCQB

    GND

    QC

    QD

    QE

    QF

    QG

    QH SRCLR

    QH

    RCLK

    SRCLK

    QA

    SER

    OE

    74HC595

    VCCQB

    GND

    QC

    QD

    QE

    QF

    QG

    QH SRCLR

    QH

    RCLK

    SRCLK

    QA

    SER

    OE

    74HC595

    +5V

    9

    10

    8

    A typical Application

    +5V

    9

    10

    8

    330

    VCC

    QB

    GND

    QC

    QD

    QE

    QF

    QG

    QH

    SRCLR

    QH

    RCLK

    SRCLK

    QA

    SER

    OE

    74HC595

    A K

    100nF

    2

  • 7/24/2019 Arduino Basic Connections

    29/39

    29ARDUINOTHE

    UNOFFICIAL

    basic connections

    13 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    Connect a Distance Sensor (Sharp GP2Y0A21)

    Vout Vin

    GND

    AnalogInput

    SHARP

    +10F16V

    100nF

    10 5V

    IN

    Connect a DAC (MCP4921)

    Connect a Digital Potentiometer (MCP4161)

    VDDCS

    SCK

    SDI

    VSS

    P0B

    P0W

    P0AMCP416

    1

    B

    W

    A

    VDDCS

    SCK

    SDI

    VSS

    P0B

    P0W

    P0AMCP4161

    100nF

    5V

    100K

    SCK 13

    MOSI 11

    10

    VOut

    100nF

    5V

    100K

    SCK 13

    MOSI 11

    10

    VOUT

    CS

    SCK

    SDI

    VSS

    VREF

    LDACMCP4921

    VDD

    VOUT

    CS

    SCK

    SDI

    VSS

    VREF

    LDACMCP4921

    VDD

    10K

    MCP1541100

    +

    10F 16V

    MCP1541

    VIN

    VOUT

    VSS

    MICROCHIP

    MCP1541

    30THE

  • 7/24/2019 Arduino Basic Connections

    30/39

    30ARDUINOTHE

    UNOFFICIAL

    basic connections

    14 APR 2013ver 1 rev 1

    www.pighixxx.com

    BY ND

    RS485 Node

    DMX Controller (Basic)

    VCCR

    RE

    DE

    D

    B

    A

    GNDSN75176

    VCCR

    RE

    DE

    D

    B

    A

    GNDSN75176

    100nF

    5V

    100K

    B

    A

    J1

    J2

    4.7K

    4.7

    K

    56

    J3

    120

    RX/TX

    RX

    TX

    First LastMiddle

    J1 on

    J2 on

    J3 on

    J1 off

    J2 off

    J3 off

    J1 off

    J2 off

    J3 on

    Node termination jumpers config

    Node Node Node Node

    2 INV -

    1 Ref5Opt

    4Opt

    2

    +

    VCCR

    RE

    DE

    D

    B

    A

    GNDSN75176

    100nF

    5V

    100

    OUT1

    2

    3

    ITHE

  • 7/24/2019 Arduino Basic Connections

    31/39

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    x1

    x10

    x100

    x1,000

    x10,000

    x100,000

    x1,000,000

    10%

    5%

    TOLERANCE

    K=x1,000

    M=x1,000,000

    MULTIPLIER

    BLACK

    BROWN

    RED

    ORANGE

    YELLOW

    GREEN

    BLUE

    VIOLET

    GRAY

    WHITE

    IARDUINOTHE

    UNOFFICIAL

    basic connections

    03 APR 2013

    www.pighixxx.com

    BY ND

    ver 1 rev 0

  • 7/24/2019 Arduino Basic Connections

    32/39

  • 7/24/2019 Arduino Basic Connections

    33/39

    31THE

  • 7/24/2019 Arduino Basic Connections

    34/39

    31ARDUINOTHE

    UNOFFICIAL

    basic connections

    15 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    ENABLEB

    INPUT3

    LOGICSUPPLYV

    OLTAGEV

    SS

    GND

    INPUT2

    ENABLEA

    INP

    UT1

    SUPPLYV

    OLTA

    GE

    VS

    OUTPUT2

    OUTPUT1

    CURRENTSENSIN

    GA

    CURRENTSENSIN

    GB

    OUTP

    UT4

    OUTPUT3

    INPUT4

    L298N

    Drive a Motor (L298)

    100nF

    BA

    A K

    1N4007

    A K

    1N4007

    +

    100F 50V

    +

    100F 50V

    OUT

    OUT

    OUT

    OUT

    100nF

    5VVIN

    32

    THE

  • 7/24/2019 Arduino Basic Connections

    35/39

    VCC1A

    GND

    1Y

    2A

    2Y

    3A

    3Y

    4Y

    5Y

    4A

    6A

    6Y

    5A

    SN7414

    SN7474

    VCCCLR

    GND

    D

    CK

    PR

    Q

    Q

    Q

    PR

    Q

    CLR

    D

    CK

    PR

    CLR

    Q

    DCK

    Q

    PR

    CLR

    Q

    D CK

    Q

    1

    2

    32ARDUINOTHE

    UNOFFICIAL

    basic connections

    15 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    Debouncing a Rotary Encoder

    VCC1A

    GND

    1Y

    2A

    2Y

    3A

    3Y

    4Y

    5Y

    4A

    6A

    6Y

    5A

    SN7414

    VCCCLR

    GND

    D

    CK

    PR

    Q

    Q

    Q

    PR

    Q

    CLR

    D

    CK

    SN7474

    100nF

    100nF

    5V

    INDir

    INStep

    B

    A

    C

    +

    +

    1F

    CA

    B

    220

    220

    3K

    3K

    Simple Debouncer

    VCC1A

    GND

    1Y

    2A

    2Y

    3A

    3Y

    4Y

    5Y

    4A

    6A

    6Y

    5A

    SN7414

    5V

    10K4.7

    K

    100nF

    100nF

    Debouncing a Pushbutton

    IN

    6 portsavailable

    5V

    IN

    100nF

    10K

    470

    1N4148

    K A

    33THE

  • 7/24/2019 Arduino Basic Connections

    36/39

    33ARDUINOTHE

    UNOFFICIAL

    basic connections

    16 APR 2013ver 1 rev 1

    www.pighixxx.com

    BY ND

    Drive a Stepper (L293)

    VCC11/2en

    VCC2

    IN1

    OUT1

    GND

    GND

    OUT2

    IN2 IN3

    3/4en

    GND

    OUT3

    IN4

    OUT4

    GND

    L293D

    +

    100F50V

    100nF

    5V

    VCC11/2en

    VCC2

    IN1

    OUT1

    GND

    GND

    OUT2

    IN2 IN3

    3/4en

    GND

    OUT3

    IN4

    OUT4

    GND

    L293D

    100nF

    100F50V

    OUT

    OU

    T

    OUT

    OU

    T

    OUT

    OU

    T

    VIN

    J1

    J2

    +

    34THE

  • 7/24/2019 Arduino Basic Connections

    37/39

    34ARDUINOTHE

    UNOFFICIAL

    basic connections

    16 APR 2013ver 1 rev 1

    www.pighixxx.com

    BY ND

    Arduino Logic Analyzer

    220

    220

    220

    220

    220

    220

    D2

    D3

    D4

    D5

    D6

    D7

    K A

    5.1

    Zener 5.1V

    See instructionsat

    la.pighixxx.com

    LAB edition

    LM358

    VCC1OUT

    1IN-

    1IN+

    GND

    2OUT

    2IN-

    2IN+

    Current Sense

    VCC1OUT

    1IN-

    1IN+

    GND

    2OUT

    2IN-

    2IN+

    LM3

    58

    5V

    100nF

    1

    1K

    5.6K

    IN

    AnalogInput

    35THE

  • 7/24/2019 Arduino Basic Connections

    38/39

    35ARDUINOTHE

    UNOFFICIAL

    basic connections

    25 APR 2013ver 1 rev 0

    www.pighixxx.com

    BY ND

    LAB edition

    Arduino Component Tester (basic)

    470K

    680

    470K

    680

    470K

    680

    A0

    A1

    A2

    D8

    D11

    D10

    D13

    D9

    D12

    Download sketchat

    at.pighixxx.com

    To get fullaccuracy

    use 1% toleranceresistors

    Allways be shure to

    discharge capacitors

    before connecting

    them to the Tester!

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

    Arduino version by PighiXXX

    THE

    IVSimple Transistor Comparison Table

  • 7/24/2019 Arduino Basic Connections

    39/39

    ARDUINO

    THEUNOFFICIAL

    basic connections

    www.pighixxx.com

    IVSimple Transistor Comparison Table

    BC55830V - 100mA

    420@2mA

    cbe

    BC32825V - 800mA

    100@100mA

    cbe

    BC55745V - 100mA

    180@2mA

    cbe

    BC32745V - 800mA

    100@100mA

    cbe

    BC64080V - 1A

    63@150mA

    ecb

    BC54745V - 100mA

    420@2mA

    cbe

    BC33745V - 800mA

    100@100mA

    cbe

    2N222240V - 600mA

    [email protected]

    cbe

    BC55645V - 100mA

    420@2mA

    cbe

    BC54645V - 100mA

    420@2mA

    cbe

    BC54830V - 100mA

    200@2mA

    cbe

    BC33845V - 800mA

    100@100mA

    cbe

    BC63980V - 1A

    40@150mA

    ecb

    BC54930V - 100mA

    200@2mA

    cbe

    BC55930V - 100mA

    200@2mA

    cbe

    BCxxxxxV -xxxmA

    xxx@xxxmA

    cbe

    TRANSISTOR Name

    Pinout

    MAX Collector

    Current

    hFEAmplification

    MAX working

    Voltage

    PNP

    NPN

    100m

    A

    500m

    A

    800m

    A

    1A