Which gpio port?

if i want to use the NO port of a D1 relay shield connected to a esp8266. which port should i use.
what i am aiming to do is to use NO to control a output device. but i am not sure which gpio port/ port to use

The 3 relay outputs, NO, COMMON and NC are not connected to any of the pins of the ESP8266

Why would they be ?

then is it still possible for me to use NO port to control output whether it should be on/ off?

You can do it by why would you ?

You have a input signal coming into pin D1 and your sketch could read the state of the input and based on its value cause the state of an output pin to change. No need for a relay to do this

Where is the input coming from and what sort of device are you trying to control ?

I am doing something like this.


So the idea is that once a condition is met i need to turn on the fan. but the esp8266 i am using is the D1 mini wemos esp8266

OK, but you don't need to connect the NO relay output to a pin on the ESP8266.

As shown in your own diagram the relay COMMON and NO connections are a normally open switch that is closed when the relay is activated. You can use that switch to turn the fan on and off

um, I am not sure how to do that? For example the temperature in a room is high and i want to turn on the fan automatically, how do i do that?

ok nvm i got it. thanks for your help

I am glad that you get there

Good luck with your project

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.