KA05_manual (rev4).indd

Transcription

KA05_manual (rev4).indd
KA05
ILLUSTRATED ASSEMBLY MANUAL HKA05P’1
IN/OUT shield
for Arduino®
General purpose INPUT - OUTPUT shield for Arduino®
Features
• For use with Arduino Due, Arduino Uno, Arduino Mega
• 6 analog inputs
• 6 digital input
• 6 relay contact outputs: 0.5A max 30V (*)
• Indicator leds for relay outputs and digital inputs
Specifications
• Analog inputs: 0..+5VDC
• Digital inputs: dry contact or open collector
• Relays: 12V
• Relay contacts: NO/NC 24VDC/1A max.
• Dimensions: 68 x 53mm / 2.67 x 2.08”
(*) It is required to power the Arduino UNO (not supplied) with a 12V DC 500mA power supply (not supplied).
This shield will not work with the Arduino Yún. Use the KA08 or VMA08 with the Arduino Yún.
Subscribing our newsletter?, visit www.vellemanprojects.eu
Forum
Participate our Velleman Projects Forum
Velleman N.V.
Legen Heirweg 33
9890 Gavere
(België)
assembly
hints
1. Assembly (Skipping this can lead to troubles ! )
Ok, so we have your attention. These hints will help you to make this project successful. Read them carefully.
1.1 Make sure you have the right tools:
• A good quality soldering iron (25-40W) with a small tip.
• Wipe it often on a wet sponge or cloth, to keep it clean; then apply solder to the tip, to give it a wet look. This is called ‘thinning’ and
will protect the tip, and enables you to make good connections. When solder rolls off the tip, it needs cleaning.
• Thin raisin-core solder. Do not use any flux or grease.
• A diagonal cutter to trim excess wires. To avoid injury when cutting excess leads, hold the lead so they cannot
fly towards the eyes.
• Needle nose pliers, for bending leads, or to hold components in place.
• Small blade and Phillips screwdrivers. A basic range is fine.
 For some projects, a basic multi-meter is required, or might be handy.
1.2 Assembly Hints :
• Make sure the skill level matches your experience, to avoid disappointments.
• Follow the instructions carefully. Read and understand the entire step before you perform each operation.
• Perform the assembly in the correct order as stated in this manual.
• Position all parts on the PCB (Printed Circuit Board) as shown on the drawings.
• Values on the circuit diagram are subject to changes, the values in this assembly guide are correct*.
• Use the check-boxes to mark your progress.
• Please read the included information on safety and customer service.
* Typographical inaccuracies excluded. Always look for possible last minute manual updates, indicated as ‘NOTE’ on a separate leaflet.
1.3 Soldering Hints :
1. Mount the component against the PCB surface and carefully solder the leads.
2. Make sure the solder joints are cone-shaped and shiny.
3. Trim excess leads as close as possible to the solder joint.
DO NOT BLINDLY FOLLOW THE ORDER OF THE
COMPONENTS ON THE TAPE. ALWAYS CHECK THEIR
VALUE ON THE PARTS LIST!
-5-
Construction
I CONSTRUCTION
5 Transistors
3 Zenerdiodes






1 Ceramic capacitor
c...
ZD1 :
ZD2 :
ZD3 :
ZD4 :
ZD5 :
ZD6 :
5V1
5V1
5V1
5V1
5V1
5V1
.
c..
4 LED
2 Diodes
Watch the polarity!




D1 : 1N4148
D2 : 1N4148
D3 : 1N4148
D4 : 1N4148








D5 : 1N4148
D6 : 1N4148
D7 : 1N4148
D8 : 1N4148
D9 : 1N4148
D10: 1N4148
D11: 1N4148
D12: 1N4148
C (-)
BC547B
BC547B
BC547B
BC547B
BC547B
BC547B
R...






LD1
LD2
LD3
LD4
LD5
LD6
:
:
:
:
:
:
Red
Red
Red
Red
Red
Red
Watch the polarity!
C (-)
T1:
T2:
T3:
T4:
T5:
T6:
6 Resistors
Watch the polarity!
 C2: 100nF (104)












LD7 :
LD8 :
LD9 :
LD10 :
LD11 :
LD12 :
-6-
Green
Green
Green
Green
Green
Green












R1 :
R2 :
R3 :
R4 :
R5 :
R6 :
R7 :
R8 :
R9 :
R10:
R11 :
R12:
1K
1K
1K
1K
1K
1K
4K7
10K
4K7
10K
4K7
10K
(1 - 0 - 2 - B)
(1 - 0 - 2 - B)
(1 - 0 - 2 - B)
(1 - 0 - 2 - B)
(1 - 0 - 2 - B)
(1 - 0 - 2 - B)
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)


















R13
R14
R15
R16
R17
R18
R19
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R30
7
Construction


















R13:
R14:
R15:
R16:
R17:
R18:
R19:
R20:
R21:
R22:
R23:
R24:
R25:
R26:
R27:
R28:
R29:
R30:
4K7
10K
4K7
10K
4K7
10K
470
470
470
470
470
470
4K7
4K7
4K7
4K7
4K7
4K7
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)
(4 - 7 - 2 - B)
(1 - 0 - 3 - B)
(4 - 7 - 1 - B)
(4 - 7 - 1 - B)
(4 - 7 - 1 - B)
(4 - 7 - 1 - B)
(4 - 7 - 1 - B)
(4 - 7 - 1 - B)
(4 - 7 - 2 - B)
(4 - 7 - 2 - B)
(4 - 7 - 2 - B)
(4 - 7 - 2 - B)
(4 - 7 - 2 - B)
(4 - 7 - 2 - B)
7 Terminal blocks
8 Relays
9 Electrolytic capacitors
 RY1
 RY2
 RY3
 RY4
 RY5
 RY6
 C1 : 100µF
