為解決電致變色器件的顏色變化受外界環(huán)境顏色控制的問題,設(shè)計(jì)了一種基于單片機(jī)的便攜式顏色自適應(yīng)識(shí)別電路。與傳統(tǒng)顏色識(shí)別電路相比較,該電路利用數(shù)字式的顏色傳感器來獲取外界環(huán)境顏色,產(chǎn)生的數(shù)字顏色信號(hào)易于單片機(jī)進(jìn)行處理。在電路中,下位機(jī)部分主要負(fù)責(zé)獲取電致變色器件變色參數(shù)及控制電致變色器件的顏色變化;而上位機(jī)部分主要負(fù)責(zé)把下位機(jī)獲取的電致變色器件變色參數(shù)進(jìn)行電壓到顏色的曲線擬合,并通過藍(lán)牙通信把擬合曲線參數(shù)傳遞給下位機(jī)。結(jié)果表明,該電路能自動(dòng)根據(jù)環(huán)境顏色提供-4~4 V范圍步進(jìn)為0.1 V的電壓來驅(qū)動(dòng)電致變色器件的顏色顯示,與傳統(tǒng)的顏色識(shí)別電路設(shè)計(jì)相比,識(shí)別的精度和速度都得到了明顯改善。
Abstract:
In this paper, a portable adaptive circuit for color identification(PACCI) based on MCU was designed. Compared to the traditional color identification circuit, the PACCI adopts digital sensor to detect the color data from external environment and further generate digital color data, which can be processed easily by MCU. In PACCI, the slave is mainly responsible for detecting the color parameters of the corresponding elcreochromic device and further driving it. For the master, which is mainly responsible for the color curve fitting based on the parameters of the electrochromic device, and transmits the fitting parameters to the slave through the bluetooth device. The results show that the PACCI can provide the basis voltage range from -4V to 4V automatically based on the colors of external environment with step as 0.1V to drive the corresponding electrochromic device. Compared to the traditional color recognition circuit, the recognition accuracy and speed of PACCI have been improved significantly.
Bootloader是微處理器上電時(shí)運(yùn)行的第一段代碼,它可以通過通信接口實(shí)現(xiàn)對微處理器內(nèi)部應(yīng)用程序的更新升級(jí),為網(wǎng)絡(luò)化嵌入式產(chǎn)品的應(yīng)用程序升級(jí)帶來極大的便利。由于目前沒有統(tǒng)一嵌入式系統(tǒng)的Bootloader。基于NEC 78K0系列單片機(jī)自編程原理,設(shè)計(jì)出一個(gè)適用于78K0/Fx2系列單片機(jī)的Bootloader,并能夠通過單片機(jī)串口在線升級(jí)應(yīng)用程序。
Abstract:
Bootloader is the first piece of code executed after microprocessor startup. It makes the embedded product’s firmware update conveniently through communication interface. However, no unified bootloader is available for all kinds of microprocessor products. Based on the principle of self-programming NEC 78K0s’ series, a useful Bootloader which is suitable for 78K0/Fx2s’ series MCU is designed,the design can update the application through serial ports.