手机蓝牙助手

下载链接
链接:https://pan.baidu.com/s/17ecKjowgyzPd04ojvSK2Kg
提取码:idci
连接
RXD — PA2
TXD — PA3
波特率 9600
蓝牙测试程序
#include "myusart.h"
#include "stm32f10x_usart.h"
#include "stdio.h"
#include "led.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_tim.h"
u8 res;
_Bool USART_STATE =0;
void USART_Config(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
USART_InitTypeDef USART_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
MYNVIC_Configuration();
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP

本文介绍了如何通过STM32单片机与蓝牙模组HC05进行连接,提供了下载链接和配置详情,包括RXD和TXD引脚连接、波特率设置为9600。通过手机蓝牙助手,可以实现手机控制STM32的程序运行,同时给出了蓝牙接收和发送的测试程序示例。
最低0.47元/天 解锁文章
9万+

被折叠的 条评论
为什么被折叠?



