当前位置:网站首页>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
边栏推荐
- [face recognition series] | realize automatic makeup
- 【HBZ分享】ArrayList的增删慢查询快的原因
- . Net interprocess communication
- 满足多元需求:捷码打造3大一站式开发套餐,助力高效开发
- Brief tutorial for soft exam system architecture designer | general catalog
- [FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
- Comprehensive ability evaluation system
- When debugging after pycharm remote server is connected, trying to add breakpoint to file that does not exist: /data appears_ sda/d:/segmentation
- 拉格朗日插值法
- 图应用详解
猜你喜欢
How many of the 10 most common examples of istio traffic management do you know?
[PSO] Based on PSO particle swarm optimization, matlab simulation of the calculation of the lowest transportation cost of goods at material points, including transportation costs, agent conversion cos
Développement d'un module d'élimination des bavardages à clé basé sur la FPGA
MySql數據庫root賬戶無法遠程登陸解决辦法
Tips for using dm8huge table
[introduction to Django] 11 web page associated MySQL single field table (add, modify, delete)
记一次excel XXE漏洞
Yyds dry goods inventory hcie security Day11: preliminary study of firewall dual machine hot standby and vgmp concepts
Detailed explanation of serialization and deserialization
DM8 backup set deletion
随机推荐
[face recognition series] | realize automatic makeup
DM8 archive log file manual switching
VPP性能测试
查询mysql数据库中各表记录数大小
In depth MySQL transactions, stored procedures and triggers
P2102 地砖铺设(dfs&贪心)
Web components series (VII) -- life cycle of custom components
Mysql数据库慢sql抓取与分析
TCP/IP协议里面的网关地址和ip地址有什么区别?
Recommendation system (IX) PNN model (product based neural networks)
2/13 review Backpack + monotonic queue variant
Path of class file generated by idea compiling JSP page
R note prophet
PTA tiantisai l1-078 teacher Ji's return (15 points) detailed explanation
综合能力测评系统
解决“C2001:常量中有换行符“编译问题
Solve the compilation problem of "c2001: line breaks in constants"
Leetcode32 longest valid bracket (dynamic programming difficult problem)
[leetcode question brushing day 33] 1189 The maximum number of "balloons", 201. The number range is bitwise AND
1291_ Add timestamp function in xshell log