針對嵌入式產(chǎn)品程序更新問題,提出了一種基于IAP技術(shù)的STM32單片機在線固件升級方案,設(shè)計了STM32單片機最小系統(tǒng)硬件電路和USB轉(zhuǎn)串口通信電路,并給出了Bootloader程序、APP程序、PC上機程序的實現(xiàn)流程.實驗結(jié)果表明,該方案具有簡單實用、穩(wěn)定性高、維護(hù)成本低和設(shè)備使用效率高的特點,適用于嵌入式產(chǎn)品升級.For the problem of updating embedded products program,an online firmware upgrade scheme of STM32 single chip microcomputer based on IAP technology is proposed.This scheme not only elaborates the principle of IAP technology in detail but also provides the design of the minimum system hardware circuit of STM32 MCU,the design of USB for serial communication circuit,and the implementation flow of Bootloader program,APP program and PC program.The experiment results show that the scheme is simple,practical and highly stable.In addition,it can be used to actual embedded product upgrading,significantly reducing maintenance costs and improving the efficiency of equipment.
本系統(tǒng)基于STM32單片機設(shè)計的非接觸式電流檢測控制系統(tǒng),通過OPA548片將所給任意信號放大,由100Ω電阻和INA128芯片進(jìn)行電流電壓轉(zhuǎn)換放大后,利用STM32單片機對獲取的電壓信號以0.488μs頻率采樣,利用STM32單片機的FFT庫,獲得信號的諧波信息。測量電流信號精準(zhǔn),該設(shè)計可廣泛應(yīng)用在以STM32單片機為核心控制器件的新型儀表中,性能精準(zhǔn)且抗干擾能力強。This system is a non-contact current detection and control system based on STM32 single chip microcomputer. It amplifiesany signal through OPA548 chip, converts and amplifies the current and voltage by 100 Ω resistance and INA128 chip. The obtainedvoltage signal is sampled at the frequency of 0.488 μs by STM 32 single chip microcomputer, and the harmonic information of the signalis obtained by the FFT library of STM 32 single chip microcomputer. The measurement of current signal is accurate. This design can bewidely used in a new instrument with STM 32 single chip microcomputer as its core control device, with accurate performance and stronganti-interference capability.
本設(shè)計介紹了一種基于STM32單片機控制的智能水杯,可利用插口式電源或無線充電底座為加熱器提供能量,并在達(dá)到某種飲品所需溫度時進(jìn)行保溫。水杯內(nèi)置充電電池,可選用USB接口或無線充電。在水杯內(nèi)部設(shè)置無線模塊,用戶利用手機App與水杯進(jìn)行匹配進(jìn)行加熱操作,加熱完后水杯會通過手機App和液晶顯示屏實時反饋液體溫度,通過指示燈顯示電量情況等,給用戶進(jìn)行提醒。該智能水杯設(shè)計創(chuàng)新,實用價值較高。This paper introduces an intelligent water cup based by STM32 microcontroller,it can provide energy for the heater by socket type power supply or wireless charging base,and hold temperature needed for some kind of drink.Builtedin rechargeable battery,water cup can use USB or wireless charging.The wireless module is set up inside it,and customers can use mobile App to match and heat.After heating,water cup feeds back liquid temperature through the mobile App,and then displays on LCD,reminds users through the indicator light.The intelligent water cup is designed innovatively and has high practical value.