2010年6月20日日曜日

Controlling relay to Arduino

This practice is very useful for you.

Since it is allow you to control other electrical devices that use regular 120V power.

Be safe when you do this experiment. Never touch 120V exposed cables and relay.

Requirement

Arduino

Relay(I was already setup a relay to ready to use this experiment)

Power supply

Wires

Switch

Resistor


Circuit

The relay, which I used for this experiment, has a  three pins for Arduino.

one is for 5V. one is for ground. and rest of it is for controlling which you need to connect to digial pin.

Program

 Basically, you will build up program that send a 1 or 0 to the pin that you connect the relay.

You will got  data of 0 and 1 sent from the switch.


WorkPictures















0 件のコメント:

コメントを投稿