How to Make Your Arduino Talk to Your Smartphone Through A Bluetooth Network
The Arduino has been widely common in projects where you have to make the communication without wire sensors, controllers and processors. low energy Bluetooth modules communication is already popular and common in several devices:
■ Smartphones
■ Tablets
■ Headsets
■ notebooks and others
It is one of the best options to implement wireless networks with Arduino.
Furthermore, the HC05 and HC06 are the main Bluetooth modules for interfacing with Arduino. In addition to being easy to common and prototype, they are cheap and easily found at any electronics distributor that works with Arduino.
In this post you will learn a little more about low energy Bluetooth modules, about the HC05 and HC06 modules, and SKYLAB will show you how to make your Arduino talk to your Smartphone through a Bluetooth network.
Low energy Bluetooth modules networks are the heart of IoT
Bluetooth technology is a protocol for radio communication for personal common, that is, it is a wireless network specification classified as PAN (Personal Area Network). It developed in 1994 by Ericsson as a wireless alternative to the RS-232 protocol. The frequency range common by Bluetooth is 2.4 to 2485 GHz.
A group of companies and development centers called the Bluetooth Special Interest Group is responsible for writing the protocol specifications and releasing updated versions and new features.
Protocols of low energy Bluetooth modules
The protocol comes under low energy Bluetooth modules communication emblem it must comply with all protocol specifications. However, for each Bluetooth version there are qualification tests that a product must pass in order to be certified as a device using Bluetooth communication.
Why adruino is popular as low energy Bluetooth modules?
Arduino has been widely common in projects that require wireless communication of sensors, controllers and processors. Bluetooth communication already popularized and common in various devices such as Smartphones, tablets, Headsets, notebooks and others, is one of the best options for implementing wireless networks with Arduino.
The HC05 and HC06 are the main low energy Bluetooth modules for interfacing with Arduino. In addition to being easy to common and prototype, they are cheap and easily found at any electronics distributor that works with Arduino.
The main versions of the protocol already released are:
The Bluetooth modules available on the market are divided into three classes, depending on the range and maximum power, they are:
■ Bluetooth classes according to maximum power and range
Currently there are several manufacturers and Bluetooth modules, as well as software and applications available for free that allow the integration of this technology in your electronic projects.
Applications modules HC05 and HC06
The HC-05 low energy Bluetooth modules can work in both master mode (make and accept pairing with other devices) and slave mode (only accept pairing). The HC-06 module can only work in slave mode.
Communication voltage on the low energy Bluetooth modules
It is important to note that the communication voltage on the modules is 3.3V, that is, despite the power supply being 5V, the RX and TX pins common 3.3V signals to communicate. Thus, it is necessary to common a voltage divider to obtain 3.3 V from the 5V output of the Arduino TX.
Among the applications of these two modules are:
■ Transmission of sensor data;
■ Communication between two Arduino boards for data exchange;
■ Furthermore, data transmission to actuators;
■ Also, Arduino communication with Smartphone and other mobile devices;
Now that you know the main concepts behind Bluetooth and the HC-05 and HC-06 modules common with arduino, lets implement our first project using low energy Bluetooth modules communication.
Project Description of low energy Bluetooth modules
In this project we will show you how to interface an Arduino Uno R3 with your Android smartphone. Through the Bluetooth connection between the arduino and the smartphone. We will inform the status of a key monitored by Arduino on the cell phone screen.
Thus, there are three main dimensions of the project:
■ Establish Bluetooth communication between the Arduino and the cell phone/tablet through an HC-05 or HC-06 module ;
■ Read the status of a key with Arduino and send it to the cell phone to be shown on the screen;
■ Send cell phone commands to Arduino so that it activates and deactivates a led;
Hardware Aspects of low energy Bluetooth modules
First of all, let's go to our list of components. You will need all of them to make this montage:
■ Arduino UNO R3 + USB cable ;
■ low energy Bluetooth modules HC-05/HC-06 ;
■ A push button or protoboard retentive switch;
■ Also, Properly sized resistors for a 5V to 3.3V voltage divider;
■ Protoboard ;
■ Moreover, Cables for prototyping ;
■ A Smartphone android Bluetooth SPP application installed;
■ 1 LED.
If you common an HC-05, the Bluetooth connection can be established either from the module or from the cell phone. If you choose the HC-06, you will have to make the pairing from the cell phone, as this module only operates in slave mode, and does not perform search and pairing operations by itself.
Hardware connections of low energy Bluetooth modules
For this project we are going to common the HC-05 module, which can be connected either in master or slave mode. The 6 pins of the HC-05 are well identified on the low energy Bluetooth modules and consist of the following:
■ State
■ Moreover, RX
■ TX
■ GND
■ +5V
■ Similarly, EN
The RX and TX pins are the module's communication channels. Furthermore, the module's RX must connect to the arduino's TX through the voltage divider.
Commands for low energy Bluetooth modules
The +5V pin is the power pin and the GND is the power reference, which must be the same as the Arduino. However, EN pin is common to enable the AT command mode of the low energy Bluetooth modules.AT commands are a set of commands that can be sent to the module through a serial terminal. These commands are common to configure the module and be able to talk to it.
Conclusion
For our assembly, we will use the RX and TX, +5V and GND pins. Now that the assembly is ready and the SPP Bluetooth tools pro app is installed on your mobile device, it's time to program the Arduino to talk to the low energy Bluetooth modules and pair the phone with our hardware.
- |
- +1 赞 0
- 收藏
- 评论 0
本文由天星转载自SKYLAB,原文标题为:What are low energy Bluetooth modules? Complete Guide,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。
相关推荐
Bluetooth Module Allows Players to Enhance Their Gaming Experience with Augmented Reality and Virtual Reality
This article aims to explore in depth the application of Bluetooth modules in wireless gaming devices and analyze their profound impact on the gaming industry.
Exploring the Power of BLE Modules: Revolutionizing Connectivity
At the heart of BLE-enabled devices lies the BLE module, a compact and versatile component that has revolutionized the way we connect and interact with our surroundings. In this article, SKYLAB will delve into the world of BLE modules, their features, and the limitless possibilities they offer.
楼宇自动化领先的物联网解决方案,适用于暖通空调、消防/安全、楼宇安保和照明
型号- RTK0EE0007D02001BJ,RA FAMILY,ISL9122A,ISL9001A,FS102,RV1S2211A,EZ-0012,TPW-RL78I1A-1C,RA6E1,RX600,RZ/A,DK-S3A7,RA6T2,RA6T1,RA2L1,TPW-RL78I1A-2C,ISL3259E,RS-485,RX600 SERIES,SLG47105,PK-S5D9,ISL29501,ISL854XX,9FGV0441,DK-S7G2,RL78 FAMILY,RX72M,RX72N,RZ/N,RZ/G2L,RZ/G2M,RZ/G2N,RAA604S00,RA6 SERIES,RTK0EE0003D01002BJ,RZ/G,RZ/V,RZ/G2E,RTK7RL23LMP00000BJ,RZ/T,RZ/G2H,SGAS7XX SERIES,RL78/L12,RL78/L13,RA2 SERIES,ISL15102,RZ/T SERIES,RX72T,RX23T,TB-S3A1,RZ FAMILY,RL78/H1D,RA4M1,RTK0EE0009D02001BJ,RA4M3,RA4M2,ISL28113,RX23E-A,RX200 SERIES,AT25XX,RTK0EMX270S00020BJ,IW1816,TB-S3A3,RX23W,SLG46537V,TB-S3A6,ISL85415,RTK0EMX270S01020BJ,RX113,RX100 SERIES,ISL85412,OB1203,RL78/G10,RAA211605,RL78/G11,RL78/G12,RL78/G13,RL78/G14,ISL3174E,RL78,RX13T,RL78/G1A,RZ/A SERIES,RL78/G1C,RL78/G1D,RL78/G1F,RL78/G1G,RL78/G1H,DA16600,RX140,RL78/G1M,RL78/G1N,RL78/G1P,RL78/G23,FS1012,SGAS711,RX700,RL78/I1X SERIES,RX24T,RX24U,RX130,SL29501RZ-T7A,ISL80XXX,RL78/F12,RL78/F13,RL78/F14,RL78/F15,TB-S5D5,RS485,RZ/N SERIES,5P49V6965,RZ/V SERIES,RX200,RA6M1,RA6M3,RA6M2,RA6M5,RA2E1,RA6M4,RA2E2,DA14531MOD,ISL29501-ST-EV1Z,RX66T,RX66N,SK-S7G2,RX671,ISL9123,TPW-RL78I1A,FS102X,DA14531,RL78I1A,RL78/G13A,HS3001,FS2012,RZ/G SERIES,HS310X,ZMOD4410-EVK,ΜPD720210,R9A06G061,SDAH02,RL78/I1A,DK-S124,SDAH01,RL78/I1B,RL78/I1C,RX100,RAA223012,RL78/I1D,DK-S128,RL78/I1E,ISL3245XE,ISL80505,RAA223011,RZ/G2,RXV2,RXV3,RYZ014A,ISL8723,RTK0EE0009D01001BJ,HS300X,RL78/I1X,RS-422,RL78/D1A,RAA239101,DA7218,RL78/L1A,RX FAMILY,RL78/L1C,ISL3159E,RX24T/U,RA4E1,RA2A1,ISL6719,RL78/G SERIES,RX700 SERIES,RX631,ZMOD4510,RX231/0,SGAS7XX,RS485T/R,R5F10267ASP,RAA2116XX,RX65N,ISL6186,PS2561F-1,ISL29501-CS-EVKIT1Z,RAA78815X,RX651,RA2,ISL29501IRZ-T7,RA4 SERIES,RA4,RL78/G,RA6,ZMOD4410,ISL85033,RA8,R9A06G037,HS3101,RTK0EE0007D01001BJ,RX65N/1,IW3627,RA4W1
天工测控WiFi模块选型表
天工测控面向物联网市场中的智慧物流,智能交通,智慧安防,智慧能源,智能医疗,智慧建筑,智能制造,智能家居,智能零售,智慧农业,智慧楼宇等应用场景研发推出了性能强大,且支持二次开发的2.4GHz单频及2.4/5GHz双频UART串口WiFi模块,USB接口WiFi模块,AP/Router无线路由WiFi模块及远距离图传WiFi模块,高清视频传输WiFi模块
产品型号
|
品类
|
无线模块标准
|
芯片
|
尺寸(mm)
|
封装
|
频率范围(GHZ)
|
数据速率(Mbps)
|
发射功率(dBm)
|
传输距离(米)
|
通讯接口
|
供电电压(V)
|
天线接口
|
WG219
|
WiFi模块
|
IoT b/g/n
|
ESP8266
|
25.5*18*3.2
|
SMD
|
2.4-2.5
|
72.2
|
18
|
100
|
3,5,6,8
|
3.3V
|
1个IPEX/PCB
|
选型表 - 天工测控 立即选型
天工测控WiFi+蓝牙组合模块选型表
天工测控提供如下WiFi+蓝牙组合模块选型,数据速率72Mbps~1201Mbps,SMD封装,多种蓝牙标准可选
产品型号
|
品类
|
芯片
|
模块尺寸(L*W*H)(mm)
|
天线
|
封装
|
模块标准IEEE 802.11
|
频率范围(GHZ)
|
数据速率(Mbps)
|
WiFi接口
|
蓝牙标准
|
蓝牙接口
|
WG215
|
WiFi+蓝牙组合模块
|
ESP32
|
25.5*18*3.0
|
PCB/IPEX
|
SMD
|
b/g/n
|
2.4
|
150
|
UART
|
V2.1+EDR,BLE4.2
|
UART
|
选型表 - 天工测控 立即选型
Is there any tool for smartphones or tablets?
Yes. For serial communication sample software from LAPIS Technology, "BLE Tool" is offered. Refer to the link below as needed and download it to the smartphone/tablet terminal in use. Standard profiles support various services, including heart rate meter, thermometer, sphygmomanometer, blood glucose meter, environmental sensing, device information, and battery. https://www.lapis-semi.com/jp/semicon/telecom/ble.html#ble-tool "nRF Connect for Mobile", a smartphone/tablet app from Nordic can connect and communicate with Bluetooth Low Energy peripheral devices regardless of profiles. For details, please refer to the link below: https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-mobile
ANYTEK(恩尼特克)固定式端子选型表
ANYTEK(恩尼特克)固定式端子选型表,有直锁式接线端子,直锁式PCB板端,升降式PCB板端,弹簧式端子,弹簧式PCB板端,,升降式接线端子等品类的选型,提供如下参数选型范围:间距2.5-20mm可选;POLE在1-72可选;电压125-1000V可选;多芯线电流2-160A可选;单芯线电流13-30A可选;
产品型号
|
品类
|
间距(mm)
|
POLE
|
认证类别
|
单芯线径(mm)
|
多芯线径(mm)
|
电压(V)
|
多芯线电流(A)
|
DS2400208000G
|
弹簧式端子
|
5
|
2
|
cULus
|
16-28
|
16-28
|
300V
|
10A
|
选型表 - ANYTEK 立即选型
天工测控BLE蓝牙模块选型表
天工测控针对物联网小数据,近距离的数据传输、智能控制等应用场景研发推出的BLE4.0/4.2/5.0低功耗蓝牙模块,功耗低,接收灵敏度高,传输距离远,支持UART/TWI通信协议,性能稳定可靠,支持二次开发,尺寸小巧,易于集成,产品能较好的嵌入到客户产品中,同时满足客户对蓝牙产品再次快速编程需求
产品型号
|
品类
|
标准协议
|
尺寸(mm)
|
工作模式
|
接收灵敏@1Mbps(dBm)
|
发射功率(dBm)
|
Flash(KB、MB)
|
RAM(KB)
|
广播功耗(100ms 间隔)(uA)
|
连续传输功耗(20ms 间隔)(uA)
|
深度睡眠功耗(uA)
|
待机状态功耗(uA)
|
最大广播距离(米)
|
接口
|
天线
|
SKB360
|
BLE蓝牙模块
|
BLE4.0
|
17.4*13.7*1.9
|
主,从,主从一体
|
-93
|
+4
|
256K
|
16K
|
270
|
1180
|
0.3
|
2.5
|
50
|
UART/PWM/GPIO/I²C
|
PCB/External
|
选型表 - 天工测控 立即选型
FSC-HC05蓝牙V3.0模块规格书
描述- FSC-HC05是一款高性能、高度集成的蓝牙BR/EDR模块,适用于2.4GHz ISM频段。该模块具有丰富的外设接口,包括UART、I2C/USB等,支持ARM Cortex-M0内核和32位Risc内核,具有低功耗、小尺寸等特点。内置Feasycom标准固件,并提供定制固件选项。
型号- FSC-HC05
74HC06带开漏输出的十六进制反相器
描述- 该资料详细介绍了74HC06六反相器集成电路,包括其功能、特性、电气参数、封装类型、物理尺寸等。资料涵盖了产品的输入输出特性、工作条件、电气特性、测试电路和波形、物理尺寸以及重要声明。
型号- 74HC06,74HC06M/TR,74HC06N,74HC06MT/TR
SKYLAB天工测控 GNSS模块 FAQ合集
描述- 本资料主要针对深圳市天工测控技术有限公司的GNSS模块,详细介绍了模块的特性和应用。内容包括特殊功能拓展、AGPS相关、模块特性参数、干扰与信号问题、PMTK指令与NMEA语句、外围电路及天线电路等方面。资料涵盖了模块的功耗策略、定位精度、信号处理、数据输出格式等关键信息,旨在帮助用户更好地了解和使用该模块。
型号- SKG12D,SKM66,SKG10D,SKG08,SKM系列,SKG09D,SKG17D,SKG09,LSC系列,SKG系列
K02HC060P080AAA晶闸管和二极管模块
描述- 本资料介绍了型号为K02HC060P080AAA的晶闸管与二极管模块。该模块符合RoHS指令,适用于一般整流用途。资料详细列出了其电气特性,包括电压、电流、功率损耗、热阻等参数,并提供了不同条件下的性能数据。
型号- K02HC060P080AAA
【经验】天工测控LCS2028模块蓝牙功能使用指导
天工测控LCS2028是一款WiFi+蓝牙 Combo的模块,蓝牙功能除了给WiFi进行配网外,还能作为普通的BLE功能使用,本文指导如何使用LCS2028的蓝牙功能。
这个平台目前有销售天工测控(SKYLAB)SKG13BL吗?
天工测控(SKYLAB)SKG13BL世强目前有授权销售。
具有开漏输出的U74AHC06逆变器
描述- 该资料介绍了UNISONIC TECHNOLOGIES CO., LTD生产的U74AHC06 CMOS反相器集成电路。它包含六个独立的反相器,具有开漏输出功能。主要特点包括宽电压工作范围(2V至5.5V)、高噪声免疫能力、低功耗、平衡传播延迟等。
型号- U74AHC06G-S14-R,U74AHC06,U74AHC06L-S14-R
电子商城
服务
Ignion可支持多协议、宽频段的物联网天线方案设计,协议:Wi-Fi、Bluetooth、UWB、Lora、Zigbee、2G、3G、4G、5G、CBRS、GNSS、GSM、LTE-M、NB-IoT等,频段范围:400MHz~10600MHz。
最小起订量: 2500 提交需求>
提供语音芯片、MP3芯片、录音芯片、音频蓝牙芯片等IC定制,语音时长:40秒~3小时(外挂flash),可以外挂TF卡或U盘扩容。
最小起订量: 1pcs 提交需求>
登录 | 立即注册
提交评论