I want to make Tim Nolan’s Arduino MPPT(PPT) Error and i use an Arduino UNO.
I do not have a protoshield and i want to use it withouth a battery.
The circuit is complete but with the battery voltage measurement part and i want to modify the code so i could use it without this part and to introduce a light sensor instead of veryfying the battery voltage.
I need to introduce the light sensor so that i can still go from “on” state to “bulk”(“charge” state- where ppt algorithm is used).
I will insert bellow the link for original code(on Tim Nolan’s site) and the link for the code modified by me(because is too long i cannot post it here) which i am not sure it will work.
I want to be sure the code is ok before i upload it because i cannot afford to burn my arduino or my circuit.
Original project code: http://www.timnolan.com/uploads/Arduino%20Solar/ppt.pde - In Tim Nolan’s website
http://berserk-construct.ro/ppt.pde.txt - another source, same file
The parts that i think i should delete are having red font.
Also, some of my comments, where i do not know what to do are also red.
My current sensor it’s an ACS instead of a MAX so it will have 2.5V for 0 Ampers imput and it will go up untill 30 A input and san unknown output.
The code is for a MAX that needs scaling because the values are too small, so i will need to make it show me 0 Amps vor a value of 2.5 volts and after that i need to be able to use the ACS’s formula to calculate the values for higher currents.(in my project maximul 3.5 Amps)
Please help me.
Thank you very much!