This invention discloses a brain-controlled
cotton candy machine control method based on attention level and SSVEP (
Steady State Visual
Evoked Potential), belonging to the field of brain-computer interface and
food processing equipment integration technology. This invention employs a NeuroSci
wireless EEG acquisition
system, using SSVEP steady-state
visual evoked potentials to achieve
flavor selection (original, strawberry, pineapple), and utilizes frontal electrodes to collect EEG signals to calculate attention level. An STM32F407ZGT6 is used as the main controller to establish a precise mapping relationship between attention level grading and the
cotton candy machine's
motor speed. This is combined with
servo motors for automatic quantitative feeding,
infrared monitoring for candy card reversal and obstacle clearance, and touch display, voice commands, and multimodal audio-
visual feedback. A state
machine logic is used to complete the entire process of
automatic control, from initialization and preheating to interaction, production, and completion. This invention achieves closed-
loop control of "EEG acquisition—
signal analysis—device execution," solving the problems of cumbersome operation, poor interactivity, and limited functionality in traditional
cotton candy machines. It features intelligent operation, high stability, and high safety, and can be used in parent-child interaction, brain science popularization, and
attention training scenarios, possessing high application and promotion value.