!
10 Male header
CUT
 8 x 2p
(INPUTS)
Watch the polarity!
CUT
CUT
CUT
2 X 6 pins
2 X 8 pins
 6 x 3p
(OUTPUTS)
-7-
Connection diagram
II CONNECTION DIAGRAM
0
1
2
3
4
5
6
7
1 OUTPUT
MAX. 24VDC / 1A
6 RELAY OUTPUTS
(Max 1A / 30V)
6 DIGITAL INPUTS
2 DIGITAL INPUTS
8
9
10
11
12
13
AREF
101011101011001...
...
6 ANALOG INPUTS
3 ANALOG INPUTS
0 ... 5V
8
PWM
ANALOG
-8-
4K7
...
9
DOWNLOAD SAMPLE CODE FROM KA05 PAGE ON WWW.VELLEMAN.BE
R7
R9
4K7
Schematic diagram
Vin
5V
AI1
SK1
SK3
1
2
3
4
5
6
7
8
1
2
3
4
5
6
0
1
2
3
4
5
6
7
1
2
3
4
5
6
7
8
1
2
3
4
5
6
GND
-
R20
470
LD9
LED3RL
R21
470
LD11
LED3RL
LD10
LED3RL
R23
470
R22
470
LD12
LED3RL
AI2
R24
470
AI3
D1
2
DI1
1N4148
D2
Vin
5V
3V3
RST
LD8
LED3RL
R19
470
ARDUINO UNO SK4
SK2
8
9
10
11
12
13
AREF
C2
100n
A5
A4
A3
A2
A1
A0
LD7
LED3RL
C1
100µ/16-25V
AI4
3
DI2
1N4148
D3
GND
AI5
4
DI3
1N4148
D4
GND
AI6
5
DI4
R25
A0
4K7
R26
A1
4K7
R27
A2
4K7
R28
A3
4K7
R29
A4
4K7
R30
A5
4K7
1N4148
D5
ZD1
5.1V 0.4W
6
DI5
1N4148
D6
7
DI6
1N4148
Vin
Vin
3
2
1
D7
1N4148
LD1
LED3RL
8
T1
BC547
4K7
R8
10K
10
4K7
R12
10K
GND
4K7
3
2
1
GND
GND
11
R16
10K
4K7
D10
1N4148
AI3
AI6
SK13
JP2
SK12
JP2
AI5
SK14
JP2
-
GND
RY6
RELAY TSC112D3H
3
2
1
13
GND
R17
4K7
T6
BC547
R18
10K
GND
GND
-9-
DI1
SK10
D12
1N4148
LD6
LED3RL
T4
BC547
R14
10K
AI4
AI2
SK11
JP2
Vin
R6
1K
SK8
R13
-
GND
LD4
LED3RL
T2
BC547
R10
10K
4K7
RY4
RELAY TSC112D3H
LD2
LED3RL
R9
12
Vin
D8
1N4148
ZD6
5.1V 0.4W
T5
BC547
GND
RY2
RELAY TSC112D3H
R4
1K
3
2
1
AI1
R15
GND
SK6
ZD5
5.1V 0.4W
SK9
D11
1N4148
LD5
LED3RL
T3
BC547
Vin
9
3
2
1
D9
1N4148
R11
GND
R2
1K
R5
1K
SK7
LD3
LED3RL
R7
ZD4
5.1V 0.4W
RY5
RELAY TSC112D3H
RY3
RELAY TSC112D3H
R3
1K
SK5
ZD3
5.1V 0.4W
Vin
RY1
RELAY TSC112D3H
R1
1K
ZD2
5.1V 0.4W
GND
GND
3
2
1
DI2
DI5
DI3
SK15
JP2
DI4
SK17
JP2
SK16
JP2
DI6
SK18
JP2
5V
Led
PCB
- 10 -
Leds and how to use them
Leds feature a specific voltage
drop, depending on type and
colour. Check the datasheet for
exact voltage drop and rated
current !
Never connect leds in parallel
How to Calculate the series resistor:
Example: operate a red led (1.7V) on a 9Vdc source.
Required led current for full brightness: 5mA (this can be found in the datasheet of the led)
Supply voltage (V) - led voltage (V)
required current (A)
9V - 1.7V
0.005A
= series resistance (ohms)
closest value :
use a 1k5 resistor
= 1460 ohm
Required resistor power handling=
voltage over resistor x current passed trough resistor
(9V - 1.7V) x 0.005A = 0.036W
a standard 1/4W resistor
will do the job
open collector outputs
An open collector output can be compared to a switch which switches to
ground when operated
LEDs in series:
Example: 3 x red led (1.7V) on 9V battery
Required led current for full brightness: 5mA
(this can be found in the datasheet of the led)
Supply voltage (V) - (number of leds x led voltage (V))
required current (A)
9V - (3 x1.7V)
0.005A
Example: How to switch an LED by means of an open collector output
= series resistance (ohms)
use an
820 ohm resistor
= 780 ohm
The new Velleman Projects catalogue is
now available. Download your copy here:
www.vellemanprojects.eu
Modifications and typographical errors reserved - © Velleman nv. HKA05’IP (rev.4)
Velleman NV, Legen Heirweg 33 - 9890 Gavere.