Code for project

I am making a project in which an Arduino is used to switch between multiple power such as normal supply, battery, solar by using relays for each source. I have everything ready except the source code required to run this.

It would be very helpful if someone helped me out with the code. As I dont know much about coding. And o have a week till deadline.

I am uploading the block diagram... Ignore the gsm module based part.

Any help is highly appreciated.

FLHD8WTIU1KSF1W.SMALL.jpg

https://forum.arduino.cc/index.php?topic=624282.msg4229106#msg4229106

Look at the code I present in post #5. aside from the quickcharge library code, this could easily be adapted to fit your need. But, you do have to do some work.

What kind of changes??

If your assignment is due in a week, this means your instructor feels he or she has given you the tools to complete it. If you just want to pay someone to do it for you, head on over to the gigs and collabs section of the forum and make an offer.

Monu006:
As I dont know much about coding. And o have a week till deadline.