Software | SDU-CHINA - iGEM 2023

Software

2023 SDU-CHINA


  • Design of a remote glucose monitoring system based on ESP8266 and ARM

  • Foreword

In this design, we performed the App design through Andriod Studio, based on the ESP8266 WIFI module and the ARM. We have developed a Android application that communicates with ESP8266 and allows us to communicate with ESP8266 via a Wi-Fi connection and enables remote control of glucose monitoring and supplementation. In the control system, through the SCM hardware control, according to the needs of microorganisms, accurately control the amount of glucose supplement, and through the APP software monitoring, reduce the manual intervention and monitoring work, reduce the labor cost and labor intensity, improve the work efficiency.


  • System architecture

  • Overall system design

This system designs a wireless transmission platform based on WIFI and WEB server. The system modules include: controller, ESP8266 WIFI module, WEB server and Android phone APP. The main monitoring parameters of the system are: glucan content and concentration in the fermenter.

First, the sensor collects the glucan content in the fermentation tank, and then do the signal conditioning in the STM 32 controller integrated circuit (signal amplification, A / D conversion), the final monitoring results are transmitted through the ESP8266 WIFI module, through the remote glucan monitoring APP in the fermentation tank, can also remotely access the monitoring results in the Web server through the Internet browser, can choose different ways to achieve real-time query of indoor environment parameters.


  • Wireless data transmission design

STM 32 chip is selected as MCU, which is used for data acquisition and control of Bluetooth module sending and receiving. The main control chip STM32F103 is a processor with ARM-32 Cortex-M3 as the core, and the maximum operating frequency can reach 72 MHz. The built-in large-capacity high-speed memory can easily accommodate the space needed by the remote glucose control system. Its built-in analog-to-digital conversion module, we need to program its internal register, used to collect the value of the sensor. Open the clock, get the sensor simulation input, and then do the frequency division, set the ADC working mode, set the ADC rule sequence, open the AD conversion and calibrate the final reading ADC value The communication between the control module and the WIFI module is mainly serial communication. When Stm 32 sends AT commands through the serial port, the control WIFI module carries out tasks such as search connection, pairing, data transmission and other tasks. When the data flow is not AT command, the monitoring data is transmitted to the main control, and then the data processing is done.


  • APP design

We performed the App design via Andriod Studio, based on the ESP8266 WIFI module and the ARM. We have developed a Android application capable of communicating with ESP8266, using Java as the main programming language of Android applications, communicating with ESP8266 through Wi-Fi connection and XML layout design application user interface, using a third-party library and API to enhance the function and performance of the application, and realize remote control glucose monitoring and supplement.


  • Database development and design

The development and design of the system database is based on Visual Studio and Microsoft SQL Server and established by analyzing system requirements.

Data Name Data Type Data Meaning
Glucose Varchar Account category name
Year Varchar Year when the accounts were added
Month Varchar Month when the accounts were added
Day Varchar Date when the accounts were added
Hour Varchar When the account is added

  • Sum up

This paper proposes the smart home monitoring system based on ESP8266 and STM 32, designs the hardware and communication protocol of the monitoring system, builds the WEB server, and develops a corresponding mobile phone APP. The remote glucose control system uses WIFI as the communication medium and realizes the monitoring and query of glucose parameters through the integrated control of STM 32.




Our system architecture includes the following components:

ESP8266 Module:

Responsible for communicating with the Android applications and controlling the connected devices.

Android Application:

Communicate with the ESP8266 via a Wi-Fi connection and provide the user with an interface to control the device.

Server:

It handles the communication between the Android application and the ESP8266.


  • Functional implementation

Wi-Fi connection: The application allows entering credentials for the Wi-Fi network and establishing a connection with the ESP8266.

Device Control: The application provides an interface that allows them to control the device connected to the ESP8266 to monitor the glucose status.

Data transfer:The application is able to receive the sensor data from the ESP8266 and display it to the user.

ESP8266 Programming:We use Arduino IDE to write ESP8266 code to enable communication and device control with Android applications.

Android Application development:We use the Java programming language and Android Studio IDE to develop Android applications to achieve the communication and user interface with ESP8266.

Wi-Fi communication:We use ESP8266's Wi-Fi function to communicate with Android applications, and we use Android's network programming library to communicate with ESP8266. Prepare the ESP8266 module, and connect it to the device. Use Arduino IDE to code ESP8266 to implement communication and device control functions with Android applications. Use Android Studio to create a new Android project and set up communication with ESP8266. Write code for Android applications to implement communication and user interface with ESP8266. Test the application to ensure communication with ESP8266 and device control functions. Optimize and debug the application to ensure its stability and performance.

Through this design, we are based on the App design of ESP8266 and Android Studio. By properly implementing the design process, we have developed a powerful Android application that enables communication with ESP8266 and device control functions.