針對嵌入式產(chǎn)品程序更新問題,提出了一種基于IAP技術(shù)的STM32單片機在線固件升級方案,設(shè)計了STM32單片機最小系統(tǒng)硬件電路和USB轉(zhuǎn)串口通信電路,并給出了Bootloader程序、APP程序、PC上機程序的實現(xiàn)流程.實驗結(jié)果表明,該方案具有簡單實用、穩(wěn)定性高、維護成本低和設(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.
隨著光伏發(fā)電系統(tǒng)快速發(fā)展,以及電動汽車充電樁的普及,傳統(tǒng)的剩余電流保護器無法滿足實際需求。介紹了一款B型剩余電流保護器,采用磁調(diào)制剩余電流互感器和零序電流互感器采集剩余電流。根據(jù)GB/T 22794—2017標準要求,可識別1 kHz及以下的正弦交流、帶和不帶直流分量的脈動直流、平滑直流等剩余電流信號。經(jīng)信號調(diào)理電路將電壓信號送到單片機進行采集和判斷。通過試驗測試,該樣機在測試精度和速度上均符合國家標準的相關(guān)要求。The rapid development of photovoltaic power generation systems and the popularity of electric vehicle charging piles make the traditional residual current protective devices unable to meet the actual demand.This paper proposed a type B residual current protective device,which uses the magnetically modulated residual current transformer and the zero sequence current transformer to acquire the residual current.According to the requirements of GB/T 22794—2017,the type B residual current protective device can detect sinusoidal AC residual current of 1kHz and below 1kHz,pulsating DC residual current with and without DC component,smooth DC residual current and so on.The signal processing circuit sends the voltage signal to the MCU for acquisition and judgment.Through experimental tests,the device meets the relevant requirements of national standards in terms of test accuracy and speed.
本系統(tǒng)基于STM32單片機設(shè)計的非接觸式電流檢測控制系統(tǒng),通過OPA548片將所給任意信號放大,由100Ω電阻和INA128芯片進行電流電壓轉(zhuǎn)換放大后,利用STM32單片機對獲取的電壓信號以0.488μs頻率采樣,利用STM32單片機的FFT庫,獲得信號的諧波信息。測量電流信號精準,該設(shè)計可廣泛應用在以STM32單片機為核心控制器件的新型儀表中,性能精準且抗干擾能力強。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單片機控制的智能水杯,可利用插口式電源或無線充電底座為加熱器提供能量,并在達到某種飲品所需溫度時進行保溫。水杯內(nèi)置充電電池,可選用USB接口或無線充電。在水杯內(nèi)部設(shè)置無線模塊,用戶利用手機App與水杯進行匹配進行加熱操作,加熱完后水杯會通過手機App和液晶顯示屏實時反饋液體溫度,通過指示燈顯示電量情況等,給用戶進行提醒。該智能水杯設(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.
資源較大,分為兩個部分,已全部上傳:第一部分:https://dl.21ic.com/download/arm-429326.html 第二部分:https://dl.21ic.com/download/arm-429325.html 本書介紹了意法半導體(STMicroelectronics,ST)公司的32位基于 ARM Cortex-M3內(nèi)核的STM32單片機應用與實踐。通過“學中做、做中學”,即DIY(Do It yourself)和LBD(Learning By Doing)的方式,按照工作導向的思路展開教學與實踐學習,循序漸進地介紹和構(gòu)建若干典型STM32單片機應用系統(tǒng)的硬件和軟件,以及相關(guān)傳感器電路,將STM32單片機的外圍引腳特性、內(nèi)部結(jié)構(gòu)原理、片上外設(shè)資源、開發(fā)設(shè)計方法和應用軟件編程等知識傳授給學生,對傳統(tǒng)的教學方法和教學體系進行創(chuàng)新,力求解決嵌入式系統(tǒng)課程抽象與難學的問題全書通俗易懂、內(nèi)容豐富,可作為高等本科院校和職業(yè)技術(shù)學院的計算機、電子信息、自動化、電力電氣電子技術(shù)及機電一體化等相關(guān)專業(yè)的“32位高級單片機原理與應用”、“基于 ARM Cortex內(nèi)核的單片機系統(tǒng)開發(fā)”等課程的教材和教學參考書,也可以作為工程實訓、電子制作與競賽的實踐教材和實驗配套教材,同時還可以供廣大從事自動控制、智能儀器儀表、電力電子、機電一體化等系統(tǒng)開發(fā)和設(shè)計的工程技術(shù)人員、教師者個人參考自學使用,并可作為ARM相關(guān)應用與培訓課程的參考書。
資源較大,分為兩個部分,已全部上傳:第一部分:https://dl.21ic.com/download/arm-429326.html 第二部分:https://dl.21ic.com/download/arm-429325.html 本書介紹了意法半導體(STMicroelectronics,ST)公司的32位基于 ARM Cortex-M3內(nèi)核的STM32單片機應用與實踐。通過“學中做、做中學”,即DIY(Do It yourself)和LBD(Learning By Doing)的方式,按照工作導向的思路展開教學與實踐學習,循序漸進地介紹和構(gòu)建若干典型STM32單片機應用系統(tǒng)的硬件和軟件,以及相關(guān)傳感器電路,將STM32單片機的外圍引腳特性、內(nèi)部結(jié)構(gòu)原理、片上外設(shè)資源、開發(fā)設(shè)計方法和應用軟件編程等知識傳授給學生,對傳統(tǒng)的教學方法和教學體系進行創(chuàng)新,力求解決嵌入式系統(tǒng)課程抽象與難學的問題全書通俗易懂、內(nèi)容豐富,可作為高等本科院校和職業(yè)技術(shù)學院的計算機、電子信息、自動化、電力電氣電子技術(shù)及機電一體化等相關(guān)專業(yè)的“32位高級單片機原理與應用”、“基于 ARM Cortex內(nèi)核的單片機系統(tǒng)開發(fā)”等課程的教材和教學參考書,也可以作為工程實訓、電子制作與競賽的實踐教材和實驗配套教材,同時還可以供廣大從事自動控制、智能儀器儀表、電力電子、機電一體化等系統(tǒng)開發(fā)和設(shè)計的工程技術(shù)人員、教師者個人參考自學使用,并可作為ARM相關(guān)應用與培訓課程的參考書。