当前位置:网站首页>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
边栏推荐
- Embedded startup process
- I2C总线时序详解
- [golang] leetcode intermediate - fill in the next right node pointer of each node & the k-smallest element in the binary search tree
- Pytorch four commonly used optimizer tests
- Working principle of genius telephone watch Z3
- Dead loop in FreeRTOS task function
- vim命令行笔记
- Understanding of AMBA, AHB, APB and Axi
- Raspberry pie tap switch button to use
- RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
猜你喜欢

Kaggle competition two Sigma connect: rental listing inquiries

Characteristics, task status and startup of UCOS III

记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
![[Red Treasure Book Notes simplified version] Chapter 12 BOM](/img/ff/0ad410b5b556c0e16a4076a2a0577b.jpg)
[Red Treasure Book Notes simplified version] Chapter 12 BOM

JS正则表达式基础知识学习

Detailed explanation of 5g working principle (explanation & illustration)

Arm pc=pc+8 is the most understandable explanation

Pytorch four commonly used optimizer tests

MySQL takes up too much memory solution

Pytorch: tensor operation (I) contiguous
随机推荐
RT thread API reference manual
Kconfig Kbuild
.elf .map .list .hex文件
MP3mini播放模块arduino<DFRobotDFPlayerMini.h>函数详解
[esp32 learning-2] esp32 address mapping
I2C bus timing explanation
Walk into WPF's drawing Bing Dwen Dwen
Detailed explanation of 5g working principle (explanation & illustration)
Cannot change version of project facet Dynamic Web Module to 2.3.
Kaggle competition two Sigma connect: rental listing inquiries (xgboost)
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
Arduino JSON data information parsing
Pytoch temperature prediction
Understanding of AMBA, AHB, APB and Axi
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
History object
ES6 grammar summary -- Part 2 (advanced part es6~es11)
关于Gateway中使用@Controller的问题
ESP8266通过arduino IED连接巴法云(TCP创客云)
MySQL time, time zone, auto fill 0