您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > 电导增量法MPPT程序算法实例
温馨提示:算法仅供参考,不作其他用途,否则后果自负,在此只截取MPPT的算法程序,具体如何操作不再贴出,该算法经过测试老化基本可以追踪太阳能最大功率点,MCU(STM32),MOS管频率30KHZ,三路PWM错向驱动,注意:电池充电整个阶段并不都是最大功率最大电流充电,根据电池的状态分最大电流快速充电-恒流-恒压,通过控制电流因子可以达到控制不同的电流充电date.c文件#includemain.h#includestdlib.hADC_structADCCollect;unsignedintMAXMPPTDate[10]={0};unsignedintChannel_Duty=0;//通道运行占空比unsignedintChannel_DutyBuf=0;//通道追踪占空比unsignedcharMPPTEnable=0,MPPTSTOP=0;unsignedintMPPTSTOPTimeDelay=0;Date.h文件#ifndef_Date_H_#define_Date_H_typedefstruct{floatBatteryChargeCurrent;//充电电流unsignedintBatteryChargeCurrentBuf[10];floatBatteryDisChargeCurrent;//放电电流unsignedintBatteryDisChargeCurrentBuf[10];floatBatteryVoltage;//电池电压unsignedintBatteryVoltageBuf[10];//unsignedintBatteryVoltageBuf1[10];floatPVVoltage;//PV电压unsignedintPVVoltageBuf[10];floatCirTem1;//温度1unsignedintCirTem1Buf[10];unsignedintPVPower;//floatCirTem;//unsignedcharBatteryModeBuf;unsignedintBatteryQuantityLimitLOW;//电池电压欠压保护电压下限值unsignedintBatteryQuantityRecover;//电池电压欠压保护恢复电压值unsignedintPVStopvoltage;//停充电压值unsignedintConstantvoltage;//恒压unsignedintFloatvoltage;//浮充电压unsignedintCurrentlimite;//限流值unsignedcharLanguage;//语言unsignedintLoadMode;//负载工作模式01~2324unsignedintHandBatteryMode;//电池模式//unsignedcharAutoMode;//自动检测unsignedcharAutoModeBuf;floatAutoModeFactor;//放电量和充电量unsignedintLoadCapacity;unsignedintPVCapacity;unsignedcharBatteryEmpty;//电池没电标志unsignedcharDayNightFlag;//白天黑夜标志unsignedcharCirTemErro;//温度错误标志unsignedcharBatteryMode;//电池系统unsignedcharBatteryVoltageNum;unsignedintLoadModeDelay;//延时倒计时}ADC_struct;externADC_structADCCollect;#endif
本文标题:电导增量法MPPT程序算法实例
链接地址:https://www.777doc.com/doc-6205160 .html