Star sky top control method and device, equipment and storage medium
By combining Bluetooth and lightweight voice control, a variety of starry sky lighting effects are generated, solving the problems of limited control methods and insufficient special effects for in-vehicle starry sky ceilings. This enables high-resolution LED control and an immersive experience, adapting to the needs of different specifications of in-vehicle starry sky ceilings.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG RONGDA OPTOELECTRONICS CO LTD
- Filing Date
- 2026-02-24
- Publication Date
- 2026-05-29
AI Technical Summary
Existing vehicle-mounted starry sky ceiling control methods are limited, lack special effects, and have poor scalability, failing to meet users' needs for convenient control and high-resolution display. Furthermore, they suffer from issues such as LED control delay and poor special effects synchronization.
It adopts a combination of Bluetooth and lightweight voice control, generates lighting effects by parsing control commands, and supports effect switching, brightness adjustment and LED quantity configuration. Voice commands take priority. It combines frame buffering and scanning technology to achieve high-resolution LED control, supports exclusive effects such as constellations and shooting stars, and binds effects through custom voice commands.
It enables wireless and intelligent lighting effect control of the starry sky ceiling, enriches the special effects, enhances the immersive experience, supports smoothness and flexible adaptation in high-resolution mode, avoids resource conflicts, and adapts to complex electromagnetic environments.
Smart Images

