Ghost counter increments #22337
Replies: 3 comments 5 replies
-
To make things even stranger, i connected the reed sensor to an ESP8266 Tasmota with only that sensor connected and only one counter configured on GPIO5 with and without external pull-up. I'm completely lost, pease help! |
Beta Was this translation helpful? Give feedback.
-
You may need optocouplers or some filtering/isolation |
Beta Was this translation helpful? Give feedback.
-
I flashed a program that reads the value of the reed pin on the A0 every 10ms. i could not make it go below 1000 whatever valves i started/stopped on the other ESP (GPIO5 connected to A0 and reed sensor). I still got increments on actual reed normal action. So my conclusion is that the pin never goes to LOW unless reed sets it, so there's no magnetic/electric influence when operating the valves or I'm somehow not catching them. At this point what are the chances of being a Tasmota issue? How could one Tasmota influence another? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I'm not new but not advanced in ESP. i have the following configuration for an ESP32 DevKit:
Tasmota 14.1.0
GPIOs 16, 17, 18, 19, 21, 22 controlling a 6 relay module connected to 6 24V AC valves for irrigation.
GPIO25 - AM2301
GPIO4 - a switch detached from relays, connected to a rain sensor (the one that closes/open the circuit based on some sponge like material inside)
GPIO26 - a counter connected to a tipping bucket using reed sensor.
Relay module powered by ESP's VCC
ESP powered on the VCC pin since I managed to break the USB plug
Other settings:
CounterDebounce 200
Setoption114 ON
{"Interlock":"ON","Groups":"1,2,3,4,5,6"}
The problem is that whenever i start or stop a valve, the counter gets incremented. After trying all kind of combinations of plug/unplug any of the connected pins, the counter only gets incremented whenever there is power to the valves. For test i have set GPIOs 14 and 15 to Counter2 and Counter3 with nothing connected to them, and they do not get incremented
Things i tried:
Pullup resistor for GPIO26 (10K and 4K7)
Switched GPIO26 to GPIO4
Set additional power to the 6 relay module (removed the JD-VCC jumper and added external power to it)
The only time the counter does not increment by valve action is disconnecting the power to the valves (relays still switch on/off).
It looks like somehow the 24V AC circuit that's after the relays influences the 5V circuit that controls the relays and further the ESP pins. The relay module is one from Aliexpress with blue boxlike relays.
Any suggestions of what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions