Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Arduino Uno. I want to control my room lamp both manually and over the network, so when I switch off my lamp manually, how do I get acknowledgement over the network that lamp is off ?

share|improve this question
    
Disconnect the switch from the lamp and instead connect it to a digital pin on the Arduino. Have the Arduino toggle the lamp when the switch changes position. – Gerben Aug 20 at 20:03
    
Or attach a lightsensor to see if the bulb is on. – Gerben Aug 20 at 20:04
    
@Gerben not nice. – PhillyNJ Aug 20 at 21:09
    
Please read How do I ask a good question?. What do you mean by "manually"? What do you mean by "acknowledgement over the network"? I don't know why the above comments have been reported to the moderators. – Nick Gammon Aug 21 at 9:09
1  
@Gerben - My mistake.- I read it wrong. Sorry – PhillyNJ 2 days ago

There are a number of possibilities you could employ to confirm whether the lamp is switched on.

As mentioned in the comments, a practical method is for you to also include a light sensor (or photocell), the set up is shown in the Arduino Basics blog article Arduino UNO: PhotoCell - sensing light.

A major benefit of this setup is to also check that the lamp globe still works when switched on.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.