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.
技术探讨 发布时间 : 2024-09-30
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.
技术探讨 发布时间 : 2023-10-13
BUILDING AUTOMATION Leading-edge IoT solutions for HVAC, fire/safety, building security, and lighting
型号- 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
HC0615□□□□L□-□□□ Shielded SMD Power Inductor SPECIFICATION FOR APPROVAL
型号- HC06156R8KL□-□□□,HC06152R2KL□,HC0615,HC0615100KL□-□□□,HC06154R7KL□-□□□,HC06151R5KL□-□□□,HC0615R68KL□-□□□,HC06151R0KL□-□□□,HC0615□□□□□□-□□□,HC0615100KL□,HC06152R2KL□-□□□,HC06151R0KL□,HC0615R47KL□-□□□,HC0615□□□□L□-□□□,HC06153R3KL□-□□□,HC0615R47KL□
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
技术问答 发布时间 : 2024-08-30
HC0620□□□□S□-□□□ Shielded SMD Power Inductor SPECIFICATION FOR APPROVAL
型号- HC0620□□□□□□-□□□,HC06204R7KS□-□□□,HC06202R2KS□-□□□,HC0620R47KS□-□□□,HC0620,HC06201R0KS□-□□□,HC0620R68KS□-□□□,HC0620□□□□S□-□□□
电子商城
服务
Ignion可支持多协议、宽频段的物联网天线方案设计,协议:Wi-Fi、Bluetooth、UWB、Lora、Zigbee、2G、3G、4G、5G、CBRS、GNSS、GSM、LTE-M、NB-IoT等,频段范围:400MHz~10600MHz。
最小起订量: 2500 提交需求>
根据用户的蓝牙模块,使用Bluetooth 蓝牙测试装置MT8852B,测试蓝牙1.0至5.1,包括传输速率、功率、频率、调制和接收机灵敏度,生成测试报告。支持到场/视频直播测试,资深专家全程指导。
实验室地址: 深圳 提交需求>
登录 | 立即注册
提交评论