当前位置:网站首页>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
边栏推荐
- (一)R语言入门指南——数据分析的第一步
- Types de variables JS et transformations de type communes
- RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
- Arm pc=pc+8 is the most understandable explanation
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
- Dead loop in FreeRTOS task function
- Understanding of AMBA, AHB, APB and Axi
- Basic operations of databases and tables ----- view data tables
- arduino JSON数据信息解析
- Variable parameter principle of C language function: VA_ start、va_ Arg and VA_ end
猜你喜欢
ES6语法总结--下篇(进阶篇 ES6~ES11)
Kconfig Kbuild
Oppo vooc fast charging circuit and protocol
open-mmlab labelImg mmdetection
Page performance optimization of video scene
Intermediate use tutorial of postman [environment variables, test scripts, assertions, interface documents, etc.]
Problèmes avec MySQL time, fuseau horaire, remplissage automatique 0
level16
Esp8266 uses Arduino to connect Alibaba cloud Internet of things
【ESP32学习-1】Arduino ESP32开发环境搭建
随机推荐
About using @controller in gateway
Vscode basic configuration
Detailed explanation of Union [C language]
JS正则表达式基础知识学习
Reno7 60W super flash charging architecture
Keyword inline (inline function) usage analysis [C language]
@The difference between Autowired and @resource
2022.2.12 resumption
Redis cache update strategy, cache penetration, avalanche, breakdown problems
@Autowired 和 @Resource 的区别
程序员老鸟都会搞错的问题 C语言基础 指针和数组
JS object and event learning notes
1081 rational sum (20 points) points add up to total points
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
Important methods of array and string
Postman 中级使用教程【环境变量、测试脚本、断言、接口文档等】
PT OSC deadlock analysis
锂电池基础知识
Common DOS commands
Inline detailed explanation [C language]