im using 4 channel relay to switch the motor pump. but when the arduino output is high and i check first with led. the led behavior were high too but when i attached to the relay input IN1, the relay were low. its like reversed action(the arduino is high, but relay was low then when arduino output is low, suddenly the relay was high. i try to edit the code hoping if i set arduino output is low then relay will be high but its still the same, its reversed. arduino output is low but the relay become high. is there any way to make the relay to become high when the digital output is high?
however.. i didnt have the the actual circuit act but im using the digital pin as the output and some switches. the project im work on is the automatic aquarium pump and water change which is the pump will automatically refill the water actuated by the float switch and will automatically drain the water and refill the new water in certain time.
im using pin 13 as the output.. and the pin 1 as the input which is a switch
as in picture im using a led as a output. but as soon i change to the relay, it become what i just said at the above
i try to edit the code
- what code? Please post your schematic (circuit). Edit your question to include these details and I am sure we will be able to help you.