I'm currently doing a proposal on solar panel water pump. I have the prototype working,right now i need to use C programming to automatically activate the water pump battery from 6pm to 6am. Can someone helpp!
I'm currently doing a proposal on solar panel water pump. I have the prototype working,right now i need to use C programming to automatically activate the water pump battery from 6pm to 6am. Can someone helpp!
Code:#include <stdwaterpumpcontroller.h> int main( void ) { waterpump mywaterpump; operatepump( mywaterpump, 6, 18 ); return 0; }
Quzah.
Hope is the first step on the road to disappointment.
Sure thing...
First, take a good book or tutorial on C and work it page by page, exercise by exercise until you understand what is going on.
Second, take the documentation for your microcontroller and work it page by page until you understand what is going on.
Third, take the problem and work it out on paper, bit by bit until you understand what is required.
Fourth, write the code...