当前位置:网站首页>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
边栏推荐
- MySQL takes up too much memory solution
- Analysis of charging architecture of glory magic 3pro
- @Autowired 和 @Resource 的区别
- ES6语法总结--下篇(进阶篇 ES6~ES11)
- Gateway 根据服务名路由失败,报错 Service Unavailable, status=503
- Arm pc=pc+8 is the most understandable explanation
- ESP8266通过Arduino IDE连接Onenet云平台(MQTT)
- JS正则表达式基础知识学习
- I2C总线时序详解
- 数据库课程设计:高校教务管理系统(含代码)
猜你喜欢
MySQL占用内存过大解决方案
锂电池基础知识
Générateur d'identification distribué basé sur redis
Cannot change version of project facet Dynamic Web Module to 2.3.
Pytorch four commonly used optimizer tests
OPPO VOOC快充电路和协议
CUDA C programming authoritative guide Grossman Chapter 4 global memory
高通&MTK&麒麟 手機平臺USB3.0方案對比
Basic operations of databases and tables ----- modifying data tables
[esp32 learning-1] construction of Arduino esp32 development environment
随机推荐
Basic operations of databases and tables ----- creating data tables
Arduino JSON data information parsing
JS function promotion and declaration promotion of VaR variable
JS变量类型以及常用类型转换
Esp8266 uses Arduino to connect Alibaba cloud Internet of things
History object
单片机蓝牙无线烧录
Variable parameter principle of C language function: VA_ start、va_ Arg and VA_ end
Important methods of array and string
JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.
C语言,log打印文件名、函数名、行号、日期时间
Detailed explanation of Union [C language]
Symbolic representation of functions in deep learning papers
.elf .map .list .hex文件
JS object and event learning notes
锂电池基础知识
Redis based distributed ID generator
基于Redis的分布式ID生成器
Mysql database interview questions
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口