Hello
I`m designing an automated greenhouse, using PIC18f4520 as the processor.
The circuit contains, the PIC circuit including:
LMB402CFC as the LCD
a 3*4 Keypad.
As input to the circuit, I have three different sensors,
LDR
LM35DZ
Soil Moisture sensor
As output to the circuit, I have four different actuators:
Fan
Heater
LED light,
Sprinkler
The outputs function under high voltage of 220V.
I connected the outputs to the PIC, using open switch relay connection.
The circuit also contain a PushButton and a Buzzer.
For the power distribution, I have one 9V battery connected to a voltage regulator, with capacitors and its I/O pins.
the output pin, is connected to one side of the sensor.
the ground of the regulator is connected to the PIC ground.
the ground of 9V is connected to the pic ground..
I have another 9V source, connected to a voltage regulator, where the output of it is connected to the + of the pic, the ground of it, is connected to the ground of the pic, and the ground of 9V is connected to the ground of the pic.
Ihave a 12V battery source, as a supply for the open relay switch.
the ground of 12V is connected to the ground of other 9V batteries, which in turns are connected to the pic ground.
I`m having an issue of a noisy ground, where I was adviced to put 100nF ceramic capacitor parallel with 1uF electrolytic capacitor, between Vss and Vdd.
The problem is:
Each day new problem occurs, sometimes random decisions by the PIC, sometimes the LCD don't bright at all, sometimes bright well, sometimes.....
The system is unstable
Any solution possible?
I`m designing an automated greenhouse, using PIC18f4520 as the processor.
The circuit contains, the PIC circuit including:
LMB402CFC as the LCD
a 3*4 Keypad.
As input to the circuit, I have three different sensors,
LDR
LM35DZ
Soil Moisture sensor
As output to the circuit, I have four different actuators:
Fan
Heater
LED light,
Sprinkler
The outputs function under high voltage of 220V.
I connected the outputs to the PIC, using open switch relay connection.
The circuit also contain a PushButton and a Buzzer.
For the power distribution, I have one 9V battery connected to a voltage regulator, with capacitors and its I/O pins.
the output pin, is connected to one side of the sensor.
the ground of the regulator is connected to the PIC ground.
the ground of 9V is connected to the pic ground..
I have another 9V source, connected to a voltage regulator, where the output of it is connected to the + of the pic, the ground of it, is connected to the ground of the pic, and the ground of 9V is connected to the ground of the pic.
Ihave a 12V battery source, as a supply for the open relay switch.
the ground of 12V is connected to the ground of other 9V batteries, which in turns are connected to the pic ground.
I`m having an issue of a noisy ground, where I was adviced to put 100nF ceramic capacitor parallel with 1uF electrolytic capacitor, between Vss and Vdd.
The problem is:
Each day new problem occurs, sometimes random decisions by the PIC, sometimes the LCD don't bright at all, sometimes bright well, sometimes.....
The system is unstable
Any solution possible?
Attachments
-
294.1 KB Views: 43
-
286.7 KB Views: 40