manual switch with relay

I am new to Arduino. I have done project for bulb with relay but not able to connect with manual switch and relay. Anybody is having any idea how i can do.

Thank you for your help.

Would you like to connect a switch and a relay to an arduino? What would you like to happen when the switch is operated? Is the realy to be off or on when the switch is open?

There are some things to know about relays and arduino or any electronics that connenct to the relay. Two important things are to know the relay coil voltage and current - these should match the arduino's limits on outputs. Also there is danger to the arduino when the realy switches off - the arduino needs protection using a diode to bypass back-emf genreted when the coil de-energises.

So, there's a bit to think about. The main thing is to decide what you want the circuit to do exactly then describe that and maybe have a look on a google search for ideas. At that point the forum can help with your design and ideas.

Hi,

It sounds like you've already got your relay working with your Arduino. To get your switch to control your relay, check out this guide on connecting up a pushbutton to your Arduino. Replace the pushbutton in the example with your switch, and you should be good to go!