First, I want to say thank you for taking the time to look at my project and give me your pro opinion or solution.
I have the following issue:
I have 2 relays, plugged/supplied by independently thru 5v 1A (as seen on the picture from Taugrus USB hub). Each relay 5V pin near the controlling pins is connected thru the ESP32 5V power supply pin(with power splitter/hub).
On the right picture, left Relay I have a light(12v 40W) plugged in which is powered by 220v(actually I measured 232v AC, the relay covers to 250 tho).
In the right relay on the same picture I have water pump (12V, 0.6A) and small fan(5V,0.1A).
The ESP is plugged thru 5V/2.1A wall phone charger 220v(the one with the green light).
The light bulb is plugged thru the wall power hub with 2 wire socket. (bottom plug on the right image in the picture)
When I turn the light on all the sensors go haywire. My DS18B20 goes to -127 and my Capacitive moisture sensors show different readings mostly higher. They seems to kind of stabilize later, but still reading are not as it should be.
I am not electrical engineer, so any help, idea, or suggestion will be much appreciated.
With the circuit off, using a continuity buzzer on a multi-meter, check all tie points of your circuit. Everything that should be tied together should buzz. Nothing that should not be tied together, should not buzz. If everything checks out, turn the system on, then check voltages at all points.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
We need to see your circuit.
From your picture, you need to tidy your wiring, keeping ALL 230Vac wiring away from low voltage and capacitive sensor wiring.
Have you got Serial.print statements in your code to help debug?
What is your code supposed to do?
Thank you guys for your replies, but unfortunately after changing some stuff, things continue to be the same.
What did I change? Basically I change the wire for the lamp and moved it to Relay #1. Wire is enough for light appliances and it is with 2 wire isolated.
I also grounded Relay#1, thru the ground pin of the ESP32.
The big PCB you see on the picture is just a power supply bus. I didnt like the breadboard so I soldered my own, so It is only to provide me with L N. The small one hanging from the box is the plugable terminal for the DS18b20.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Please get a pen and paper out and draw it, including ALL your components.
In the picture you have the DS sensor board laying on the mains wiring, please separate all mains wiring from low voltage and sensor wiring.
Forget at the moment trying to make it compact/small..
Spread it out to separate the wiring.
I know you are curious fella, so I made this video for you! I am not good in schematics. I tried to use fritzzing few months ago, and lost myself in the connections.
Hi,
Have you got any bypass capacitors on your DC power distribution PCB?
You need to talk in Amps not Amper-Hours, they are totally different quantities.
Your mains is AC, so you have ACTIVE AND NEUTRAL, not Positive and Negative.
Can I suggest on your power distribution PCB you put a 0.1uF capacitor from positive to negative, and a 10uF or 100uF 16V electrolytic capacitor also between positive and negative.
You water pump converter is a BOOST converter, converting 8V to 12V, this will be causing current surges when you start the pump.
What are the capacitive sensors?
What are you using the capacitive sensors for?
Are they the water level sensors?
Can you post links to spec/data please?
What have you done to hopefully fix your problem?
Have you measured the 5V supply on your PCB when you cause the fault?
See if it stays at 5V.
Thanks.. Tom...
PS. Forget Fritzy and use pen and paper.
First I want to thank: Perehana(the cowboy), Terry da King 228,TomGeorge(the curious fella), and last but not least Joneson (all of whom participated in my request for help)
So basically I did cover the opening of the Capacitive Sensors v1.2 top with another foam piece. See on the picture. It appears after that action I have "kind of" normalized the readings. Of course, they had a little offset, but in 200-300pts to such a sensitive hardware I think is normal. I use a measurement on those sensors from 0 to 4095.
So, my wiring is correct, just the lamp wavelength is too powerful and creates interference of somekind to the readings. I bet there is an explanation in the physics books. Sorry, I am just mathematician with software abilities and desire to create.
The next step for me will be to find a way to isolate the plugable board on the DS18B20 and see if I can get something regular.
Thank you and I wish all of you the best luck.
You can find me on twitter
@Vlad_Da_Great.
I have experienced many other issues with other sensors and you are welcome to ask if you want at anytime.
No capacitors of any kind :(. I know my lines from the Capacitive moisture sensors are long, but the power seems sufficient. Noise is there, you are correct.
How do you usually figure out what kind of capacitor you need to mute/surpress outside interference or noise as much as possible?