Hello!
I'm doing a system for irrigation and me there were some questions about the schedule. I'm using a PIC18F4550 and programming in C language (I'm at the very beginning of the program).
In the picture I am sending, has a connector which will put the solenoid valve that will open and close the record of water for irrigation of the garden. However, I have no idea how to program this part. I know that the first to do is read the value in RA2 (pin PIC) that appears in the schematic there and see if it is in the humidity range of suitable soil. But it needs to be irrigated, how do I start watering?
Thank you very much to help me. If you need some more data is only talk.

I'm doing a system for irrigation and me there were some questions about the schedule. I'm using a PIC18F4550 and programming in C language (I'm at the very beginning of the program).
In the picture I am sending, has a connector which will put the solenoid valve that will open and close the record of water for irrigation of the garden. However, I have no idea how to program this part. I know that the first to do is read the value in RA2 (pin PIC) that appears in the schematic there and see if it is in the humidity range of suitable soil. But it needs to be irrigated, how do I start watering?
Thank you very much to help me. If you need some more data is only talk.
