i have this 2 channel relay board and want to controll with arduino , but as soon i connect IN1 or IN2 with any pin it will activate relay, so it activate on both cases wether the pin is LOW or HIGH,
Example:
i connect relay IN pin with PIN 2 in arduino
if i run digitalWrite(2,LOW) or digitalWrite(2,HIGH); relay is active(ON), if i remove wire from pin2 relay is off.
The square chip by the jumper is an opto isolator with an led and photo transistor. The led in it can be triggered by 5v and the photo transistor side turns on and passes the 12v through the primary side of the relay.
If you don't have a multimeter, it's time to get one... A cheap one is fine...
You have 3 conditions -
Unconnected
Connected and high
Connected and low.
If you measure the voltage at the relay board's input under the 3 conditions and that will probably give you a clue and help you solve the problem.
Or, an LED (with the usual series resistor) may also be helpful. You can make sure the LED goes on & off, and maybe there will be different brightness levels.