Joke Collection Website - Blessing messages - How to realize the communication between Bluetooth and MCU?
How to realize the communication between Bluetooth and MCU?
1. A single chip microcomputer with serial port.
2.USB to serial module (welded by yourself, so it's ugly, and of course you can also use the serial part of the learning board).
3. Bluetooth to serial module.
4. If your mobile phone system is Android, download an Android Bluetooth debugging assistant.
5. Install the serial debugging assistant on the computer.
6. Several Dubang lines, etc.
Second, the debugging work
Everything is ready except the east wind.
1. Debugging Bluetooth module
Connect USB to serial port module and Bluetooth module with DuPont cable.
Serial module? Bluetooth module.
VCC->; VCC .
TXD->; RXD .
RXD<TXD .
GND->; GND .
Open the Bluetooth Assistant of the mobile phone, connect the Bluetooth module, and enter some characters casually after success, and you will see the characters displayed on the serial assistant of the computer, provided that the baud rate of the serial port corresponds to the baud rate of the Bluetooth module (default is 9600).
2. Serial debugging of single chip microcomputer
Or connect USB-to-serial module and single chip microcomputer with Dubang cable, and open serial debugging assistant on computer for debugging.
For wiring mode, please refer to debugging Bluetooth module.
Let's not talk about the program of single chip microcomputer. The assumption here has been made. If it is normal, you will see the expected effect.
Third, the connection work
Connect the Bluetooth module with the MCU module, then open the Bluetooth debugging assistant and connect the Bluetooth module to send data.
At this time, it's like sending data to a single chip microcomputer with a serial assistant on a computer.
Single chip microcomputer is an integrated circuit chip. It is a small and perfect microcomputer with the functions of CPU, RAM, ROM, various I/O ports, interrupt system, timer/counter (possibly including display drive circuit, pulse width modulation circuit, analog multiplexer, A/D converter, etc.). ) and data processing capabilities are integrated into silicon chips.
Widely used in the field of industrial control. From the 1980s, from the then 4-bit and 8-bit single-chip microcomputer to the present 300M-meter high-speed single-chip microcomputer.
- Related articles
- What if I can't finish sending text messages?
- Classic greeting for ex-girlfriend marriage
- The first anniversary of the official announcement, in addition to the great love of the couple's copywriting, how did Zhao celebrate his birthday?
- Warm-hearted message for girlfriends, suitable for message sentences for girlfriends.
- Classic greetings from newlyweds
- Samsung's SMS is locked. What if I forget my password?
- Ask for the latest SMS to open all kinds of drilling codes.
- How to adjust the vibration mode when Apple's mobile phone doesn't ring
- Planning scheme of Dragon Boat Festival activities
- My mobile phone is Nokia 5320xm. Why is it that sometimes when a short message comes, the prompt message is not displayed on the desktop and the envelope in the upper right corner is not displayed?