Author Topic: Please help, why chopper circuit is not working?  (Read 1022 times)

0 Members and 1 Guest are viewing this topic.

Offline radhikaTopic starter

  • Regular Contributor
  • *
  • Posts: 105
  • Country: in
Please help, why chopper circuit is not working?
« on: September 04, 2018, 01:32:43 pm »
Respected,
I am Electronics student as current working on boost chopper circuit. I want to convert 3.7V to 19.5V using PWM of Arduino as shown in the attached link.

According to requirements, Vin = 3.7V Vout = 19.5V, D = 81.02%, R = 50 Ohm, I = 2.5A, F = 100kHz.
According to the formula, Lmin = (D((1-D)^2)R)/(2F) = 7.3uH
                                     Cin    = (I*D* (1-D)*1000)/(F*75m) = 50mF
                                     Cout  = (D)/(R*Vout*F) = 8.30nF
Using this formula I got required values, but still I  am getting incorrect voltage. Is formula's are wrong or the circuit connection or the code. Where do I need to do improvement? Please guide.
The Code i used for developing 81.02% duty cycle is :
int ledPin = 9;

void setup()
{
  pinMode (ledPin, OUTPUT);
}

void loop()
{
  analogWrite(ledPin, 206);
}



https://postimg.cc/image/f4kkolo0n/
https://postimg.cc/image/gm6100853/
 

Offline Wimberleytech

  • Super Contributor
  • ***
  • Posts: 1134
  • Country: us
Re: Please help, why chopper circuit is not working?
« Reply #1 on: September 04, 2018, 01:52:48 pm »
The arduino default pwm frequency for that pin is about 500Hz.  Your design requires 100kHz.  In order to get a higher PWM frequency, you will need to put a little more effort into the code.  Here is an article that might help:
https://www.eprojectszone.com/how-to-modify-the-pwm-frequency-on-the-arduino-part1/
 
The following users thanked this post: radhika

Offline radhikaTopic starter

  • Regular Contributor
  • *
  • Posts: 105
  • Country: in
Re: Please help, why chopper circuit is not working?
« Reply #2 on: September 05, 2018, 12:51:57 pm »
Okay, I will get code done right.
But, what about the circuit components. Are they all of correct values?
 

Offline Wimberleytech

  • Super Contributor
  • ***
  • Posts: 1134
  • Country: us
Re: Please help, why chopper circuit is not working?
« Reply #3 on: September 05, 2018, 01:29:31 pm »
Okay, I will get code done right.
But, what about the circuit components. Are they all of correct values?

Your specifications seems odd: 2.5A into a 50 ohm load?  That does not comport with your desired output voltage.
Your output capacitor is way too low.
 

Offline radhikaTopic starter

  • Regular Contributor
  • *
  • Posts: 105
  • Country: in
Re: Please help, why chopper circuit is not working?
« Reply #4 on: September 08, 2018, 09:29:32 am »
Hello,
As per the link given by you and I have tried building code.
Here is the code,


void setup()
{
 
 
  pinMode (5, OUTPUT);
  pinMode(6, OUTPUT);
  TCCR0A = 0;
  TCCR0B = 0;
  TCCR0A = 0b01010011;
  TCCR0B = 0b00001010;
  OCR0A = 9; //Control value of 100kHz, N = 8
}

void loop()
{
  analogWrite(5, 206)// 81% duty cycle;
}

I am using Proteus for checking output. As shown in the attached picture I an unable to get output at pin 6. Guide me for the circuit if I have attached to the wrong pin and the code.
PS: Apologies for the late reply.
https://postimg.cc/image/g84qnrsrr/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf