Can someone please help. I am new to all this. I am trying to create a simple circuit. What I am after is for a timer to activate a relay at 10pm for my father in laws bedside lamp. Along side this I need a push button that turns off the light but also turns it back on shoud he need it during the night. Please help.
Hi, welcome to the forum.
- What hardware will node-red run on?
- How is this relay connected and how is it activated?
- What type of button will you have? How is it connected?
PS: As you are new to "all this", I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
Sorry for being so vague. I am running node red on a raspberry pi 3+. The relay is activated via the gpio pins and I am using a straight forward push button also going to the gpio pins
Can i suggest to you as you are new with all of this that you might want to simplify this a little and also make it easier for your Father to manage ?
Get one of the Sonoff wall plugs - you can set a schedule to turn the lamp on and off with this plug and can also use the wall switch to control it
How are you presently activating the gpio pins on the RPi? I presume Python code or something? I have found that using Pi plates like this one for $42 which have all the nodes that enable communication are the easiest way for me to get Node-RED to work with the gpio on the pi.
But there are literally dozens of ways to accomplish what you are asking.
Another option might be to purchase one of the many smart bulbs (they come in different fittings).
This one has a remote and can also be controlled by Alexa. So your father could control it by the remote and/or Alexa (assuming you have one).
In your original description you said you were using a GPIO pin to operate a relay.
Please take extreme care if you are using a relay to switch "mains" electricity.
Make sure there is NO possibility to touch any connections - as mains can kill.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.