ArduinoGeneral

Relay Shield for Arduino V2.1 : light status

userHead gipi 2015-02-04 06:32:22 4035 Views3 Replies
Hi there.

I’m a newbie and I have a doubt controlling a light and reading its status with the Relay Shield for Arduino V2.1.

Let me explain to you what I would like to do. Using an Arduino UNO (or MEGA) and the Relay Shield for Arduino V2.1 I would like to turn on/off a light and read the status of the light.

• This light is already connected to an Existing Relay and related electric switch (classical European home circuit).

• I think to pilot the existing relay with the shield relay (such as an added electric switch).

1) Arduino -> (digital PIN) Relay Shield #1 (analog PIN) -> Existing Relay -> Light

• I would like also read the Light status from the output of the existing relay.

2) Existing Relay (output) -> (analog PIN) Relay Shield #2 (digital PIN) -> Arduino

Is the shield able to measure the voltage from the analogical Input and get out the result to the digital Output?

I dfrobot in Italy so the wallplug voltage is 230v.

Tnx.
2015-02-09 02:13:38 Hi leff and Jose,

Fist, Thank you for yours answers.

I’m reading that the shield not accept the 230V high power, you are right. The solution to connect a light sensor directly ( [url=https://www.dfrobot.com/wiki/index.php/DFRobot_Ambient_Light_Sensor_(SKU:DFR0026_)]https://www.dfrobot.com/wiki/index.php/DFRobot_Ambient_Light_Sensor_(SKU:DFR0026_)[/url] ) is a god solution if the Arduino is wired connected. In my project I would like that sensors and the shield are wirelessly controlled (via Xbee/bluetooth/WPM).

Have you an idea/solution to suggest me ?

Gipi
userHeadPic gipi
2015-02-04 20:22:37 Gipi,

you can't connect a 230V high power to a low power device. Be very careful when working with 230V !
You need another device to read High power voltage or current and then send this information to arduino.
We have some current and voltage sensors, but not sure if it will apply to your purpose.

I suggest you to connect a light sensor directly in order to check whether or not the light is on, and its light strength.
[url=https://www.dfrobot.com/wiki/index.php/DFRobot_Ambient_Light_Sensor_(SKU:DFR0026_)]https://www.dfrobot.com/wiki/index.php/DFRobot_Ambient_Light_Sensor_(SKU:DFR0026_)[/url]

This way, you dont need to interface to 230V unless for the relay.
But again, be really careful. The relay should be protected from accidental touch when powered on. A box or casing would be ideal
userHeadPic Jose
2015-02-04 18:09:20 hi gipi,

I am not sure I got your meaning, but the relay is only perform as a switch, and I think this tutorial would do some help.[url=https://www.dfrobot.com/wiki/index.php/Relay_Shield_for_Arduino_V2.1_(SKU:DFR0144)]https://www.dfrobot.com/wiki/index.php/Relay_Shield_for_Arduino_V2.1_(SKU:DFR0144)[/url]

and the 230V is ok for the relay to drive, but Warning: you should be very careful not to touch the 230V once they are power on.

the A* PIN is for analog read, you can use the Function in arduino to transform the analog value(0-5V supported) to digital value.(0-1024)
userHeadPic Leff