当前位置:网站首页>Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
2022-07-06 04:17:00 【DS brother Bruce Lee】
1. Function is introduced
The name of the design topic : be based on ZigBee Automatic lighting system design
Use it all together 3 individual CC2530 ZigBee Development board , The codes are ABC.
A The development board acts as a host : A light sensor is connected to it ,ESP8266WIFI modular . adopt ESP8266 And mobile phones APP Communication between ,ESP8266 Create hotspots , Configure to TCP Server mode ; mobile phone APP Connected to the ESP8266 After the hot spot , Connect again ESP8266 Created servers , Complete communication . mobile phone APP You can control... Through buttons on the B,C Development board LED The light switch .
mobile phone APP The automatic lighting mode can be set on the :
- Automatic lighting mode : according to A The light sensing module on the development board , Collect light intensity , control B、C On the development board LED Light switch .
- Manual mode : mobile phone APP You can choose to control it separately B、C On the development board LED Light switch .
- Support setting the light sensing threshold : On the cell phone APP Can be set on A Development board light sensor threshold ( That is, the threshold value for controlling the light on and off ).
- Support setting brightness , It can also automatically control the brightness according to the ambient light
B The development board acts as a slave node : B On board... Is used on the development board LED The lamp , Simulate the lighting of the bedroom at home , Achieve control effect demonstration .
C The development board acts as a slave node : C On board... Is used on the development board LED The lamp , Simulate the lighting of the living room at home , Achieve control effect demonstration .
Complete project code download address : https://download.csdn.net/download/xiaolong1126626497/75317115
2. Hardware introduction
2.1 ESP8266 wifi
Adopted ESP8266 Series wireless modules are cost-effective WIFI SOC module , This series of modules support standard IEEE802.11b/g/n agreement , Built in complete TCP/IP Protocol stack . Users can use this series of modules to add networking functions to existing devices , You can also build an independent network controller .
CC2530 The development board itself has a ESP8266 Dedicated interface , Just plug it in .
ES8266 WIFI Module connected to A serial port 1 above (P0.4/P0.5 mouth ) , The baud rate is 115200 .
CC2530 Serial port 0 As a routine debugging serial port (P0_2 and P0_3 port ), You can take the collected AD Print data to serial port .
You can also print other debugging information by yourself .
2.2 Photosensitive sensors
3. Project code
3.1 Serial port code
3.2 Key code
3.3 The time delay function
3.4 A Development board ( The coordinator ) Main function code
边栏推荐
- Query the number and size of records in each table in MySQL database
- How does computer nail adjust sound
- 查询mysql数据库中各表记录数大小
- Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
- 2/13 qaq~~ greed + binary prefix sum + number theory (find the greatest common factor of multiple numbers)
- Class A, B, C networks and subnet masks in IPv4
- R note prophet
- 729. 我的日程安排表 I(set or 动态开点线段树)
- The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
- [disassembly] a visual air fryer. By the way, analyze the internal circuit
猜你喜欢
In depth MySQL transactions, stored procedures and triggers
Basic use of MySQL (it is recommended to read and recite the content)
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
math_ Derivative function derivation of limit & differential & derivative & derivative / logarithmic function (derivative definition limit method) / derivative formula derivation of exponential functi
Deep learning framework installation (tensorflow & pytorch & paddlepaddle)
Mlapi series - 04 - network variables and network serialization [network synchronization]
Detailed explanation of serialization and deserialization
Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
Yyds dry goods inventory web components series (VII) -- life cycle of custom components
About some basic DP -- those things about coins (the basic introduction of DP)
随机推荐
math_极限&微分&导数&微商/对数函数的导函数推导(导数定义极限法)/指数函数求导公式推导(反函数求导法则/对数求导法)
About some basic DP -- those things about coins (the basic introduction of DP)
Recommendation | recommendation of 9 psychotherapy books
Explain in simple terms node template parsing error escape is not a function
1291_ Add timestamp function in xshell log
Yyds dry goods inventory hcie security Day11: preliminary study of firewall dual machine hot standby and vgmp concepts
Certbot failed to update certificate solution
Deep learning framework installation (tensorflow & pytorch & paddlepaddle)
. Net interprocess communication
P3500 [poi2010]tes intelligence test (two points & offline)
In depth MySQL transactions, stored procedures and triggers
Introduction to hashtable
How to execute an SQL statement in MySQL
When debugging after pycharm remote server is connected, trying to add breakpoint to file that does not exist: /data appears_ sda/d:/segmentation
2328. 网格图中递增路径的数目(记忆化搜索)
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
Mlapi series - 04 - network variables and network serialization [network synchronization]
Tips for using dm8huge table
牛顿插值法
10個 Istio 流量管理 最常用的例子,你知道幾個?