91欧美超碰AV自拍|国产成年人性爱视频免费看|亚洲 日韩 欧美一厂二区入|人人看人人爽人人操aV|丝袜美腿视频一区二区在线看|人人操人人爽人人爱|婷婷五月天超碰|97色色欧美亚州A√|另类A√无码精品一级av|欧美特级日韩特级

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

開發(fā)者作品:一款智能家居系統(tǒng),實現(xiàn)了 4 種控制方式(二)

機智云 ? 2022-05-20 09:21 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

前言

本項目通過闡述基于ESP8266作為處理器(SoC模式開發(fā))接入機智云,借助機智云安卓開源框架設(shè)計的APP,實現(xiàn)了燈的控制、門禁的控制、溫濕度的讀取、有毒氣體的檢測、人體紅外檢測等功能


通過改造機智云開源框架,還實現(xiàn)了一個智能硬件系統(tǒng)支持多種控制方式,如:安卓APP控制、本地按鍵控制、紅外遙控控制、天貓精靈控制,且每一種操作都能和APP同步顯示。

本文是第二篇:UI界面編寫

1.打開GosDeviceControlActivity這個類2.導(dǎo)入UI使用到的圖片3.編寫UI界面詳解4.下載到真題驗證
5.編寫密碼輸入的UI界面

進入正文

編寫機智云安卓開源框架的UI界面,需要修改的是控制模塊的部分

585c59f0-d14b-11ec-8521-dac502259ad0.png


1.打開GosDeviceControlActivity這個類

586b51ee-d14b-11ec-8521-dac502259ad0.png

找到Oncreate()方法:

5879960a-d14b-11ec-8521-dac502259ad0.png

刪除不必要的東西,如下圖所示:

58ada440-d14b-11ec-8521-dac502259ad0.png

注意,因為在GosDeviceControlActivity.java中引用了我們刪除的控件,所以在GosDeviceControlActivity也必須把這個引用刪除,否則因為找不到對應(yīng)的控件導(dǎo)致錯誤。


2.導(dǎo)入UI使用到的圖片

把我們在UI需要適用到的圖片導(dǎo)入drawable,以便引用,文件如下

58bfe5d8-d14b-11ec-8521-dac502259ad0.png

復(fù)制到如下的路徑:

58ffafb0-d14b-11ec-8521-dac502259ad0.png


3.編寫UI界面詳解:

因為所有控件一個頁面是顯示不下的,所以此處需要使用一個 ScrollView ,使UI界面可以上下滑動

ScrollView具體使用方法:

https://blog.csdn.net/qq_36243942/article/details/82185051

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background02"
android:fadingEdge="vertical"
android:paddingBottom="10dp"
android:paddingTop="20dp"
android:scrollbars="vertical">

注意此處修改了背景為剛才我們導(dǎo)入的背景圖片,視圖如下:

591c6b0a-d14b-11ec-8521-dac502259ad0.png

在最上邊編寫一個復(fù)位按鈕,用來復(fù)位大燈,以及門禁系統(tǒng):

也就是如下的界面:

5985ae44-d14b-11ec-8521-dac502259ad0.png

在ScrollView中新建一個根布局為線性布局(LinearLayout)

備注:

1.控件布局相關(guān)知識:

https://blog.csdn.net/qq_36243942/article/details/81736744

2.線性布局相關(guān)知識:

https://blog.csdn.net/qq_36243942/article/details/81808833

2.為了讓按鈕看起來更美觀,且有按下的效果,我們自己新建一個selector布局,然后引用這個布局文件

步驟:




關(guān)于如何自定義按鈕屬性:https://blog.csdn.net/qq_36243942/article/details/82113312

UI界面代碼如下:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background02"
android:fadingEdge="vertical"
android:paddingBottom="10dp"
android:paddingTop="20dp"
android:scrollbars="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:scrollbars="vertical"
android:weightSum="1">
android:id="@+id/Reset_ButtonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="300dp"
android:background="@drawable/btn_beselected"
android:text="復(fù)位" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="大燈開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">



備注:在Button控件的background中引用這個drawable文件

