lloydi12345
Member
Hi again ETO,
I am having this grounding issue on my PCB. My project here is a simulator box and a temperature controller PCB enclosed in an aluminum box.
The simulator box is powered up through 220VAC and it has a transformer that converts 220 to 24VAC. It also has one relay in it that controls 220VAC solenoid Valve. The simulator box has 4 output pins and 3 input pins.
OUTPUT Pins:
1&2 are connected to the 24VAC of the tranformer
3&4 are connected to a thermistor which when gets hot changes the resistance reading on 3&4 pins
INPUT Pins:
5 is 32Vdc coming from the temperature controller PCB connected to the +pin of relay which controls solenoid valve 220vac and gas valve (but there is no gas valve attached just LED for indicator)
6 is input pin coming from the temperature controller PCB which is connected to the -pin of relay which controls solenoid valve 220vac
7 is input pin coming from the temperature controller PCB which is connected to the -pin of relay which controls gas valve (but there is no gas valve attached just LED for indicator)
------
The Temperature Controller PCB consists of many components. PIC18F4620, Switching regulator circuit (MC34063 circuit), ULN2803 for controlling the solenoid and gas valves, speaker, two dual 7 segment LED, 12 push buttons, 8 LEDs and bunch of discrete components.
INPUT Pins:
1&2 are connected to 1n4007 diode rectifying 24VAC to ~32VDC
3&4 are connected to the microcontroller using Steinhart-hart circuit for calculating temperature
OUTPUT Pins:
5 is connected to 32VDC which is the output of the rectifier bridge 1n4007
6 is connected to PIC18F4620's pin through ULN2803 which controls the solenoid valve. Turning off the solenoid valve, the PIC should produce 32VDC so the relay would not turn on to activate the solenoid valve. When I turn it on, I just produce 0VDC from the pin to turn the relay on.
7 is connected to PIC18F5620's pin through ULN2803 also.(same principle as for solenoid valve pin)
----
Problem:
Now, there's no problem actually at the start. Turning on the simulator box everything works fine. Everything is functioning. The problem occurs whenever I move the bundle of wires that connects the controller and simulator box.
For example, with the wires untouched the reading would be 363F but when moved or hit heavily the temperature reading drops to 340F+(the temperature here varies depending on the intensity the wires got moved)
----
Solution:
Whenever I turn on the solenoid valve the reading of the temperature quickly jumps back to the proper reading. BUT! this is just for one time. While the solenoid valve is currently on, if I move again the bundle of wires, the temperature goes down again and I have to turn off the solenoid valve and turn it on again for the reading to go back up normally. If the solenoid valve is just always ON it will not help the temperature reading go back to its normal reading when wires are moved again. (Turning the solenoid valve on and off every few seconds definitely fixes the temperature reading but I can't do that since the solenoid valve has its purpose and it should be only turned on or off at a certain time.)
Another thing I have observed, I soldered a long wire on the GND of my PCB and whenever there is an abnormal reading on the temperature, i just connect the other end of the wire to any piece of metal like for example on its casing aluminum box. I even tried it connecting to the usb port of the laptop and strangely the reading came back normally. BUT! when I clip the wire permanently to the any metal object and when I move the wires, the reading goes down again and I HAVE TO RE-ATTACH it to the metal object just to pull it back to its proper temperature reading.
I really really think this is a grounding issue. I didn't forgot the bypass capacitors beside the microcontroller, flyback diodes for the valves(they're placed on the pcb), capacitors at the end of regulators, I checked them with the oscilloscope and they are really good. I don't know how to use oscilloscope to detect the problem on the ground though.
Btw, I also tried using other power source instead of switching regulator, I used Bench power supply (+32VDC & +5VDC) and the problem also still occured so it must not be the noise on the switching regulator. Or I really don't know.
I hope someone could help me with this one.
I am having this grounding issue on my PCB. My project here is a simulator box and a temperature controller PCB enclosed in an aluminum box.
The simulator box is powered up through 220VAC and it has a transformer that converts 220 to 24VAC. It also has one relay in it that controls 220VAC solenoid Valve. The simulator box has 4 output pins and 3 input pins.
OUTPUT Pins:
1&2 are connected to the 24VAC of the tranformer
3&4 are connected to a thermistor which when gets hot changes the resistance reading on 3&4 pins
INPUT Pins:
5 is 32Vdc coming from the temperature controller PCB connected to the +pin of relay which controls solenoid valve 220vac and gas valve (but there is no gas valve attached just LED for indicator)
6 is input pin coming from the temperature controller PCB which is connected to the -pin of relay which controls solenoid valve 220vac
7 is input pin coming from the temperature controller PCB which is connected to the -pin of relay which controls gas valve (but there is no gas valve attached just LED for indicator)
------
The Temperature Controller PCB consists of many components. PIC18F4620, Switching regulator circuit (MC34063 circuit), ULN2803 for controlling the solenoid and gas valves, speaker, two dual 7 segment LED, 12 push buttons, 8 LEDs and bunch of discrete components.
INPUT Pins:
1&2 are connected to 1n4007 diode rectifying 24VAC to ~32VDC
3&4 are connected to the microcontroller using Steinhart-hart circuit for calculating temperature
OUTPUT Pins:
5 is connected to 32VDC which is the output of the rectifier bridge 1n4007
6 is connected to PIC18F4620's pin through ULN2803 which controls the solenoid valve. Turning off the solenoid valve, the PIC should produce 32VDC so the relay would not turn on to activate the solenoid valve. When I turn it on, I just produce 0VDC from the pin to turn the relay on.
7 is connected to PIC18F5620's pin through ULN2803 also.(same principle as for solenoid valve pin)
----
Problem:
Now, there's no problem actually at the start. Turning on the simulator box everything works fine. Everything is functioning. The problem occurs whenever I move the bundle of wires that connects the controller and simulator box.
For example, with the wires untouched the reading would be 363F but when moved or hit heavily the temperature reading drops to 340F+(the temperature here varies depending on the intensity the wires got moved)
----
Solution:
Whenever I turn on the solenoid valve the reading of the temperature quickly jumps back to the proper reading. BUT! this is just for one time. While the solenoid valve is currently on, if I move again the bundle of wires, the temperature goes down again and I have to turn off the solenoid valve and turn it on again for the reading to go back up normally. If the solenoid valve is just always ON it will not help the temperature reading go back to its normal reading when wires are moved again. (Turning the solenoid valve on and off every few seconds definitely fixes the temperature reading but I can't do that since the solenoid valve has its purpose and it should be only turned on or off at a certain time.)
Another thing I have observed, I soldered a long wire on the GND of my PCB and whenever there is an abnormal reading on the temperature, i just connect the other end of the wire to any piece of metal like for example on its casing aluminum box. I even tried it connecting to the usb port of the laptop and strangely the reading came back normally. BUT! when I clip the wire permanently to the any metal object and when I move the wires, the reading goes down again and I HAVE TO RE-ATTACH it to the metal object just to pull it back to its proper temperature reading.
I really really think this is a grounding issue. I didn't forgot the bypass capacitors beside the microcontroller, flyback diodes for the valves(they're placed on the pcb), capacitors at the end of regulators, I checked them with the oscilloscope and they are really good. I don't know how to use oscilloscope to detect the problem on the ground though.
Btw, I also tried using other power source instead of switching regulator, I used Bench power supply (+32VDC & +5VDC) and the problem also still occured so it must not be the noise on the switching regulator. Or I really don't know.
I hope someone could help me with this one.
Last edited: