王帥 何見飛 段良菊 唐可 楊文耀 李杰



摘 要:熱帶魚由于觀賞性好,受到廣大養(yǎng)魚愛好者的喜愛,由于在生長環(huán)境達不到要求的情況下,會影響熱帶魚的生長甚至導致死亡,因此,在飼養(yǎng)熱帶魚的過程中需要對飼養(yǎng)的水溫、光照和水中含氧量進行控制。基于此,本文通過以STC12C5A60S2單片機為核心的系統(tǒng),對水溫、光照和水中含氧量對熱帶魚生長有影響的因素進行監(jiān)控及調節(jié),達到增強其存活率,降低人工飼養(yǎng)難度的目的。
關鍵詞:水族箱;溫度;STC12C5A60S2;控制
中圖分類號:S969 文獻標識碼:A 文章編號:1003-5168(2018)23-0079-02
Study on the Design of Tropical Fish Aquarium
WANG Shuai1,2 He Jianfei1,2 DUAN Liangju1,2 TANG Ke1,2 YANG Wenyao1,2 LI Jie1,2
(1.Chongqing Engineering Research Center of New Energy Storage Devices and Applications,Chongqing 402160;
2.Chongqing University of Arts and Sciences,Chongqing 402160)
Abstract: Tropical fish, because of its good ornamentability, is loved by many fish raising enthusiasts. Because the growing environment can not meet the requirements, it will affect the growth of tropical fish and even lead to death. Therefore, the temperature, light and oxygen content of the reared fish should be controlled in the process of feeding the tropical fish. Based on this, this paper monitors and regulates the influence of water temperature, light and oxygen content in water on the growth of tropical fish by using the STC12C5A60S2 MCU as the core system, so as to enhance the survival rate and reduce the difficulty of artificial feeding.
Keywords: aquatic animals box;temperature;STC12C5A60S2;control
熱帶魚的生長水溫通常為25~30℃,對氧氣的需求量很大,需要對其進行加氧,且對光照也有一定要求。針對上述問題,本文設計采用STC12C5A60S2單片機控制的熱帶魚飼養(yǎng)控制系統(tǒng),實現(xiàn)對熱帶魚生長環(huán)境水溫、光照和含氧量的控制,達到增強其存活率,降低人工飼養(yǎng)難度的目的[1]。
1 系統(tǒng)方案
系統(tǒng)主要由單片機控制器模塊、溫度傳感裝置、按鍵設置,以及供氧、加熱、水循環(huán)、顯示和照明裝置組成,具體框圖如圖1所示。
控制器模塊采用以增強型80C51內(nèi)核的STC系列單片機STC12C5A60S2為核心控制器,采用DS18B20溫度傳感器實時感應水的溫度,在溫度不足時用加熱棒加熱水溫,并用LED電路提供照明;用水泵循環(huán)提供氧氣且過濾,從而營造干凈的環(huán)境。
2 硬件電路設計
其中,單片機部分是通過C語言編寫程序實現(xiàn)對STC12C5A60S2單片機芯片引腳的控制,從而控制三極管導通與關閉,進而控制繼電器動作實現(xiàn)電路運行。該單片機操作較為簡單,具有在系統(tǒng)調試的功能(ISD),而且開發(fā)環(huán)境非常容易搭建。……