Figure CN122121023A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of starry sky ceilings, and in particular to a control method, apparatus, device, and storage medium for starry sky ceilings. Background Technology
[0002] As a feature that enhances the in-vehicle atmosphere and driving experience, in-vehicle starry sky roofs are gaining popularity among users.
[0003] Current control schemes for in-vehicle starry sky roofs mainly fall into two categories: one is the traditional button control scheme. This type of control is simple, switching between preset fixed effects via buttons. Its core logic uses GPIO interrupts to trigger mode switching, controlling the LED driver chip (such as TLC5940) to achieve basic lighting effects such as full brightness, breathing, and line scanning. Due to the limitation of the number of physical buttons, only a few preset modes can be switched. The function is simple, and the operation is inconvenient while driving, failing to meet the user's need for convenient control while driving. Another type is a simple Bluetooth control solution, which solves the problem of wireless operation, but lacks the hands-free advantage of voice control and does not have voice interaction capabilities. In addition, the effects library is limited to basic transformations and only supports basic on / off and brightness adjustment, without designing exclusive effects for starry sky scenes (such as constellations, shooting stars, etc.).
[0004] Therefore, both of the above solutions suffer from insufficient special effects, an inability to balance control flexibility and the richness of special effects, and poor scalability. For example, they lack immersive scene effects such as constellation simulation and shooting stars, and only support simple control of up to 256 LEDs, making it difficult to adapt to the fine display requirements of high-resolution starry sky ceilings (such as 512 LEDs). They also suffer from LED control delay and poor special effects synchronization. Summary of the Invention
[0005] To address the issues of limited control methods, insufficient special effects, and poor scalability in existing vehicle-mounted starry sky roof systems, this application provides a control method, device, equipment, and storage medium for a starry sky roof system.
[0006] In one aspect of this disclosure, a method for controlling a starry sky ceiling is proposed, comprising: In response to control commands, the control commands are parsed and the lighting effect configuration is updated; Generate lighting effects based on the parsed instructions and execute them.
[0007] By adopting the above technical solution, the starry sky ceiling is controlled to generate and execute lighting effects according to instructions.
[0008] Preferably, the control commands include Bluetooth commands and voice commands, with the priority being: voice commands > Bluetooth commands; The parsing types of the control commands include: Effects toggle command, used to switch the target effect mode; Brightness adjustment command, used to adjust the brightness of the light; The LED quantity configuration command is used to configure the number of LEDs. The lighting effect configuration includes frame buffer dimension, scan timing parameters, LED number identifier, light brightness value, and special effect mode, including constellation effect and meteor effect.
[0009] By adopting the above technical solution, voice commands have higher priority than Bluetooth commands, avoiding command conflicts. Control commands are parsed into three types, facilitating accurate parameter extraction by type and preventing command confusion or parsing errors.
[0010] Preferably, the control method for the starry sky ceiling also includes: The lighting effect configuration information is fed back to the control command issuing end.
[0011] By adopting the above technical solution, closed-loop control of "command issuance - status feedback" can be achieved.
[0012] Preferably, the step of generating and executing the lighting effect based on the parsed instructions includes: The corresponding effect generation method is invoked according to the instructions to fill the frame buffer; The overall brightness is adjusted by multiplying the brightness values of each LED in the frame buffer by the global brightness. The LEDs are illuminated by scanning them point by point or in batches and driving the output.
[0013] By adopting the above technical solutions, the target special effects can be accurately and richly displayed in an immersive manner. It has strong scalability, ensures the smoothness of special effects in high-resolution mode, and can meet the adaptation needs of different specifications of in-vehicle starry sky roofs.
[0014] Preferably, the special effects generation method includes a constellation special effects generation method, which includes: Pre-stored constellation star chart data; Traverse the constellation star map coordinates and set the brightness of the corresponding LED in the frame buffer; Add a breathing and twinkling effect to the core star of the constellation, and light up the blank area next to the constellation with LED beads to form the constellation name; Switch between different constellations displayed in the star chart.
[0015] By adopting the above technical solutions, in addition to achieving constellation effects, we have further implemented star twinkling and constellation name prompts, enhancing the immersive experience.
[0016] Preferably, the special effects generation method includes a meteor effect generation method, which includes: Randomly generate the meteor's starting coordinates, trajectory direction, and length; The position of the meteor is updated periodically, and the update interval is adjustable. The brightness of the LED beads decreases exponentially along the trajectory direction.
[0017] By adopting the above technical solutions, the trajectory of the meteor effect can be made random and the speed adjustable, thereby enhancing the immersive experience.
[0018] Preferably, the control commands include custom voice commands, and the method for establishing the custom voice commands includes: Bind custom command text to the target effect and store it in Flash; Input the custom command text into the speech recognition module to complete offline training.
[0019] By adopting the above technical solution, special effects and custom commands can be bound together, improving flexibility.
[0020] In another aspect of this disclosure, a control device for a starry sky ceiling is provided, comprising: The main control module is configured to coordinate Bluetooth communication, voice recognition, lighting effect calculation and drive control, and the main control module has a built-in FreeRTOS operating system; The Bluetooth communication module is configured to provide GATT services based on the ESP32 BLE protocol stack, including lighting control command characteristic values and status feedback characteristic values. The speech recognition module is configured to integrate an offline speech library and support the recognition and parsing of preset speech commands; The lighting effect generation module is configured to extend the special effects library based on the frame buffer mechanism and generate corresponding LED brightness data according to control commands; The LED driver module is configured to include row and column drivers, and supports 16×16 or 16×32 LED matrix. It achieves lighting effect output through point-by-point scanning or batch scanning.
[0021] By adopting the above technical solution, relying on Bluetooth (BLE) and lightweight voice control, the starry sky ceiling achieves wireless and intelligent lighting effect control, while also featuring exclusive special effects such as constellations and shooting stars, and supports flexible adaptation of 256 / 512 LED beads, realizing the binding of special effects with custom commands.
[0022] In another aspect of this disclosure, an electronic device is provided, including one or more processors for implementing the control method described in any of the preceding claims.
[0023] In another aspect of this disclosure, a computer-readable storage medium is provided having a program stored thereon that, when executed by a processor, implements the control method described in any of the preceding claims.
[0024] Beneficial technical effects: The control method of the starry sky ceiling in this application realizes wireless and intelligent lighting effect control of the starry sky ceiling through Bluetooth (BLE) and lightweight voice control. It also has exclusive special effects such as constellations and shooting stars, and supports flexible adaptation of 256 / 512 LED beads, realizing the binding of special effects and custom commands.
[0025] Specifically, the control method, device, equipment, and storage medium for the starry sky ceiling of this application have the following technical effects: 1. Convenient control method: It integrates BLE Bluetooth and lightweight voice collaborative control. Users can quickly switch effects through mobile app or voice command (such as saying "Meteor Mode" while driving) without operating physical buttons, which improves driving safety and ease of use. 2. Richer and more immersive special effects: New starry sky exclusive effects such as constellations and shooting stars have been added. Combined with detailed optimizations such as twinkling stars and gradual changes in trajectory, the real starry sky scene is restored. Compared with traditional basic effects, the atmosphere and immersion are significantly improved. 3. Enhanced scalability: Supports dynamic adaptation of 256 / 512 LEDs. Through batch scanning and timing optimization, it ensures smooth special effects in high-resolution mode and can meet the adaptation needs of different specifications of vehicle-mounted starry sky roofs. 4. Higher stability: Based on FreeRTOS multi-task scheduling and mutex lock mechanism, it avoids resource conflicts between Bluetooth, voice and lighting effect drivers, maintains a scanning frequency of 200Hz, has no flickering, and is adapted to the complex electromagnetic environment of the vehicle. 5. Customizable voice command function: Command text is sent via a mobile app, and the ESP32 stores and trains the voice model to achieve the binding of special effects with custom commands. Attached Figure Description
[0026] Figure 1 This is a flowchart of the control method for the starry sky ceiling in an embodiment of this application.
[0027] Figure 2 This is a parsing type diagram of control instructions in the embodiments of this application.
[0028] Figure 3 This is a flowchart illustrating the specific process of generating and executing lighting effects based on the parsed instructions in this embodiment of the application.
[0029] Figure 4 This is a flowchart of the constellation effect generation method in the embodiments of this application.
[0030] Figure 5 This is a flowchart of the meteor effect generation method in the embodiments of this application.
[0031] Figure 6 This is a schematic diagram of the control device for the starry sky ceiling in an embodiment of this application.
[0032] Explanation of reference numerals in the attached figures: 1. Control commands; 11. Special effects switching commands; 12. Brightness adjustment commands; 13. LED quantity configuration commands; Control device; 21. Main control module; 22. Bluetooth communication module; 23. Voice recognition module; 24. Lighting effect generation module; 25. Lamp bead driver module. Detailed Implementation
[0033] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and therefore detailed descriptions of them will be omitted. Furthermore, the drawings are merely illustrative of this disclosure and are not necessarily drawn to scale.
[0034] With the development of Bluetooth communication technology and lightweight voice recognition technology, wireless and intelligent control solutions have been provided for in-vehicle devices. Users expect to achieve flexible control of the in-vehicle starry sky roof through mobile app / app or voice commands, while obtaining a richer starry sky scene experience. Therefore, it is necessary to design a starry sky roof control method and device that integrates Bluetooth communication, voice recognition, and highly scalable lighting effect control.
[0035] The following is in conjunction with the appendix Figures 1-6 This application will be described in further detail.
[0036] In one aspect of this disclosure, a method for controlling a starry sky ceiling is proposed, such as... Figure 1 As shown, the control method for the starry sky dome includes: S1. In response to control command 1, parse control command 1 and update the lighting effect configuration; S2. Generate lighting effects based on the parsed instructions and execute them.
[0037] By adopting the above technical solution, the starry sky ceiling is controlled to generate and execute lighting effects according to instructions.
[0038] Specifically, the control command 1 includes Bluetooth commands and voice commands, and the starry sky ceiling can be controlled via both Bluetooth and voice.
[0039] For example, when using Bluetooth commands: after the mobile app / APP or vehicle terminal establishes a connection with the Bluetooth communication module 22, the user sends control command 1 (such as "meteor mode" or "brightness 50%) to the Bluetooth communication module 22 through the app / APP or vehicle terminal. After receiving the data, the Bluetooth communication module 22 stores the command in the command queue through the GATT feature value callback function. For example, when using voice commands: the voice recognition module 23 collects in-vehicle voices in real time. When a voice signal that matches the preset command is detected, the recognition result (such as "Orion") is sent to the main control module 21 via the UART serial port. After receiving the command, the main control module 21 parses the command type and stores it in the command queue.
[0040] It should be noted that the priority is: voice commands > Bluetooth commands; this design avoids command conflicts.
[0041] Specifically, if a Bluetooth command and a voice command arrive at the same time, an exclusion lock is used to ensure the atomicity of command parsing, and the voice command is executed first. After execution, the status is fed back to the mini-program / APP or the vehicle terminal.
[0042] like Figure 2 As shown, the parsing types of the control command 1 include: Special effects switching instruction 11 is used to switch the target special effects mode. The special effects include the original basic special effects (full brightness, breathing, line scanning, etc.), the newly added constellation special effects and meteor special effects. Brightness adjustment command 12 is used to calculate and adjust the light brightness and update the global state; The LED quantity configuration command 13 is used to configure the number of LEDs, for example, switching from 256 LEDs to 512 LEDs.
[0043] The control command 1 is parsed into three types, which makes it easier to extract parameters accurately according to type and avoid command confusion or parsing errors.
[0044] Specifically, the lighting effect configuration includes frame buffer dimension, scanning timing parameters, LED number identifier, light brightness value, and special effect mode. When the number of LEDs changes, the frame buffer dimension is updated synchronously (e.g., expanded from 16×16 to 16×32) and the scanning timing parameters are adjusted.
[0045] Furthermore, when updating lighting effect configurations, global variables are protected using mutex locks to ensure secure access for multiple tasks.
[0046] In this embodiment of the disclosure, the control method for the starry sky dome further includes: The lighting effect configuration information is fed back to the control command issuing end. For example, during the execution of the scanning task, the main control module 21 feeds back the current status (lighting effect configuration such as special effect mode, brightness value, number of LED beads, etc.) to the mobile app / APP or vehicle terminal in real time through the Bluetooth communication module 22, and displays it on the interface to realize the closed-loop control of "command issuance - status feedback".
[0047] It should be noted that before running S1, the control device of the starry sky roof needs to be initialized to ensure that the control method of the starry sky roof operates smoothly. The specific initialization method is as follows: Hardware initialization: After the main control module 21 starts up, it initializes the LED driver module 25. When the main control module 21 uses the ESP32 chip, it configures its GPIO pins to output mode, clears the frame buffer, and turns off all LEDs. Software initialization: Create a mutex lock and initialize FreeRTOS tasks (Bluetooth communication task, voice recognition task, lighting effect generation task, and scan driver task). Bluetooth communication module 22 initialization: Start BLE service, configure GATT attributes (service UUID: 0x180A, light control command characteristic value UUID: 0x2A57, status feedback characteristic value UUID: 0x2A58), set the Bluetooth device name to "vehicle starry sky roof", and wait for mobile phone or vehicle terminal to connect; Voice recognition module 23 initialization: Initialize the lightweight voice library, load the preset voice command set (such as "turn on full brightness", "breathing mode", "Orion", "meteor mode", "brightness 30%", "brightness 70%", "switch 512 LED beads", etc.), and set the recognition threshold to 85% to reduce the false recognition rate.
[0048] In the embodiments disclosed herein, such as Figure 3 As shown, S2 generates lighting effects based on the parsed instructions and executes the following: S21. Call the corresponding special effects generation method according to the instruction to fill the frame buffer; S22. Multiply the brightness values of each LED in the frame buffer by the global brightness to adjust the overall brightness; S23. The LED beads are illuminated by scanning them point by point or in batches and driving the output.
[0049] By adopting the above technical solutions, the target special effects can be accurately and richly displayed in an immersive manner. It has strong scalability, ensures the smoothness of special effects in high-resolution mode, and can meet the adaptation needs of different specifications of in-vehicle starry sky roofs.
[0050] Specifically, if the instruction in S21 calls the original basic effects (full brightness, breathing, row scanning, etc.), the original effects generation methods for full brightness, breathing, row scanning, etc. will be directly used to fill the frame buffer, and the column loop range will be expanded when adapting to 512 LEDs.
[0051] If the instruction in S21 calls a constellation effect generation method, then the frame buffer will be filled according to the following constellation effect generation methods. For example... Figure 4 As shown, the constellation effect generation method includes: S31. Pre-store constellation star map data, such as Orion containing 7 core stars, and record their coordinates and brightness weights in the LED matrix; S32. Traverse the constellation star map coordinates and set the brightness of the corresponding LEDs in the frame buffer. For example, the core star brightness = MAX_BRIGHTNESS, and the peripheral auxiliary star brightness = MAX_BRIGHTNESS × 60%. S33. Add a breathing and blinking effect to the core star of the constellation, such as the brightness changing periodically between MAX_BRIGHTNESS×70% and MAX_BRIGHTNESS, with a period of 2 seconds.
[0052] The blank area next to the constellation is illuminated with LED beads to form the constellation name. For example, the abbreviation of the constellation name can be used instead, such as "Orion" displayed as "LY". The name is displayed for 3 seconds and then automatically turns off to avoid obscuring the main body of the constellation.
[0053] S34: Switch between displaying different constellations in the star chart.
[0054] By adopting the above-mentioned constellation effect generation method, in addition to realizing constellation effects, we have further realized star twinkling and constellation name prompts, enhancing the immersive experience.
[0055] If the instruction in S21 calls the meteor effect generation method, then the frame buffer will be filled according to the following meteor effect generation method, such as... Figure 5 As shown, the method for generating meteor effects includes: S41. Randomly generate the starting coordinates, trajectory direction (e.g., top left → bottom right, top → bottom, top right → bottom left), and length of the meteor (e.g., 3-5 LEDs); S42. The position of the meteor is updated every certain period of time. The update interval is adjustable, and the brightness of the LED beads decreases exponentially along the trajectory direction.
[0056] As an example, the update interval is 50ms, the brightness of the meteor head is set to MAX_BRIGHTNESS, and the brightness of the tail decreases according to the trajectory (tail 1 brightness = MAX_BRIGHTNESS × 80%, tail 2 brightness = MAX_BRIGHTNESS × 50%, tail 3 brightness = MAX_BRIGHTNESS × 20%).
[0057] When a command such as "meteor speed up" or "meteor speed down" is received via Bluetooth communication module 22 or voice recognition module 23, the meteor position update interval is adjusted. The shorter the update interval, the faster the meteor speed.
[0058] The exponential decay of the LED brightness can simulate the light and shadow effects of a real meteor, and the random trajectory and adjustable speed enhance the immersive experience.
[0059] As an example, the brightness of the meteor's tail decreases exponentially according to the following formula: Tail brightness = Head brightness × (0.7^n), where n is the serial number of the tail LED (n=1,2,3).
[0060] Furthermore, the meteor effect generation method also includes: after the meteor moves out of the LED matrix, a new meteor starting position and trajectory are regenerated to achieve loop playback.
[0061] Specifically, in S23, the process of scanning the LED beads point-by-point or in batches and driving the output to light up the LED beads includes: First, scanning task scheduling: High-priority scanning tasks are initiated, and the scanning method is selected according to the number of LEDs: 256 LEDs (16×16) are scanned point by point, traversing all rows (0-15) and columns (0-15) to locate individual LEDs; 512 LEDs (16×32) are scanned in batches, dividing the 32 columns into 2 groups (16 columns per group), and scanning the data of each group of columns in sequence, with the total scanning frequency maintained at 200Hz (to avoid flicker and adapt to the complex electromagnetic environment of the vehicle). Secondly, the drive output: First, blanking control is performed. Before scanning, the TLC5940 BLANK pin is set to a high level to prevent cross-lighting. Then, based on the current row and column, a row strobe signal is sent through the 74HC595 row driver module, and a column strobe signal and grayscale data are sent through the TLC5940 column driver module. Finally, the BLANK pin of the TLC5940 column driver module is set to a low level to light up the current LED and maintain it for the corresponding scan time (single-point lighting time during point-by-point scanning = total cycle / total number of LEDs). Finally, after scanning all the LEDs, return to iterate again to achieve continuous display of the lighting effect.
[0062] As can be seen, the S23 optimizes the frame buffer and scanning logic, supports dynamic adaptation of 256 / 512 LEDs, and ensures the smoothness of special effects in high-resolution mode through batch scanning and timing optimization.
[0063] In this embodiment, the control command 1 further includes a custom voice command. This design allows for the binding of special effects with custom commands, improving flexibility. The method for establishing the custom voice command includes: First, in the mini-program / app or vehicle terminal, the custom command text (such as "Romantic Mode") is bound to the target effect (such as "Constellation + Meteor Hybrid Mode"). Then, the command data is sent to the main control module 21 through the Bluetooth communication module 22. The main control module 21 stores the custom command text and the corresponding effect ID in Flash. Next, input the custom command text into the speech recognition module 23 to complete offline training.
[0064] Furthermore, after offline training is complete, users can speak custom commands. The speech recognition module 23 will recognize the commands successfully and trigger the corresponding effects. At the same time, the mini-program will provide feedback that the custom voice command has been successfully executed, which verifies that the custom voice command training has been successful.
[0065] In another aspect of the embodiments of this disclosure, a control device for a starry sky ceiling is provided, such as... Figure 6 As shown, the control device for the starry sky ceiling includes a main control module 21, a Bluetooth communication module 22, a voice recognition module 23, a lighting effect generation module 24, and an LED bead driving module 25. The modules work together to realize Bluetooth / voice control, lighting effect generation and driving functions.
[0066] Specifically, the main control module 21 is configured to coordinate Bluetooth communication, voice recognition, lighting effect calculation and drive control. The main control module 21 has a built-in FreeRTOS operating system. As an example, the main control module 21 is an ESP32 chip, and its built-in FreeRTOS operating system ensures that each module runs in parallel through multi-task scheduling.
[0067] The Bluetooth communication module 22 is configured to use the ESP32 BLE protocol stack to provide GATT services, including light control command feature values and status feedback feature values, enabling wireless communication with mobile app / APP or vehicle terminal.
[0068] As can be seen, the Bluetooth communication module 22 establishes a Bluetooth communication link through the BLE protocol stack of ESP32, enabling bidirectional data transmission between the mobile app / APP or vehicle terminal and the control device, and supporting commands such as effect switching, brightness adjustment, and LED quantity configuration.
[0069] The voice recognition module 23 is configured to integrate an offline voice library (such as the LD3320 voice recognition chip or the ESP32 built-in voice recognition algorithm), supporting the recognition and parsing of preset voice commands. It can realize voice control of lights without the need for a network, adapting to the needs of driving scenarios.
[0070] The lighting effect generation module 24 is configured to extend the special effects library based on the frame buffer mechanism (including the original basic special effects + new constellation and meteor special effects), and generate the corresponding LED brightness data according to the control command 1.
[0071] The LED driver module 25 is configured to include row and column drivers, supporting a 16×16 (256 LEDs) or 16×32 (512 LEDs) LED matrix, and achieving lighting effect output through point-by-point scanning or batch scanning.
[0072] As an example, the row driver is the 74HC595 row driver module, and the column driver is the TLC5940 column driver module.
[0073] Specifically, the connection relationships of each module are as follows: the GPIO pins of ESP32 are connected to 74HC595 (SDI, SRCLK, RCLK) to control row selection; the GPIO pins of ESP32 are connected to TLC5940 (SDI, SCLK, XLAT, BLANK) to control column selection and grayscale output; the UART pins of ESP32 are connected to the voice recognition module 23 (TX / RX) to receive voice recognition results; and the power supply pins of ESP32 are connected to the driver module and the voice module to provide stable power supply (3.3V / 5V).
[0074] The control device for the starry sky ceiling in this embodiment relies on Bluetooth (BLE) and lightweight voice control to achieve wireless and intelligent lighting effect control. It also features exclusive special effects such as constellations and shooting stars, and supports flexible adaptation of 256 / 512 LED beads, enabling the binding of special effects with custom commands.
[0075] In another aspect of the present disclosure, an electronic device is provided, including one or more processors for implementing the control method described in any of the foregoing embodiments.
[0076] In another aspect of the present disclosure, a computer-readable storage medium is provided having a program stored thereon that, when executed by a processor, implements the control method described in any of the preceding claims.
[0077] This application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented using any method or technology. Information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0078] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," "third," and similar terms used in this application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms "an" or "a" and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms "comprising" or "including" and similar terms mean that the elements or objects preceding "comprising" or "including" encompass the elements or objects listed following "comprising" or "including" and their equivalents, and do not exclude other elements or objects. "Above," "below," "left," "right," etc., are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0079] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for controlling a starry sky ceiling, characterized in that, include: In response to control commands, the control commands are parsed and the lighting effect configuration is updated; Generate and execute lighting effects based on the parsed instructions.
2. The control method according to claim 1, characterized in that: The control commands include Bluetooth commands and voice commands, with the following priority: voice commands > Bluetooth commands; The parsing types of the control commands include: Effects toggle command, used to switch the target effect mode; Brightness adjustment command, used to adjust the brightness of the light; The LED quantity configuration command is used to configure the number of LEDs. The lighting effect configuration includes frame buffer dimension, scan timing parameters, LED number identifier, light brightness value, and special effect mode, including constellation effect and meteor effect.
3. The control method according to claim 1, characterized in that: Also includes: The lighting effect configuration information is fed back to the control command issuing end.
4. The control method according to claim 1, characterized in that: The process of generating and executing lighting effects based on the parsed instructions includes: The corresponding effect generation method is invoked according to the instructions to fill the frame buffer; The overall brightness is adjusted by multiplying the brightness values of each LED in the frame buffer by the global brightness. The LEDs are illuminated by scanning them point by point or in batches and driving the output.
5. The control method according to claim 4, characterized in that, The special effects generation method includes a constellation special effects generation method, which includes: Pre-stored constellation star chart data; Traverse the constellation star map coordinates and set the brightness of the corresponding LED in the frame buffer; Add a breathing and twinkling effect to the core star of the constellation, and light up the blank area next to the constellation with LED beads to form the constellation name; Switch between different constellations to display star chart data.
6. The control method according to claim 4, characterized in that: The special effects generation method includes a meteor effect generation method, which includes: Randomly generate the meteor's starting coordinates, trajectory direction, and length; The position of the meteor is updated periodically, and the update interval is adjustable. The brightness of the LEDs decreases exponentially along the trajectory.
7. The control method according to claim 1, characterized in that: The control commands include custom voice commands, and the method for creating the custom voice commands includes: Bind custom command text to the target effect and store it in Flash; Input the custom command text into the speech recognition module to complete offline training.
8. A control device for a starry sky ceiling, characterized in that, include: The main control module is configured to coordinate Bluetooth communication, voice recognition, lighting effect calculation and drive control, and the main control module has a built-in FreeRTOS operating system; The Bluetooth communication module is configured to provide GATT services based on the ESP32 BLE protocol stack, including lighting control command characteristic values and status feedback characteristic values. The speech recognition module is configured to integrate an offline speech library and support the recognition and parsing of preset speech commands; The lighting effect generation module is configured to extend the special effects library based on the frame buffer mechanism and generate corresponding LED brightness data according to control commands; The LED driver module is configured to include row and column drivers, and supports 16×16 or 16×32 LED matrix. It achieves lighting effect output through point-by-point scanning or batch scanning.
9. An electronic device, characterized in that, It includes one or more processors for implementing the control method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, It stores a program that, when executed by a processor, implements the control method as described in any one of claims 1 to 8.