599f1870-d14b-11ec-8521-dac502259ad0.png

界面如下:

59b68c26-d14b-11ec-8521-dac502259ad0.png

完成大燈控制的UI界面

如下:

5a01be1c-d14b-11ec-8521-dac502259ad0.png

這個按鈕使用的控件是CheckBox,當(dāng)這個CheckBox未被選中時,顯示紅色的圖片,并顯示開關(guān)狀態(tài)為關(guān),如果CheckBox被選中那么現(xiàn)實綠色的圖片,并顯示狀態(tài)為開。

備注:

1.CheckBox的使用方法:https://blog.csdn.net/qq_36243942/article/details/81744237

2.創(chuàng)建一個selector布局,設(shè)置選中顯示顯示綠色,未選中選擇紅色

5a28a518-d14b-11ec-8521-dac502259ad0.png

步驟:

5a45a6fe-d14b-11ec-8521-dac502259ad0.png

5a561eee-d14b-11ec-8521-dac502259ad0.png

代碼如下:

android:state_checked="true">
android:state_checked="false">

詳細(xì)代碼代碼如下:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background02"
android:fadingEdge="vertical"
android:paddingBottom="10dp"
android:paddingTop="20dp"
android:scrollbars="vertical">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:scrollbars="vertical"
android:weightSum="1">

android:id="@+id/Reset_ButtonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="300dp"
android:background="@drawable/btn_beselected"
android:text="復(fù)位" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="大燈開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">

android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_marginLeft="100dp"
android:layout_weight="0.10"
android:orientation="vertical">


android:id="@+id/TV_RedID"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="大廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox01_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_GreenID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:layout_marginTop="5dp"
android:text="食廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox02_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_BlueID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:text="臥室燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox03_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />






備注:每個CheckBox的background屬性都需要引用selector02_cb這個文件

5a7013d0-d14b-11ec-8521-dac502259ad0.png

整體界面如下:

5a9c62be-d14b-11ec-8521-dac502259ad0.png

完成門禁開關(guān)面板的UI界面設(shè)計

如下:

5af26aa6-d14b-11ec-8521-dac502259ad0.png

這兩個按鈕實用的控件上ImageButton

備注:

1.ImageButton的使用:https://blog.csdn.net/qq_36243942/article/details/81783895

在上面的基礎(chǔ)增加一個線性布局,注意此時線性布局的方向應(yīng)該是水平的。

整體代碼如下:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background02"
android:fadingEdge="vertical"
android:paddingBottom="10dp"
android:paddingTop="20dp"
android:scrollbars="vertical">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:scrollbars="vertical"
android:weightSum="1">

android:id="@+id/Reset_ButtonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="300dp"
android:background="@drawable/btn_beselected"
android:text="復(fù)位" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="大燈開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">

android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_marginLeft="100dp"
android:layout_weight="0.10"
android:orientation="vertical">


android:id="@+id/TV_RedID"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="大廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox01_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_GreenID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:layout_marginTop="5dp"
android:text="食廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox02_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_BlueID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:text="臥室燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox03_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">

android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="門禁開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_weight="0.24"
android:orientation="horizontal">

android:id="@+id/IV_ButtonID"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="40dp"
android:background="@drawable/mybtnopen" />

android:id="@+id/IV_closeButtonID"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="80dp"
android:background="@drawable/mybtnclose" />






整體界面如下:

5b3bfa4a-d14b-11ec-8521-dac502259ad0.png

接下來就是溫濕度檢測,有毒氣體,以及紅外檢測等一些TextView的設(shè)置,就不一一貼出來了,整體代碼如下:

android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background02"
android:fadingEdge="vertical"
android:paddingBottom="10dp"
android:paddingTop="20dp"
android:scrollbars="vertical">


android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:scrollbars="vertical"
android:weightSum="1">

android:id="@+id/Reset_ButtonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="300dp"
android:background="@drawable/btn_beselected"
android:text="復(fù)位" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="大燈開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_marginLeft="100dp"
android:layout_weight="0.10"
android:orientation="vertical">


android:id="@+id/TV_RedID"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="大廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox01_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_GreenID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:layout_marginTop="5dp"
android:text="食廳燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox02_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />

