Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 20 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
20
Dung lượng
8,91 MB
Nội dung
www.pighixxx.com BY ND 03 APR 2013 ver rev 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Ω A C IN 470Ω 10KΩ 100nF IN K E IN To reduce the interferences add a capacitor Vin LOW A B K C NC E 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 rev THE UNOFFICIAL Dual LEDs or bi-color LED LED clusters +12V 5V ARDUINO 470Ω 470Ω basic connections A K A #Leds Resistor Value A Connect a Led 1K 820 750 680 470 390 HIGH K 5V 470Ω OUT A A LOW K A K K A K 470Ω Led goes ON when pin is set to LOW A K OUT Leds goes ON when pin is set to LOW K NPN Connect a Lamp (DC Low Voltage) Connect a Led 2.2KΩ OUT C A E E K B B 1N4007 K OUT C 2N2222 Led goes ON when pin is set to HIGH K A A Lamp goes ON when pin is set to LOW NPN E B BC337 2.2KΩ 470Ω C OUT A K www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL ARDUINO Connect an Audio Amplifier Connect a Relay +5V 12V basic connections Relè 100Ω A OUT K 1µF RCA A K 1KΩ 1N4007 Relay goes ON when pin is set to HIGH NPN C 2.2KΩ B OUT C E E B BC337 Connect a Buzzer Connect a Mosfet +48V 100Ω OUT Mosfet excited when pin is set to HIGH GDS IRL540 G 100Ω 22KΩ OUT D OUT MAX 2.5A Buzzer S Reccomended only for Switch or in Low frequency applications www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL Connect a Speaker ARDUINO basic connections 8Ω 100KΩ 1KΩ +5V NPN C 10µF 16V 100Ω 10µF 16V B OUT 100Ω 22KΩ E 100µF 16V C E E C B B 2N2222 A B K NC NC E Connect a Triac TLP3020 470Ω A 1KΩ 100Ω OUT 1/2 W A2 Yuou can use a PWM pin 100nf TRIAC K G A1 100nf 630V AC IN www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL Connect a RGB Led Strip +12V ARDUINO basic connections 100KΩ OUT You can also use a PWM pin D G 100Ω 100KΩ R B S D G 100Ω OUT 100KΩ A +12 G S OUT Connect a DC Motor D G 100Ω S K 1N4007 GDS IRL540 Connect an Encoder Clockwise K Fase 1(A) 1µF 10KΩ A IN A Fase 2(B) C 10KΩ IN B 100KΩ OUT D 100nF G 100Ω Set Pin to HIGH Motor ON Counterclockwise 100nF You can also use a PWM pin S B A C GDS IRL540 www.pighixxx.com BY ND 03 APR 2013 ver rev 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Ω IN/OUT 10KΩ 2N7000 10KΩ IN/OUT 4,7KΩ 5V 10KΩ 3,3V IN/OUT S IN/OUT 2N7000 D G TTL / CMOS converter (6 inputs/outputs) S TTL / CMOS converter +12V G CMOS voltage 10KΩ +5V D 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 E E C B B 2N2222 www.pighixxx.com BY ND 03 APR 2013 ver rev 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 C E E 4,5 - 6V Connect to an external power supply! 10µF C B B 2N2222 www.pighixxx.com BY ND 03 APR 2013 ver rev 10 THE UNOFFICIAL ARDUINO basic connections Segments Display (Common Anode) with MAX7221 14 11 13 16 15 LTC-2623 16 5V DOUT DIG0 SEGD DIG4 SEGDP GND SEGE DIG6 SEGC 11 DIG2 DIG3 DIG7 14 SS DIN MAX7221 MOSI Iset 40ma 30ma 20ma 10ma GND SEGB DIG5 SEGF 16 DIG1 SEGA 13 LOAD CS CLK 13 12 11 10 SEGD DIG4 SEGDP GND SEGE DIG6 SEGC DIG2 DIG7 Current RX 14 DIG0 DIG3 V+ SEGG 15 DOUT 24 15 1.5v RX 2.0v 2.5v 3.0v 3.5v 12K 12K 11K 10K 10K 18K 17K 16K 15K 14K 30K 28K 26K 24K 22K 68K 64K 60K 56K 51K 12 MAX7221 DIN V+ Iset SEGG GND SEGB DIG5 SEGF DIG1 SEGA LOAD CS CLK 13 SCK 0,1µF 10µF www.pighixxx.com BY ND 03 APR 2013 ver rev 11 THE UNOFFICIAL ARDUINO basic connections Connect a LCD HITACHI 44780 compatible use PWM to change LCD brightness Vss 1KΩ D10 Optional Contrast Register Sel R/W Read/Write E Enable D0 Data bit D1 Data bit D2 Data bit 10 D3 Data bit 11 D4 Data bit 12 D5 Data bit B 13 D6 Data bit BC337 14 D7 Data bit 15 A +Backlight 16 K -Backlight D3 C D5 RAW Vee RS D2 D4 GROUND Vdd E D11 Used for 4bit mode D12 10KΩ 5V Connect to Ground if LCD Brightness is not used 270Ω 11 12 13 14 15 16 www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL Out1 Out2 Out3 ARDUINO basic connections OUT Charlieplexing 270Ω OUT1 H=High, L=Low, i=Input Segments Display 270Ω OUT2 5V common 270Ω 270Ω OUT3 OUT OUT 10 OUT OUT OUT OUT A K 10 270Ω OUT OUT 270Ω OUT 270Ω OUT 270Ω OUT www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL ARDUINO basic connections LED Array OUT Segments Display (Common Anode) with Multiplexing 5V common OUT 1KΩ OUT 1KΩ OUT OUT 1KΩ OUT C E B OUT OUT 11 OUT 16 270Ω 270Ω OUT OUT 14 OUT 13 OUT 270Ω x OUT OUT 270Ω 270Ω OUT 270Ω BC337 1KΩ 15 OUT A K 270Ω LTC-2623 OUT 270Ω 16 15 14 13 12 11 10 OUT 270Ω OUT www.pighixxx.com BY ND 03 APR 2013 ver rev B A1 A2 P0 P1 P2 P3 Vss BC337 A0 P4 P5 P6 P7 INT SCL SDA VDD SCL INT P7 P6 PCF8574x SDA A2 P0 P1 P2 P4 ARDUINO Vss RAW GROUND Contrast D2 D1 D0 E Data bit Data bit Data bit Data bit Data bit Data bit Data bit Register Sel 10 D3 Data bit RS Vdd Vee 11 D4 +Backlight 12 D5 -Backlight Enable 13 D6 A 14 D7 K Read/Write 15 R/W 16 11 12 13 14 15 16 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 rev 13 THE UNOFFICIAL ARDUINO basic connections Connect a NOKIA LCD (Basic) Only for 5V Arduino 8 SCK D/C SCE VDD LED SDIN RES GND VOUT SCE SDIN VDD RES GND D/C SCK NOKIA 3110 NOKIA 5110 K A 1N4148 x 5V VDD D/C SCE SDIN RES D12 1.8KΩ D2 1.8KΩ D3 1.8KΩ D4 1.8KΩ D5 1.8KΩ D6 120Ω LED SCK 3.3KΩ 3.3KΩ 3.3KΩ 3.3KΩ 3.3KΩ 4.7µF VOUT GND 3.3KΩ = 1.8KΩ = www.pighixxx.com BY ND 03 APR 2013 ver rev 14 THE UNOFFICIAL ARDUINO Drive a Unipolar Stepper (Basic 1) basic connections 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 External Motor Supply A 12 Not Arduino Supply! www.pighixxx.com BY ND 03 APR 2013 ver rev 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 GPA0 VDD GPB7 RES GPB6 NC GPB4 INTB GPB5 MCP23017 INTA VSS SCL GPA6 GPA7 GPA1 GPB3 VDD GPA2 GPB2 GPB7 20 19 18 17 16 15 14 13 12 11 10 GPB1 GPB6 10KΩ GPB0 GPB5 MCP23017 GPB0 A2 10 SDA 11 SDA A1 12 SCL 13 NC 14 A0 15 16 17 www.pighixxx.com BY ND 03 APR 2013 ver rev THE UNOFFICIAL ARDUINO FTDI Connector basic connections DIY Arduino 5V 16 Simple 5V Power Supply 100nF FTDI A K 10KΩ K IGO + 100nF OUT 5V 47µF 16V + RESET (rx)D0 (tx)D1 D2 D3 D4 330Ω 330Ω 100nF DCIN 12 24V 220µF 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 Out ATMEGA328 A 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 PC6 19 PB5 18 PB4 GND A K 330Ω RESET 5V 17 PB3 www.pighixxx.com Recommended ICSP pinout BY ND 03 APR 2013 ver rev 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 10µF 16V Vo 470Ω Reserved 330Ω Reserved 100µF 16V ChipSel 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 rev 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 K VCC DS1307 VCC 1N4148 x SQW SCL GND SDA Connect to VGA Connect to Composite Video 470Ω 470Ω 470Ω 1KΩ Sync Front Video 11 470Ω 68Ω 68Ω Rear VSync 10 www.pighixxx.com BY ND 03 APR 2013 HSync ver rev THE UNOFFICIAL TOLERANCE ARDUINO ±5% basic connections ±10% BLACK 0 x1 BROWN 1 x10 RED 2 x100 ORANGE 3 x1,000 YELLOW 4 x10,000 GREEN 5 x100,000 BLUE 6 x1,000,000 VIOLET 7 GRAY 8 WHITE 9 I K =x1,000 M =x1,000,000 MULTIPLIER www.pighixxx.com BY ND 03 APR 2013 ver rev ... 16MhZ A 5.1 220Ω Digital Pin Reset 100nF RTS TX RX Vcc CTS GND 1N4007 Out ATMEGA328 A 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... 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... UNOFFICIAL ARDUINO basic connections Segments Display (Common Anode) with MAX7221 14 11 13 16 15 LTC-2623 16 5V DOUT DIG0 SEGD DIG4 SEGDP GND SEGE DIG6 SEGC 11 DIG2 DIG3 DIG7 14 SS DIN MAX7221 MOSI Iset