- Thread starter
- #11
- May 2, 2015
- 546
- 71
- 134
connecting the hardware together
I am not responsible for any damage. Smoke can be considered part of learning.
some of the connection are going to be done via the breadboard as certain hardware will share the same pins and this will make the wiring easier
This in listed in steps to allow you to see if you have made a mistake before getting to a point you are confused
part 1
install breadboard power supply to breadboard and set jumper to 5v. Plug in power brick #1 then plug into the breadboard power supply.
Power light should indicate that supply is online
(unplug power brick when adding wiring)
part 2 lcd
if you have loaded the arduino with the program provided then you are ready to go to the next step.
wire#1 arduino negative to breadboard negative
wire#2 breadboard positive to lcd negative
wire#3 breadboard negative to lcd negative
wire#4 uno A4 to breadboard A1 (mega sda pin 20)
wire#5 uno A5 to breadboard A2 (mega scl pin 21)
wire#6 breadboard b1 to lcd pin marked sda
wire#7 breadboard b2 to lcd pin marked scl
test by plugging in power brick to #2 to arduino and power brick #1 to the bead board power supply
lcd should light up and something should be displayed. If nothing is displayed check screw on back of lcd to adjust brightness, Next check wiring, then check that you entered the correct number in the code as explained during arduino set up..(the 0x3f).....the 0 is a zero not the letter o.
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
part 3 rtc
push the rtc into the bread board at i1 to i6 (some rtc are different so look at the rtc and follow the names on the board)
wire#8 breadboard positive to rtc postive
wire#9 breadboard negative to rtc negative
wire#10 breadboard c1 to sda pin on rtc
wire#11 breadboard c2 to scl pin on rtc
plug in and test.....you should now see the seconds ticking on the clock.
part 4 keyboard
wire#12 arduino pin 4 to breadboard A10
wire#13 arduino pin 5 to breadboard A11
wire#14 arduino pin 6 to breadboard A12
wire#15 arduino pin 7 to breadboard A13
wire#16 breadboard b10 to keypad button 2
wire#17 breadboard b11 to keypad button 1
wire#18 breadboard b12 to keypad button 3
wire#19 breadboard b13 to keypad button 4
wire#20 keypad common to breadboard neagtive
plug in and test..... 1 key should make the screen change 2 keys should be up and down and the last key will return to home screen.
If no keys work check wiring common has to be negative on bread board.
if keys work but in the wrong order swap wires around between keys until you get them in the order you are happy with (do not change the common wire)
part 5
connecting the dht22 sensor
wire#21 arduino positive to breadboard A20
wire#22 dht22 positive to breadboard b20
wire#23 dht22 negative to breadboard negative
wire#24 arduino pin 2 to breadboard e21
wire#25 dht22 sense pin to breadboard d21
10k resistor from breadboard c21 to breadboard positive (anyway around)
test and you should see after a few seconds temp and humidity displayed on the screen
now is a good time to use the buttons and screen to do a factory reset.
part 6
connecting the relays
by now you should understand the basics so im just going to list arduino to relay pins.
wire#26 relay pin marked positive to breadboard positive
wire#27 relay pin marked negative to breadboard negative
wire#28 arduino A0 to relay in1 (heater)
wire#29 arduino A1 to relay in2 (turner relay 1)
wire#30 arduino A2 to relay in3 (turner relay 2)
wire#31 arduino A3 to relay in4 (alarm relay)
wire#32 arduino 10 to relay in5 (humidity relay)
wire#33 arduino 12 to relay in6 (light relay)
part 6 options
if you are using a tilt table turner or a passive speaker then pick the wiring connections are listed below
(tells when turner is tilted on cam or reversing)
Wire#34 Breadboard negative to micro switch (turner stop)
wire#35 arduino 8 to micro switch (turner stop)
(tells if turner went to far only used on reversing turner)
Wire#36 Breadboard negative to micro switch (E stop)
wire#37 arduino 9 to micro switch (E stop)
(audio alarm passive speaker)
wire#38 breadboard negative to speaker negative (via breadboard)
wire#39 arduino pin 11 to speaker positive (via breadboard)
Thats the arduino side wired.
I am not responsible for any damage. Smoke can be considered part of learning.
some of the connection are going to be done via the breadboard as certain hardware will share the same pins and this will make the wiring easier
This in listed in steps to allow you to see if you have made a mistake before getting to a point you are confused
part 1
install breadboard power supply to breadboard and set jumper to 5v. Plug in power brick #1 then plug into the breadboard power supply.
Power light should indicate that supply is online
(unplug power brick when adding wiring)
part 2 lcd
if you have loaded the arduino with the program provided then you are ready to go to the next step.
wire#1 arduino negative to breadboard negative
wire#2 breadboard positive to lcd negative
wire#3 breadboard negative to lcd negative
wire#4 uno A4 to breadboard A1 (mega sda pin 20)
wire#5 uno A5 to breadboard A2 (mega scl pin 21)
wire#6 breadboard b1 to lcd pin marked sda
wire#7 breadboard b2 to lcd pin marked scl
test by plugging in power brick to #2 to arduino and power brick #1 to the bead board power supply
lcd should light up and something should be displayed. If nothing is displayed check screw on back of lcd to adjust brightness, Next check wiring, then check that you entered the correct number in the code as explained during arduino set up..(the 0x3f).....the 0 is a zero not the letter o.
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
part 3 rtc
push the rtc into the bread board at i1 to i6 (some rtc are different so look at the rtc and follow the names on the board)
wire#8 breadboard positive to rtc postive
wire#9 breadboard negative to rtc negative
wire#10 breadboard c1 to sda pin on rtc
wire#11 breadboard c2 to scl pin on rtc
plug in and test.....you should now see the seconds ticking on the clock.
part 4 keyboard
wire#12 arduino pin 4 to breadboard A10
wire#13 arduino pin 5 to breadboard A11
wire#14 arduino pin 6 to breadboard A12
wire#15 arduino pin 7 to breadboard A13
wire#16 breadboard b10 to keypad button 2
wire#17 breadboard b11 to keypad button 1
wire#18 breadboard b12 to keypad button 3
wire#19 breadboard b13 to keypad button 4
wire#20 keypad common to breadboard neagtive
plug in and test..... 1 key should make the screen change 2 keys should be up and down and the last key will return to home screen.
If no keys work check wiring common has to be negative on bread board.
if keys work but in the wrong order swap wires around between keys until you get them in the order you are happy with (do not change the common wire)
part 5
connecting the dht22 sensor
wire#21 arduino positive to breadboard A20
wire#22 dht22 positive to breadboard b20
wire#23 dht22 negative to breadboard negative
wire#24 arduino pin 2 to breadboard e21
wire#25 dht22 sense pin to breadboard d21
10k resistor from breadboard c21 to breadboard positive (anyway around)
test and you should see after a few seconds temp and humidity displayed on the screen
now is a good time to use the buttons and screen to do a factory reset.
part 6
connecting the relays
by now you should understand the basics so im just going to list arduino to relay pins.
wire#26 relay pin marked positive to breadboard positive
wire#27 relay pin marked negative to breadboard negative
wire#28 arduino A0 to relay in1 (heater)
wire#29 arduino A1 to relay in2 (turner relay 1)
wire#30 arduino A2 to relay in3 (turner relay 2)
wire#31 arduino A3 to relay in4 (alarm relay)
wire#32 arduino 10 to relay in5 (humidity relay)
wire#33 arduino 12 to relay in6 (light relay)
part 6 options
if you are using a tilt table turner or a passive speaker then pick the wiring connections are listed below
(tells when turner is tilted on cam or reversing)
Wire#34 Breadboard negative to micro switch (turner stop)
wire#35 arduino 8 to micro switch (turner stop)
(tells if turner went to far only used on reversing turner)
Wire#36 Breadboard negative to micro switch (E stop)
wire#37 arduino 9 to micro switch (E stop)
(audio alarm passive speaker)
wire#38 breadboard negative to speaker negative (via breadboard)
wire#39 arduino pin 11 to speaker positive (via breadboard)
Thats the arduino side wired.