Arduino serial communication

Note: The voice interaction module needs to be burned with factory firmware. If the voice chip has not been flashed with firmware after receiving it, it does not need to be burned

1. Experimental preparation

2. Wiring diagram

ArduinoVoice interaction module
TXRX
RXTX
GNDGND
5V5V

image-20250226162912598

3. Program download

image-20250226162937240

image-20250226162955318

image-20250226163020864

4.Achievement effect

image-20250226163041155

image-20250226163051891

The first and second bytes AA FF represent the frame header of the protocol, the third byte FF represents the broadcast function, and the fourth is the ID of the broadcast content. Here you can see "I am ready" is hexadecimal 67, so in the program, send 0x67 to register 0x03 to broadcast the corresponding content. The fifth byte is the end frame.

image-20250226163108057

image-20250226163247441

image-20250226163313393

image-20250226141429180

The first and second bytes AA FF represent the frame header of the protocol, the third byte represents the ID of the ten function words of the chip, and the fourth is the command word ID. Here you can see "close light" is hexadecimal 0A, so decimal will return 10. The fifth byte is the end frame.