--BawA--
Advanced Member level 1
- Joined
- Nov 28, 2012
- Messages
- 479
- Helped
- 43
- Reputation
- 86
- Reaction score
- 42
- Trophy points
- 1,318
- Location
- Noida, INDIA
- Activity points
- 4,931
Code C - [expand] 1 2 3 4 5 6 if(output_volts > 10) { duty =duty +1; } if (output_volts < 10) {duty = duty-1; }
The code seems to implement positive rather than required negative feedback. We would expect the duty cycle to be decreased if the output voltage is above the setpoint.i have written a code like -
if(output_volts > 10)
{ duty =duty +1;
}
if (output_volts < 10)
{duty = duty-1;
}
but at the output i am getting 10 volts at 0.2 ampere load , if i increase the load (1 ampere) , the output voltage goes to 8.2V
duty cycle at 10v is 50%.
and input power supply is capable of providing 20v @ 2 ampere.
so where is the fault?
FvM said:The code seems to implement positive rather than required negative feedback. We would expect the duty cycle to be decreased if the output voltage is above the setpoint.
Code C - [expand] 1 2 3 4 5 6 if(output_volts > 10) { duty =duty -1; } if (output_volts < 10) {duty = duty+1; }
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?