User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
LEDs
Red LED positive connected to Arduino Uno Analog A0
Green LED positive connected to Arduino Uno Analog A1
Ground legs connected to Arduino Ground
Relays
VCC connected to Arduino 5v
IN1 connected to Arduino D2
IN2 connected to Arduino D3
IN3 connected to Arduino D4
IN4 connected to Arduino D5
Ground connected to Arduino Ground
Keypad
Connected to Arduino D6-D13
Power
9V battery connected to Arduino Ground and VIN when not connected to computer USB
Example code
/* Locked Relays
*
* An SainSmart Uno, Keypad, Relays and some LEDs for fun
*
* Using a password to enable the relays, then selective
* toggle the relays by key.
*
* Needed libraries
* http://arduino.cc/playground/uploads/Code/Keypad.zip
* http://arduino.cc/playground/uploads/Code/Password.zip
*/
#include <Keypad.h>/*
#include <Password.h>/*
int relay1 = 2;
int relay2 = 3;
int relay3 = 4;
int relay4 = 5;
int locked = 1;
int passinput = 0;
int lockedled = 14;
int unlockedled = 15;
long ledflashvar = 0;
long ledflashtime = 300;