Need help with automatically changing aquarium water setup

Yep that should be ok.

1 Like

You also need to remember to verify that you aren’t going to be overloading any of the pins on the NodeMCU (which from memory are only rated for 12ma each) and especially also the entire load on the NodeMCU built-in 3.3v power supply (I don’t remember what that spec is so you’ll have to check).

You might start running into those limits when adding relays and potentially future sensors.

I’m not saying you will but it’s something to keep in mind.

1 Like

The relay board shown has opto-isolated inputs and a separate relay coil power supply which would negate that issue.

I thought it was 16mA per i/o and 56mA total. But I’m going from memory too.

2 Likes

Hi all. I have been working on this and am currently stuck. I have 2 flow sensors connected to GPIO4 and GPIO 5.

YAML as follows:

sensor:
  - platform: pulse_counter
    name: "Aquarium-Drain Sensor"
    pin: GPIO4
    update_interval: 5s
    unit_of_measurement: "L/hr" 

  - platform: pulse_counter
    name: "Aquarium-Inlet Sensor"
    pin: GPIO5
    update_interval: 5s
    unit_of_measurement: "L/hr" 

The problem is when there is flow in one sensor, both are showing readings. One should still remain 0. Can the ESP8266 handle 2 sensors together?

Also, the ESP device gets logged out and status becomes unavailable.

I have both my flow sensors 5v and ground connected to the same terminal. Is this a problem?

EDIT: When water flows through the inlet sensor, i only get value from that sensor correctly. but if water flows through drain, then i get value from both sensor which is wrong.