AI Desktop Assistant

Project Background and Objectives

Background: The large language model represented by ChatGPT has developed rapidly and is widely used in education and other fields. However, some people have difficulties in interacting with AI, and existing intelligent devices have limitations in functions, privacy and security.

Objectives: Design an intelligent desktop assistant integrating the functions of a Pomodoro clock and AI Q&A to meet the needs of users for timing and knowledge acquisition in learning and work, and improve user experience and learning efficiency.

Planning and Division of Labor: In the early stage of the project, brainstorming, scheme determination and component procurement were carried out; in the development stage, regular meetings were held, tasks were completed, and assembly and testing were carried out; finally, posters, reports and videos were produced. Team members have clear division of labor, responsible for hardware debugging, logic design, report writing and other work respectively.

Design Concepts

Pomodoro Clock Function: The ADXL345 accelerometer is used to detect the three-dimensional coordinates of the product. The countdown module corresponding to the coordinates is defined through the code. Combined with the LCD1602 display screen to show the time, the HS – KEY4B key switch to control the timing, and the buzzer to prompt the end of the countdown. The ESP32 is used as the main control unit to process signals and execute logical operations, so as to realize the function of setting different countdown times by flipping the product.

AI Q&A Function: Users input voice through the INMP441 microphone. After being processed by the ESP32, it is uploaded to the iFlytek Spark large language model through WIFI. The returned result is converted into an analog signal by the MAX98357 I2S digital audio power amplifier and output by the audio player as a voice answer, realizing the intelligent Q&A function.

Prototyping and Testing

Product Design: According to user needs, a product with a Pomodoro clock and an AI dialogue module is designed. The circuit composition and 3D printing prototype are introduced, and the functions are realized through reasonable layout of components.

Logic Design: The flowcharts of the Pomodoro clock and AI Q&A functions are given, clearly showing the logical steps of function realization.

Programming Implementation: Based on the VScode platform, relevant libraries are called, variables and functions are declared, input initialization is carried out, and sub-functions such as audio filtering, data interaction, Pomodoro clock and time and main programs are written to realize the function logic. This includes configuring the Pomodoro clock time through built-in functions and interacting with the large language model through the API protocol to realize the Q&A function. The response effect is also introduced.

Packaging and Testing

Hardware Assembly: The product is in the shape of a hexagonal clock. The distribution of components on each side is introduced, such as the position and function of the LCD screen, buttons, microphone, ESP32 board and charging port.

Function Testing: The flip timer function and LLM AI intelligent Q&A function are tested. Flipping different sides of the product can achieve countdowns of different durations, and voice questions can get accurate answers. The test results show that the functions are normal.

User Feedback: Users such as middle school students and parents feedback that the product is practical and can solve learning problems. They affirm the Pomodoro clock and AI Q&A functions and think they are innovative and helpful.

Project Summary

The AI desktop assistant has the functions of setting countdown and AI Q&A. Through cost control and user feedback, its market competitiveness has been verified. It meets the needs of the education market and is expected to become an important product in the field of intelligent education.