Final hardware:
1) Put 100nF (ceramic) paralleled with two 1uF (electrolytic )at both ends of the PIC
2) Put 0.1uF capacitor at the supply ends of each sensor
3) Put two 1uF capacitors, at input/output of each voltage regulator (electrolytic)
4) Wired all ground together: ground of first 9V, second 9V, third 12V
5) Wired the ground of the voltage regulator, both voltage regulators, at the ground of the PIC (the ground of each of 9V silver batteries, are only connected together)
6) Wired the ground of the sensors, on the PIC ground.
the PIC has
stopped resetting, and taking random decision.
the only problem is the
adc , even I had separated the supply of the sensors, but they make wrong entries, knowing that, the code is correct. Plus, when I expose big quantity of light, over the LDR for example, the temperature also elevates, and so the moisture. What the
solution for this?
Is it
necessary to branch capacitors at the end of the relays?
Please tell me, if there other steps that I must done? Before complete soldering, I want to finish this, if it remains anything, just tell me before I finalize execution, thanks.
- - - Updated - - -
guys the system is
not stable at all!!!
When I've added the capacitors in parallel to the relay connections, block diagrams occured on the LCD, And voltage change happened!
It was working fine before adding capacitors to the open relay switch two terminals.
Why is my system is unstable?
I added the 100nf parallel with 2 1uF on the ground.
The ground of all regulators are grounded within PIC ground
all grounds of all batteries are grounded together.
Perhaps the capacitors, are saving voltage, so they add it to the supply voltage when turned on, and provoke greater than 5V, which is translated by blocks on the LCD?
Can someone please give a full brief explanations with solutions
- - - Updated - - -
why is the ADC process became so mutable?
is it hell here to produce 219C
lol
it was working more than fine yesterday