欢迎来到天天文库
浏览记录
ID:55591456
大小:310.50 KB
页数:7页
时间:2020-05-19
《电导增量法MPPT程序算法实例.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、温馨提示:算法仅供参考,不作其他用途,否则后果自负,在此只截取MPPT的算法程序,具体如何操作不再贴出,该算法经过测试老化基本可以追踪太阳能最大功率点,MCU(STM32),MOS管频率30KHZ,三路PWM错向驱动,注意:电池充电整个阶段并不都是最大功率最大电流充电,根据电池的状态分最大电流快速充电-恒流-恒压,通过控制电流因子可以达到控制不同的电流充电 date.c文件#include "main.h" #include ADC_struct ADCCollect; unsigned int MAXMPPTDate[10]={0};unsignedin
2、tChannel_Duty=0;//通道运行占空比unsignedintChannel_DutyBuf=0;//通道追踪占空比unsignedcharMPPTEnable=0,MPPTSTOP=0;unsignedintMPPTSTOPTimeDelay=0;Date.h文件#ifndef_Date_H_#define_Date_H_typedefstruct{floatBatteryChargeCurrent;//充电电流unsignedintBatteryChargeCurrentBuf[10];floatBatteryDisChargeCurrent;//放电电流uns
3、ignedintBatteryDisChargeCurrentBuf[10];floatBatteryVoltage;//电池电压unsignedintBatteryVoltageBuf[10];//unsignedintBatteryVoltageBuf1[10];floatPVVoltage;//PV电压unsignedintPVVoltageBuf[10];floatCirTem1;//温度1unsignedintCirTem1Buf[10];unsignedintPVPower;//floatCirTem;//unsignedcharBatteryModeBuf;un
4、signedintBatteryQuantityLimitLOW;//电池电压欠压保护电压下限值unsignedintBatteryQuantityRecover;//电池电压欠压保护恢复电压值unsignedintPVStopvoltage;//停充电压值unsignedintConstantvoltage;//恒压unsignedintFloatvoltage;//浮充电压unsignedintCurrentlimite;//限流值unsignedcharLanguage;//语言unsignedintLoadMode;//负载工作模式01~2324unsignedint
5、HandBatteryMode;//电池模式//unsignedcharAutoMode;//自动检测unsignedcharAutoModeBuf;floatAutoModeFactor;//放电量和充电量unsignedintLoadCapacity;unsignedintPVCapacity;unsignedcharBatteryEmpty;//电池没电标志unsignedcharDayNightFlag;//白天黑夜标志unsignedcharCirTemErro;//温度错误标志unsignedcharBatteryMode;//电池系统unsignedcharBa
6、tteryVoltageNum;unsignedintLoadModeDelay;//延时倒计时}ADC_struct;externADC_structADCCollect;#endif
此文档下载收益归作者所有