基于ESP32的蓝牙翻页器设计
目录
基于ESP32的蓝牙翻页器设计 1
摘要 1
1、绪论 2
1.1认识蓝牙 2
1.2研究思路 3
2.软硬件设计 3
2.1中央处理模块------ESP32 3
2.1.1 esp32内部结构 4
2.1.2 esp32最小系统电路设计 5
3.软件调试 11
3.1 软件程序 11
4.系统测试 12
5.总结 12
致谢 12
摘要
近些年来,随着多媒体技术迅速发展,人民物质生活水平的日益提高,科技产品得到了越来越多人的重视。本次设计主要分析了基于ESP32的蓝牙控制PPT翻页并在OLED 屏幕显示按键值的设计。此蓝牙翻页器采用ESP32的芯片,软件部分组成包括Arduino、ESP蓝牙驱动库、ESP32-BLE键盘模拟库来模拟电脑的按键和U8G2的库显示按键值,硬件部分有ESP32板子、0.96寸OLED 屏幕,通过蓝牙连接实现读取 ESP32的 PIN0口判断是否被按下,按下即执行相应的功能,然后在u8g2库通过I2C连接电路显示按键值,并在Arduino开发环境下编写了相应控制程序,下载到ESP32板子上实现蓝牙翻页功能。
关键词:蓝牙控制; ble_keyboard; OLED显示;Arduino;
Abstract
In recent years, with the rapid development of multimedia technology and the increasing improvement of people’s material living standard, scientific and technological products have attracted more and more attention.This design mainly analyzed the design of the BLUETOOTH control PPT based on ESP32 to turn the page and display the key values on the OLED screen.The bluetooth to advance using ESP32 chip, software components including the Arduino, ESP the bluetooth driver, ESP32 - BLE keyboard simulation to simulate the library computer key and U8G2 library show that the value of the hardware part ESP32 boards, 0.96 inch OLED screen, realize read through bluetooth connection ESP32 PIN0 mouth to judge whether is pressed, press that executes the corresponding function, and then in U8G2 library through the I2C connection circuit shows that the key values, and the corresponding control program written in the Arduino development environment,Download to the ESP32 board for Bluetooth page turning.
Key words: Bluetooth control;ble_keyboard; OLED display;Arduino;
1、绪论
1.1认识蓝牙
蓝牙是一种近距离无线数据和语音传输技术,主要用于取代线材和红外线传输。蓝牙主要用于无线耳机和数据传输,蓝牙技术联盟(Bluetooth Special Interest Group,简称SIG),定义了多种蓝牙规范(Profile,或译为“协议”):
HID:制定鼠标、键盘和游戏杆等人机接口设备(human interface device)所要遵循的规范。
HFP: 泛指用于行动设备