android:id="@+id/TV_BlueID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:text="臥室燈開關(guān):關(guān)"
android:textAllCaps="false"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/checkbox03_ID"
android:layout_width="150dp"
android:layout_height="85dp"
android:background="@drawable/selecter02_cb"
android:button="@null" />


android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="門禁開關(guān)面板"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_weight="0.24"
android:orientation="horizontal">

android:id="@+id/IV_ButtonID"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="40dp"
android:background="@drawable/mybtnopen" />

android:id="@+id/IV_closeButtonID"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="80dp"
android:background="@drawable/mybtnclose" />


android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="30dp"
android:orientation="horizontal">

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="門禁狀態(tài)指示:"
android:textColor="#33ff99"
android:textSize="20dp" />


android:id="@+id/TV_indicateID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="關(guān)閉"
android:textColor="#ffff00"
android:textSize="20dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:id="@+id/textView8"
android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="溫濕度檢測"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="1dp"
android:layout_marginTop="20dp"
android:orientation="horizontal"
android:padding="50dp">


android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="大氣溫度"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/tv_data_temp"
android:layout_width="110dp"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:textColor="@color/green"
android:textSize="30dp" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="0.03"
android:orientation="horizontal"
android:padding="50dp">

android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:text="相對濕度"
android:textColor="#33ff99"
android:textSize="20dp" />


android:id="@+id/tv_data_hum"
android:layout_width="110dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="30dp"
android:gravity="end"
android:textColor="@color/green"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:id="@+id/textView6"
android:layout_width="match_parent"
android:layout_height="35dp"

android:gravity="center"
android:text="有毒氣體檢測"
android:textColor="#f86354"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="0.03"

android:padding="50dp">

android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:text="氣體監(jiān)測"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/tv_gsa_detection"
android:layout_width="110dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="end"
android:textColor="#FF0000"
android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="35dp"
android:gravity="center"
android:text="紅外感應(yīng)檢測"
android:textColor="#f86354"

android:textSize="30dp" />

android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_weight="0.03"
android:padding="50dp">

android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:text="人體檢測"
android:textColor="#33ff99"
android:textSize="20dp" />

android:id="@+id/tv_body_move"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="end"
android:textColor="#FF0000"
android:textSize="30dp" />

android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">

android:id="@+id/Reset_DetnumId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:background="@drawable/btn_beselected"
android:text="復(fù)位檢測" />

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="    檢測次數(shù)統(tǒng)計:"
android:textColor="#ca8687"
android:textSize="20dp" />

android:id="@+id/TV_Det_timesID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" 0次"
android:textColor="#1d953f"
android:textSize="20dp" />



android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/alert_blue">


整體UI界面效果如下:

5b7c8542-d14b-11ec-8521-dac502259ad0.png

5bc85c60-d14b-11ec-8521-dac502259ad0.png


4.下載到真題驗證

修改完了UI界面之后,就可以下載到真題上體驗一下:

步驟:

4.1.進入機智云官網(wǎng),打開你的項目,打開虛擬設(shè)備

5c0d32a4-d14b-11ec-8521-dac502259ad0.png

4.2.點擊二維碼

5c4a1502-d14b-11ec-8521-dac502259ad0.png

4.3.使用APP掃描

5c78309a-d14b-11ec-8521-dac502259ad0.png

4.4.掃描后進入

5cbbc47c-d14b-11ec-8521-dac502259ad0.png

4.5.接下來就可以看到我們寫的UI界面啦

5ce9b102-d14b-11ec-8521-dac502259ad0.png


5.編寫密碼輸入的UI界面

到了這一步好像UI設(shè)計已經(jīng)全部完成了,但是上面還有一個門禁的Activity哦,就是當(dāng)你按門禁開關(guān)面板的紅色綠色按鈕時,

進入密碼輸入界面,輸入正確的密碼則打開門禁,否則不打開。

在這里使用Intent進行Activity的跳轉(zhuǎn)

備注:

5.1.何為Intent//blog.csdn.net/qq_36243942/article/details/81938476

步驟:

