easyeasy with wemos d1 mini, some pins not allowed for relays

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
barrymac
New user
Posts: 2
Joined: 03 May 2021, 17:20

easyeasy with wemos d1 mini, some pins not allowed for relays

#1 Post by barrymac » 03 May 2021, 17:27

I have a wemos D1 mini with two DS18b20 temp sensors on GPIO-14 and an fs300a water flow sensor on port GPIO-0

I also wired up a dual relay board to GPIO-4 and 5 but now I find that these ports are not selectable in the GUI for adding relays.

Can anyone tell me why this is? and if there's a workaround?

I have glued in this board and so it will be a pain to extract it and re-wire it.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: easyeasy with wemos d1 mini, some pins not allowed for relays

#2 Post by TD-er » 03 May 2021, 17:47

GPIO 4 & 5 are default assigned to I2C.
If you don't need I2C, you can set those pins on the Hardware tab to -1 (not set).
Then those pins should be usable.

Make sure to check this page: https://espeasy.readthedocs.io/en/lates ... on-esp8266
GPIO 0 & 2 must be high at boot and GPIO-15 is pulled down so that one is low if the unit is off. It should also be low during boot.

barrymac
New user
Posts: 2
Joined: 03 May 2021, 17:20

[SOLVED] Re: easyeasy with wemos d1 mini, some pins not allowed for relays

#3 Post by barrymac » 05 May 2021, 23:34

Thanks ever so much for such a helpful post!

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 25 guests