• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sensor-Node_RED – Activating a Light

Q&A Forum › Category: Home Automation › Sensor-Node_RED – Activating a Light
0 Vote Up Vote Down
Uche Mbanaso asked 1 year ago

I am using a photodiode sensor to control a physical light. How will activate a Relay for the physical light when the sensor triggers ( like night) to activate a Relay using Node_RED.

Is there a generalprinciple for using sensors with Node_RED to activate physical objects?

Question Tags: #SensorNode-RedPiActivationLight
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
You need to have some sort of input to read the sensor, then compare that value and control an output accordingly.
For example, see the Smart Home eBook Unit 8.2.
 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Uche Mbanaso answered 1 year ago

the sensor is connected to pin 26
I published as: esp2/digital/notify
the input pin is about 0.23v while at trigger the pin is about 3.26v
at the Function the Switch I used >= and <= to check the values but is not working. How do I debug at Node_red to know the output of esp2/digital//notify?

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

You just have to wire a debug node. Then, it will print the results on the debug tab.
Check page 57.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.