Hi All,
Now focused on a simple water level sensor to send an alert when the water level in my little hydroponic setup drops.
I've found this recommendation for how to wire a float sensor to the Pi:
This calls for wiring in a 10k Ohm resistor between one leg of the sensor connected to GPIO4 and GND, other leg to 3.3V.
I have two questions - does this wiring look proper? Is this correct way to wire this up?
Second - how to make an entry for this in the Hardware Settings tab to monitor the sensor and send an email when state changes? Simple on/off or off/on trigger...
Thanks again - really enjoying working with this during 'stay-at-home'. Rand
Hi There,
for the actuator connected to the pump, (pump to be blocked when closed) I suggest the following configuration. Assuming the sensor is connected from GPIO to GND:
In the hardwareSetting table:
In the "interrupt page" under the actuator that will drive the pump:
NOTE: when the GPIO pin is closed to GND, the actuator will be set to zero and the blocking period will start immediately. When the circuit is opened again, you have to wait around 1 minute to get the blocking state removed.
For more info I just wrote an article on hot to configure the interrupts. Feedbacks are welcome.
More on interrupts setting.
Regards,
Angelo