• 回复
  • 收藏
  • 点赞
  • 分享
  • 发新帖

单相正弦波逆变

用STM32生成SPWM然后驱动逆变桥,下图是变压器一个输出端子的波形,一般般,呵呵,感觉可能是LC滤波参数部对,带负载能力不太强。

隔了一段时间搞了DC-DC去了,现在搞回这个,重做了驱动板,考虑了很多因素:

先上图吧:

 

改了之后波形:

 

由于示波器图片比较小,放大上存有失真,其实波形还比较好看的,频率非常稳定。LC滤波,参数:L=124uH(2*0.8双股绕,考虑了趋肤效应),C=3.3+3.3uH(CBB),

SPWM查表法:400个点,调制比1:1(不知道适合不?)载波20K

vu16 Duty_Cycle_sinewavetable[400]={

1800,1828,1856,1884,1913,1941,1969,1997,2025,2053

,2081,2109,2137,2165,2192,2220,2247,2274,2302,2329

,2356,2383,2409,2436,2462,2488,2514,2540,2566,2591

,2617,2642,2667,2691,2716,2740,2764,2788,2811,2835

,2858,2880,2903,2925,2947,2969,2990,3011,3032,3052

,3072,3092,3112,3131,3150,3168,3186,3204,3222,3239

,3256,3272,3288,3304,3319,3334,3349,3363,3377,3390

,3403,3416,3428,3440,3451,3462,3473,3483,3493,3502

,3511,3520,3528,3536,3543,3550,3556,3562,3568,3573

,3577,3582,3585,3589,3592,3594,3596,3598,3599,3599

,3599,3599,3599,3598,3596,3594,3592,3589,3585,3582

,3577,3573,3568,3562,3556,3550,3543,3536,3528,3520

,3511,3502,3493,3483,3473,3462,3451,3440,3428,3416

,3403,3390,3377,3363,3349,3334,3319,3304,3288,3272

,3256,3239,3222,3204,3186,3168,3150,3131,3112,3092

,3072,3052,3032,3011,2990,2969,2947,2925,2903,2880

,2858,2835,2811,2788,2764,2740,2716,2691,2667,2642

,2617,2591,2566,2540,2514,2488,2462,2436,2409,2383

,2356,2329,2302,2274,2247,2220,2192,2165,2137,2109

,2081,2053,2025,1997,1969,1941,1913,1884,1856,1828

,1800,1771,1743,1715,1686,1658,1630,1602,1574,1546

,1518,1490,1462,1434,1407,1379,1352,1325,1297,1270

,1243,1216,1190,1163,1137,1111,1085,1059,1033,1008

,982 ,957 ,932 ,908 ,883 ,859 ,835 ,811 ,788 ,764 

,741 ,719 ,696 ,674 ,652 ,630 ,609 ,588 ,567 ,547 

,527 ,507 ,487 ,468 ,449 ,431 ,413 ,395 ,377 ,360 

,343 ,327 ,311 ,295 ,280 ,265 ,250 ,236 ,222 ,209 

,196 ,183 ,171 ,159 ,148 ,137 ,126 ,116 ,106 ,97  

,88  ,79  ,71  ,63  ,56  ,49  ,43  ,37  ,31  ,26  

,22  ,17  ,14  ,10  ,7   ,5   ,3   ,1   ,0   ,0   

,0   ,0   ,0   ,1   ,3   ,5   ,7   ,10  ,14  ,17  

,22  ,26  ,31  ,37  ,43  ,49  ,56  ,63  ,71  ,79  

,88  ,97  ,106 ,116 ,126 ,137 ,148 ,159 ,171 ,183 

,196 ,209 ,222 ,236 ,250 ,265 ,280 ,295 ,311 ,327 

,343 ,360 ,377 ,395 ,413 ,431 ,449 ,468 ,487 ,507 

,527 ,547 ,567 ,588 ,609 ,630 ,652 ,674 ,696 ,719 

,741 ,764 ,788 ,811 ,835 ,859 ,883 ,908 ,932 ,957 

,982 ,1008,1033,1059,1085,1111,1137,1163,1190,1216

,1243,1270,1297,1325,1352,1379,1407,1434,1462,1490

,1518,1546,1574,1602,1630,1658,1686,1715,1743,1771

}; 

 

全部回复(7)
正序查看
倒序查看
2011-08-13 06:08
继续上图
0
回复
stmjzl
LV.4
3
2011-08-13 08:35
@tvro
继续上图
会的
0
回复
IGBT2010
LV.8
4
2011-08-13 09:05
@stmjzl
会的
可否分享一下你的程序啊,也想用单片机做个玩玩!!!QQ:375467184
0
回复
stmjzl
LV.4
5
2011-08-13 12:55
@IGBT2010
可否分享一下你的程序啊,也想用单片机做个玩玩!!!QQ:375467184
我是用M3的喔。需要的话我后期贴程序上来,现在还在完善中
0
回复
IGBT2010
LV.8
6
2011-08-13 15:37
@stmjzl
我是用M3的喔。需要的话我后期贴程序上来,现在还在完善中
我用的也是STM32的单片机,期待你的强帖!!!顶可以加你好友吗?QQ:375467184
0
回复
2011-08-13 17:13
期待楼主的分享~
0
回复
2011-08-13 20:43
@高等数学
期待楼主的分享~
期待
0
回复