当前位置:网站首页>Single chip Bluetooth wireless burning
Single chip Bluetooth wireless burning
2022-07-06 12:19:00 【XlinliY. Zhang】
One 、 Why do I need Bluetooth wireless burning
When we put the SCM development board 、 Or install the self-made system board on the equipment , You always have to drag a long line to re burn USB Line , Especially for some development boards , for example Arduino pro mini This one doesn't USB to TTL Development board , It is necessary to pull several DuPont lines for burning , We will also face the problem of poor contact , Especially troublesome . therefore , Use a piece of HC-05 perhaps HC-06 Realize Bluetooth communication at the same time , It can also realize stable burning , Isn't it a happy thing .
Learn before Arduino I learned this article when burning Bluetooth : Upload wirelessly through Bluetooth module Arduino Program
But the method of this article is the same as Arduino Pro Mini The burning method is the same ( Don't use DTR), Manual reset is required , Make the single chip microcomputer enter BL, Compile simple programs, and you can wait beside them to start uploading , Then press the reset button , Successfully burned .
however !!!!
If the project is relatively large (Arduino IDE The compilation is notoriously slow ) The program , If you compile for a few minutes , You see , Missed the moment , A cool song for you . therefore , When carrying Liangliang down , Made the automatic burning thing .
Two 、 How to realize Bluetooth wireless burning
The general process of wireless burning is , Connection detected , Reset the MCU , Forward computer data and MCU data interaction , Finish burning .
The following is the basic knowledge to understand the working principle of the system :
(1) about Arduino IDE( Never tested , Not sure Windows Is the Bluetooth serial port under open and then connected to Bluetooth or ), Use serial port monitor or burn , Will disconnect Bluetooth , Reconnect , send out / receive data , That's important , The principle of this circuit is to connect Bluetooth when burning , Bluetooth module connection instructions for burning .
(2) The capacitor has the function of isolating DC and AC , The reset of single chip microcomputer requires a high ( low ) Level pulse to reset , If you keep raising ( Pull it down ) MCU reset pin , Then the single chip microcomputer cannot work normally . therefore , It is particularly important to use capacitors to convert continuous level signals into single pulse signals .
(3) The Bluetooth transparent module can send the serial port data of the computer according to the baud rate set by the module , The kind that doesn't move .
3、 ... and 、 Materials needed
(1)HC-05\06 A piece of
(2)S8050 One
(3)104 One capacitor ( If onboard DTR Pin , You can use this capacitor )
(4)1K resistance 2 individual
(5) Connect several wires 、 A bread board ( How to connect the eight immortals to cross the sea shows their magic powers )
Four 、 Schematic diagram
Simple schematic diagram
5、 ... and 、 Specific operation
(1) Set the Bluetooth module : The Bluetooth module setup process is very simple , Just set the corresponding baud rate , Set the baud rate to and the development board BL The required baud rate is the same Just go .
Here's the part Arduino Baud rate setting reference
UNO、MEGA2560:115200
atmega328:57600
atmega168,atmega8 :19200
The specific operation is , Press and hold the Bluetooth module EN Button , Use USB turn TTL Connecting to a computer , Use serial port monitor baud rate 38400 send out AT return AT It indicates that you have successfully entered AT Pattern , Need to use AT Instructions for :
AT+UART=115200,1,2
(2) Build the circuit : There's nothing to say about this part , Just follow the schematic diagram and finish it .
(3) Connect the computer with Bluetooth : Turn on the computer Bluetooth , Search Bluetooth module ( Power on the Bluetooth module ), Enter the pairing code ( No 0000, Namely 1234), Then click “ More Bluetooth options ”,COM port , Remember that the direction is outgoing COM Number ,Arduino Or other software can use this string of slogans to communicate .
6、 ... and 、 demonstration
Because I didn't understand the functions of components thoroughly when I was young , Made a complicated circuit , The circuit in the video can also be used , It's just too complicated
边栏推荐
- Rough analysis of map file
- Kaggle competition two Sigma connect: rental listing inquiries (xgboost)
- Symbolic representation of functions in deep learning papers
- 如何给Arduino项目添加音乐播放功能
- The dolphin scheduler remotely executes shell scripts through the expect command
- Redis based distributed ID generator
- NRF24L01故障排查
- Basic operations of databases and tables ----- classification of data
- MySQL占用内存过大解决方案
- C语言回调函数【C语言】
猜你喜欢
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
Vscode basic configuration
E-commerce data analysis -- salary prediction (linear regression)
Classification, understanding and application of common methods of JS array
OPPO VOOC快充电路和协议
Working principle of genius telephone watch Z3
Navigator object (determine browser type)
ESP学习问题记录
STM32 how to locate the code segment that causes hard fault
MySQL占用内存过大解决方案
随机推荐
Reno7 60W super flash charging architecture
Basic operations of databases and tables ----- creating data tables
Navigator object (determine browser type)
(一)R语言入门指南——数据分析的第一步
Esp8266 uses Arduino to connect Alibaba cloud Internet of things
列表的使用
(三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
Pytoch temperature prediction
Embedded startup process
[esp32 learning-1] construction of Arduino esp32 development environment
ESP learning problem record
小天才电话手表 Z3工作原理
C语言回调函数【C语言】
【ESP32学习-2】esp32地址映射
MySQL takes up too much memory solution
Bubble sort [C language]
Custom view puzzle getcolor r.color The color obtained by colorprimary is incorrect
@Autowired 和 @Resource 的区别
高通&MTK&麒麟 手机平台USB3.0方案对比
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