The smart furniture central control system expansion board is formed based on the powerful capabilities of ART-Pi. Integrates scattered interfaces on ART-Pi to facilitate subsequent development.
This expandable board has rich functions. Compared with the hardware development and debugging of the original board, this product has the following features:
1. Independent power supply, easily capable of handling a variety of peripherals
The LM1117 solution is adopted, connected to the common ground with the ART-Pi, and leads to multiple 3.3V voltage interfaces to provide a stable power supply for the extended version, while reducing the power supply burden of the ART-Pi and easily capable of handling multiple loads.
2. Comes with its own sensor and reserves other sensor interfaces
This product comes with a temperature and humidity sensor, and an ambient light sensor, and has reserved interfaces for a variety of modules, allowing plug and play.
3. 4-digit indicator light, OLED display, matrix keyboard, convenient for interaction
It is equipped with a 0.96 OLED interface and matrix keyboard, and can be easily debugged with ART-Pi.
--------------------------------------------------3.28----- -------------------------------------------------- ------------------
The project is basically completed. Relying on the powerful RTT software package support, the project has been realized.
1. One-click networking relying on wifi library
2. One-click connection to MQTT server relying on pahomqtt package
3. Network time synchronization relying on netutils
4. Reading and publishing of DHT11 data
5. Payload analysis and control of electrical appliances based on cjson
6. Control of remote devices
7. OLED screen system status display based on u8g2 library
The project classifies and integrates the resources on the expansion board, implements initialization in mypi.c, and re-encapsulates a small part of the interface of the u8g2 library, which can be introduced into mypi.h and oled.h for use.
led2: Flashing indicates that the system is running normally.
1. One-click networking
Press sw5, OLED displays "wifi link..". After a few seconds, OLED displays "wifi ok", LED3 lights up, and the network is successfully connected.
2. One-click connection to MQTT
After networking, press sw6 to connect to the server. LED4 lights up and the connection is successful.
3. Network time synchronization and DHT11 temperature and humidity data reading
After connecting to the Internet, press sw7 to immediately read the current temperature and humidity and report it to the cloud. At the same time, the time is synchronized through the network to achieve accurate travel time.
4. Debugging display
When a message is sent from the cloud, cjson parses it and controls the device, and OLED displays the delivered content, such as LED5.
5. On-board resource debugging
Control sw1, sw3, control the absorption and release of KA1 and report it to the cloud.
6. Remote device debugging
Send control messages to 8266 through the mqtt server.
Finally, the basic development is now complete and criticism is welcome.
In the future, we will enrich the drivers for various interfaces and use node-red as the host computer. It is estimated that it will be summer vacation.
--------------------------------------------------3.31------ -------------------------------------------------- --------------------------------------------------
Source code: Link: https://pan.baidu.com/s/1YzG_9qFUwXZ--j4S4gnE7w
Extraction code: crw8
After copying this content, open the Baidu Netdisk mobile app for more convenient operation.
There is also github that is not very good at it: https://github.com/yapi12138/IOT.git
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet