Help with andruino nano controlling relays by temperature

Hello guys

I'm new with Andruino and Have some problems

I have program for controlling 5 relays by temperature but cant get it working :frowning:

I have Dallas sensors connected into D2

Where I need to connect relays output ?? I tried all of them and no output :confused: for relays

Can some one have look and help.

thank for help

Any of the digital pins (including the analog inputs) can be set to output using the pinMode command. In setup() pinMode(pin, OUTPUT) will set the pin to output. You will very likely need to drive the relay coil with a transistor as the digital outputs can safetly supply only about 20mA. There should also be a flyback diode across the relay coil to protect the transistor from the inductive kickback when the coil is de-energized. Do you have the specs for the relays?

relay connection

thank you for replay

This is my relay board optic relay ( the are realy sensitive )

Can you let me know where i should connect them

Is this program ok ??

please see my relay board

relay description:

relay link shop

Features: 8 channel 2 AMP Solid State Relay board Control 8 loads of up to 2 amps each at 120V or 240V AC. Good for lighting, holiday displays etc. With 8 solid state relays: 2A at 100 to 240VAC. (50/60Hz) Size: 130x 60x 15mm Power supply: 5V DC(160mA) Input control signal voltage: (0-0.5V low stage SSR is OFF) (2.5-20V high stage SSR is ON) SSR specification: Manufacturer: OMRON Part number: G3MB-202P, 5V version Isolation: Phototriac Zero cross: Yes Rated output load: 2A at 100 to 240VAC.(50/60Hz) Load type: General purpose Package included: 1 x 8 Channel 5V solid state relay module board

Can you post your sketch? Hard to help someone when they provide very little info. Check out this wiki on relays and the commands required in your sketch. Also for future reference you should look for opti-isolated relays to protect your board.

Wiki link - http://arduino-info.wikispaces.com/ArduinoPower

Sorry my iPad won't let me make that an actual link.