5.1.1.在ControlModule新建一個空的Activity

5cfd421c-d14b-11ec-8521-dac502259ad0.png

5.1.2.填寫Activity的名稱和所對應(yīng)layout的名稱,Androidstuio會自動

5d2dfda8-d14b-11ec-8521-dac502259ad0.png

5.1.3.編寫ActivityLock.xml文件

代碼如下:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#D1EEEE"
android:orientation="vertical">
android:layout_width="368dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="請輸入門禁密碼"
android:textSize="25dp"
android:gravity="center"
android:layout_marginTop="30dp"/>
android:id="@+id/ED_Passward_ID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="請輸入密碼" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">


android:id="@+id/BT_sure_ID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="確定"
android:layout_marginLeft="200dp"/>
android:id="@+id/BT_cancle_ID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"/>

android:id="@+id/TV_reciveID"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text=""
android:textSize="25dp"
android:gravity="center"
android:layout_marginTop="30dp"/>





界面如下:

5d54b182-d14b-11ec-8521-dac502259ad0.png

到這里所有的UI界面已經(jīng)設(shè)計完成了,接下來就是需要寫控制代碼了。

(控制代碼實現(xiàn)參考本系列文章第一篇)

————————————————

版權(quán)聲明:本文為CSDN博主「冷暖自知_源」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請附上原文出處鏈接及本聲明。

原文鏈接:https://blog.csdn.net/qq_36243942/article/details/88577979



聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • 智能家居
    +關(guān)注

    關(guān)注

    1943

    文章

    9998

    瀏覽量

    197458
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點推薦

    控制模式的智能家居系統(tǒng)設(shè)計

    隨著物聯(lián)網(wǎng)技術(shù)的發(fā)展,智能家居的需求不斷增加,但仍存在設(shè)備兼容性差和成本高等問題。本文提出了一種基于STM32單片機的多模式智能家居控制系統(tǒng),該系統(tǒng)
    的頭像 發(fā)表于 01-15 18:01 ?346次閱讀
    多<b class='flag-5'>控制</b>模式的<b class='flag-5'>智能家居</b><b class='flag-5'>系統(tǒng)</b>設(shè)計

    本地智能家居系統(tǒng)ESPHome,實現(xiàn)遠程訪問調(diào)試

    ESPHome 是個開源固件框架,支持通過 YAML 配置實現(xiàn)智能家居自動化,可本地部署并公網(wǎng)訪問,便于遠程開發(fā)。
    的頭像 發(fā)表于 12-30 14:48 ?1276次閱讀
    本地<b class='flag-5'>智能家居</b><b class='flag-5'>系統(tǒng)</b>ESPHome,<b class='flag-5'>實現(xiàn)</b>遠程訪問調(diào)試

    基于芯源CW32 MCU智能家居照明控制系統(tǒng)設(shè)計與實現(xiàn)

    ,增強智能家居體驗。 多房間燈光控制:通過擴展多個CW32 MCU節(jié)點,系統(tǒng)可以實現(xiàn)對不同房間的燈光獨立控制,每個節(jié)點通過統(tǒng)
    發(fā)表于 12-03 06:06

    集成MT9103線性霍爾傳感器提升智能家居控制精度與系統(tǒng)智能化水平

    隨著智能家居市場的快速發(fā)展,用戶對控制精度和系統(tǒng)智能化的需求日益提升。在這背景下,集成MT9103線性霍爾傳感器成為提升
    的頭像 發(fā)表于 08-15 17:20 ?988次閱讀
    集成MT9103線性霍爾傳感器提升<b class='flag-5'>智能家居</b><b class='flag-5'>控制</b>精度與<b class='flag-5'>系統(tǒng)</b><b class='flag-5'>智能</b>化水平

    藍牙語音遙控器:智能家居的智慧控制核心

    和OM6621芯片的強大性能,開發(fā)者能夠輕松打造高品質(zhì)的遙控器產(chǎn)品,滿足市場多樣化需求。未來,隨著技術(shù)的不斷突破,藍牙語音遙控器必將在智能家居領(lǐng)域綻放更大光芒,為用戶創(chuàng)造更便捷、舒適的生活方式。
    發(fā)表于 06-01 20:24

    手機APP遠程控制智能家居監(jiān)測、智能控制系統(tǒng)(STM32L4、服務(wù)器、安卓源碼)實例項目打包下載

    手機APP遠程控制,智能家居監(jiān)測、智能控制系統(tǒng)(STM32L4、服務(wù)器、安卓源碼)實例項目打包,推薦下載!
    發(fā)表于 05-29 21:47

    (大賽作品)STM32F072RB NUCLEO智能家居控制實例項目

    (大賽作品)STM32F072RB NUCLEO智能家居控制實例項目文檔截圖
    發(fā)表于 05-28 21:06

    手機APP遠程控制,智能家居監(jiān)測、智能控制系統(tǒng)(STM32L4、服務(wù)器、安卓源碼)

    手機APP遠程控制,智能家居監(jiān)測、智能控制系統(tǒng)(STM32L4、服務(wù)器、安卓源碼) 項目實例下載! 純分享帖,需要
    發(fā)表于 05-23 21:00

    Matter 智能家居的通用語言

    企業(yè)正在測試 134 獨特的 Matter 產(chǎn)品。 在消費智能家居設(shè)備無縫互操作性需求的推動下,Matter的廣泛采用將吸引更多的開發(fā)者
    發(fā)表于 05-19 15:35

    2025 TUYA全球開發(fā)者大會成功閉幕,涂鴉智能以下一代AI硬件重構(gòu)人機交互邊界?

    4月23日,涂鴉智能系列前沿AI爆產(chǎn)品重磅亮相2025TUYA全球開發(fā)者大會現(xiàn)場,吸引
    的頭像 發(fā)表于 05-08 19:07 ?858次閱讀
    2025 TUYA全球<b class='flag-5'>開發(fā)者</b>大會成功閉幕,涂鴉<b class='flag-5'>智能以下一</b>代AI硬件重構(gòu)人機交互邊界?

    明遠智睿SSD2351開發(fā)板:智能家居智能核心

    數(shù)據(jù),如溫度、濕度、光照強度等,為智能家居系統(tǒng)的自動化控制提供準(zhǔn)確的數(shù)據(jù)支持。全開源的開發(fā)資料和一對一的技術(shù)支持,讓
    發(fā)表于 05-07 18:59

    探秘明遠智睿SSD2351開發(fā)板在HMI領(lǐng)域的獨特魅力

    畫面,確保家庭安全。 開發(fā)板支持浮點運算,能夠精確處理各種數(shù)據(jù),如溫度、濕度、光照強度等,為智能家居系統(tǒng)的自動化控制提供準(zhǔn)確的數(shù)據(jù)支持。全開源的開發(fā)
    發(fā)表于 04-30 18:15

    智能家居控制器:無線通訊,智能化管理家居設(shè)備

    ,逐步重塑現(xiàn)代人的生活方式、技術(shù)原理 智能家居控制器的本質(zhì)是個集成化控制中樞,通過低電壓
    的頭像 發(fā)表于 04-24 15:09 ?1336次閱讀

    智能家居Mesh組網(wǎng)方案:實現(xiàn)智能化生活的無縫連接NRF52832

    自組織的 Mesh 網(wǎng)絡(luò),將各個智能設(shè)備連接在起,實現(xiàn)全屋智能家居的無縫連接。與傳統(tǒng)的單點連接方式
    發(fā)表于 04-15 14:07

    智能家居到智慧建筑:NAYOTA LBMS 如何賦能 樹莓派5 實現(xiàn)設(shè)備互聯(lián)?

    智能建筑飛速發(fā)展的今天,如何高效、穩(wěn)定地管理和控制上千個設(shè)備,成為每個建筑管理開發(fā)者亟待解決的難題。樹莓派5,作為
    的頭像 發(fā)表于 03-25 09:42 ?1281次閱讀
    從<b class='flag-5'>智能家居</b>到智慧建筑:NAYOTA LBMS 如何賦能 樹莓派5 <b class='flag-5'>實現(xiàn)</b>設(shè)備互聯(lián)?