i need help for write programme fo arduino

i need programmefor arduno

pwm----->give voltage variable 0 255

after pwm given voltage arduino will Measures voltage for the risitance R4 send A0 (voltage for measures current)

and measures also voltage V+ and send valure to A1 FOR TRACING GRAPH I(v)

|500x313 thx

pwm----->give voltage variable 0 255

Trivial.

after pwm given voltage arduino will Measures voltage for the risitance R4

What R4? Measure it where?

Current that passes through transto jfet and resistot R4

THERE IS CELLULE SOLARE BETWEEN V+ AND V-

Hi,

It would (possible) be much easier knowing what the project is for.

Regards

projet for Drawing Curve I(v) FOR solar cell THE solar cell BETWEEN v+ and v-

projet for Drawing Curve I(v) FOR solar cell THE solar cell BETWEEN v+ and v-

OK. What are you going to do with reading (V, I)?: Display them?. Where?. Do you plan to record -SD card- them?

Regards.

Are you aware of power involved (1 Ohm resistor)?

yes i need programme

I see that you are increasing the current from your (12volt?) solar cell by stepping up the duty cycle of the PWM (R3/C1), and measuring the voltage across the solar cell (R1/R2/A1) and 1ohm/5watt current sense resistor (R4/A0). I assume U1's supply voltage is >=12volt (the source could be 5volt).

Circuit seems ok, except for the ripple on C1. With ~500hz PWM, it is ~0.6volt t/t @ 50%PWM. That could introduce a measuring fault of ~8%. Connecting R3 to pin 5 or 6 doubles the PWM frequency, and halves the error.

Have you written any code? Leo..

no i don’t know how to write programme
pwm -->input it is change 0-----5v
A0—>OUTPUT IT IS CHANGE 0----5v /R4=1hom so I change 0----5ampere
A1----> output it change 0-----5v
arduno save reasult (V;I)
BOUCLE
…EXT

Similar idea

i neesd configrate aeduno for doing that