Solar panel connect with the high-gain boost converter.
use voltage driver to decrease the voltage and current sensor to get the data. use perturb & observe way to do the project.
However, i got a few problem. can i ask how to fix the code ?
Thanks for help! i am a new learner, i will read how to use the forum first. i got a few problems in the code, so i did not describe it well. i will resend the problem, thanks.
Hi Emma-Z, don't attach code in a .pdf file - it's difficult to use then. Rather type [code], paste your code and then type [/code]. Then folks can see it and work with it to resolve your problem.
Basically my soalr panel output voltage is 17.2V, but my boost converter input is 5v. in case of destory the converter i think i may need a voltage divided to provider lower voltage to the converter.
After that, i need track the MPPT of the solar panel. So, can i ask how can i connect my arduino with the current sensor and voltage sensor?
For Sensing Voltage...
Arduino pin can take Maximum 20mA Current So you have chose Resistors for voltage divider such that voltage divider provide below 20mA current.
From 17.2V to drop down 5V.. you need two Resistor value
Vin =17.2V
R1 = 10K
R2 =3.9K
Vout = ((Vin x R2)/(R1+R2))
= 4.826
and it gives current around 12mA below 20mA
if you use R2 4.3K then you will get 5.172V. safe to take 4.3K Resitor
For Sensing Current you need Current Sensor that is IC ACS770LCB Hall Effect current Sesor
Arduino pin can take Maximum 20mA Current So you have chose Resistors for voltage divider such that voltage divider provide below 20mA current.
Sorry but that is rubbish.
An Arduino pin should only be asked to GIVE 20mA, an input current on an input pin is in the order of uA, the impedance is so high you can not force 20mA through it unless you put several hundred Volta on it, in which case you have zapped the input with too much voltage.
The potential divider is to reduce the voltage to less than the chip's supply voltage which is normally 5V. Input current has nothing to do with it. For good A/D response make the bottom resistor, the one from input to ground 10K, Then calculate the value of your top on depending on the biggest voltage you will get.