CN207704640U - A kind of Bluetooth communication system based on Arduino - Google Patents

A kind of Bluetooth communication system based on Arduino Download PDF

Info

Publication number
CN207704640U
CN207704640U CN201820051489.9U CN201820051489U CN207704640U CN 207704640 U CN207704640 U CN 207704640U CN 201820051489 U CN201820051489 U CN 201820051489U CN 207704640 U CN207704640 U CN 207704640U
Authority
CN
China
Prior art keywords
bluetooth
unit
arduino
communication system
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201820051489.9U
Other languages
Chinese (zh)
Inventor
李子琼
冯杰
马汉杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Sci Tech University ZSTU
Original Assignee
Zhejiang Sci Tech University ZSTU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Sci Tech University ZSTU filed Critical Zhejiang Sci Tech University ZSTU
Priority to CN201820051489.9U priority Critical patent/CN207704640U/en
Application granted granted Critical
Publication of CN207704640U publication Critical patent/CN207704640U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

本实用新型公开了一种基于Arduino的蓝牙通信系统,包括基于Arduino的处理器,处理器包括温度采集单元、数据传输单元和终端显示单元;数据传输单元为蓝牙传输单元,温度采集单元与蓝牙传输单元连接,蓝牙传输单元与终端显示单元连接。本实用新型基于Arduino的蓝牙通信系统,可以实时、准确的利用蓝牙无线传输数据的设计,不仅可以大范围的节约成本,并且提高了生产效率和工作的灵活性。

The utility model discloses a bluetooth communication system based on Arduino, comprising a processor based on Arduino, the processor includes a temperature acquisition unit, a data transmission unit and a terminal display unit; The unit is connected, and the bluetooth transmission unit is connected with the terminal display unit. The utility model is based on the bluetooth communication system of Arduino, can utilize the design of bluetooth to transmit data wirelessly in real time and accurately, not only can save cost in a large range, but also improve production efficiency and work flexibility.

Description

一种基于Arduino的蓝牙通信系统A Bluetooth communication system based on Arduino

技术领域technical field

本实用新型涉及无线通信技术领域,具体来说,涉及一种基于Arduino的蓝牙通信系统。The utility model relates to the technical field of wireless communication, in particular to an Arduino-based bluetooth communication system.

背景技术Background technique

随着通信技术的发展,无论是在物联网,还是互联网,传统的有线传输技术已经越来越不能满足企业和个人的需求。当今通信技术正朝着“无线”和“高速”的方向发展。无线传输以其特有的优势得到了个人和企业的青睐。在移动终端中,无线传输技术主要包括WIFI、NFC等。WIFI是一种可以将手持设备、个人电脑等终端无线通信的技术。WIFI是一种无线网路通的技术标准,由Wi-Fi Alliance所持有。NFC是Near Field Communication,即近场无线通讯技术,可以在消费类电子产品、移动终端、PC和智能工具间进行近距离无线通信(通信距离一般在10厘米以内),NFC提供了一种简单、触控式的解决方案,可以简单的交换信息、访问内容与服务。但在无线数据采集传输中,利用上述无线传输的方式仍然存在操作不够简单,成本较高的问题。With the development of communication technology, whether it is in the Internet of Things or the Internet, the traditional wired transmission technology has become increasingly unable to meet the needs of enterprises and individuals. Today's communication technology is developing in the direction of "wireless" and "high speed". Wireless transmission has been favored by individuals and businesses for its unique advantages. In mobile terminals, wireless transmission technologies mainly include WIFI, NFC and so on. WIFI is a technology that can wirelessly communicate with terminals such as handheld devices and personal computers. WIFI is a wireless network communication technology standard, held by the Wi-Fi Alliance. NFC is Near Field Communication, that is, near-field wireless communication technology, which can perform short-range wireless communication between consumer electronics products, mobile terminals, PCs and smart tools (communication distance is generally within 10 cm). NFC provides a simple, Touch-enabled solutions for easy exchange of information, access to content and services. However, in the wireless data collection and transmission, the above-mentioned wireless transmission method still has the problems of insufficient operation and high cost.

实用新型内容Utility model content

本实用新型的目的在于提出一种基于Arduino的蓝牙通信系统,以克服现有技术中存在的上述不足。The purpose of this utility model is to propose a kind of bluetooth communication system based on Arduino, to overcome the above-mentioned deficiency that exists in the prior art.

为实现上述技术目的,本实用新型的技术方案是这样实现的:For realizing above-mentioned technical purpose, technical scheme of the present utility model is realized like this:

一种基于Arduino的蓝牙通信系统,包括基于Arduino的处理器,所述处理器包括温度采集单元、数据传输单元和终端显示单元;所述数据传输单元为蓝牙传输单元,所述温度采集单元与蓝牙传输单元连接,所述蓝牙传输单元与终端显示单元连接。A kind of bluetooth communication system based on Arduino, comprises the processor based on Arduino, and described processor comprises temperature collection unit, data transmission unit and terminal display unit; Described data transmission unit is bluetooth transmission unit, and described temperature collection unit and bluetooth The transmission unit is connected, and the bluetooth transmission unit is connected with the terminal display unit.

进一步的,所述蓝牙传输单元包括依次连接的蓝牙检测模块、蓝牙连接模块和数据传输模块;蓝牙检测模块与终端显示单元双向互联,数据传输模块与终端显示单元相连。Further, the bluetooth transmission unit includes a bluetooth detection module, a bluetooth connection module and a data transmission module connected in sequence; the bluetooth detection module is bidirectionally interconnected with the terminal display unit, and the data transmission module is connected with the terminal display unit.

进一步的,所述终端显示单元连接有人机交互单元。Further, the terminal display unit is connected with a human-computer interaction unit.

进一步的,所述人机交互单元采用手机显示屏。Further, the human-computer interaction unit adopts a mobile phone display screen.

本实用新型的有益效果:本实用新型基于Arduino的蓝牙通信系统,可以实时、准确的利用蓝牙无线传输数据的设计,不仅可以大范围的节约成本,并且提高了生产效率和工作的灵活性。Beneficial effects of the utility model: the utility model is based on the bluetooth communication system of Arduino, which can use the bluetooth wireless transmission data design in real time and accurately, not only can save costs in a large range, but also improve production efficiency and work flexibility.

附图说明Description of drawings

图1为本实用新型的蓝牙通信系统结构示意图。Fig. 1 is a schematic structural diagram of the bluetooth communication system of the present invention.

图2为本实用新型的数据传输单元的结构示意图。Fig. 2 is a schematic structural diagram of the data transmission unit of the present invention.

图中所示:As shown in the figure:

1-温度采集单元;2-数据传输单元;3-终端显示单元;4-处理器;5-人机交互单元;6-蓝牙检测模块;7-蓝牙连接模块;8-数据传输模块。1-Temperature acquisition unit; 2-Data transmission unit; 3-Terminal display unit; 4-Processor; 5-Human-computer interaction unit; 6-Bluetooth detection module; 7-Bluetooth connection module; 8-Data transmission module.

具体实施方式Detailed ways

下面结合本实用新型实施例中的附图,对本实用新型实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

在本实用新型的描述中,需要说明的是,除非另有明确的规定和限定,如出现术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本实用新型中的具体含义。In the description of the present utility model, it should be noted that, unless otherwise clearly stipulated and limited, terms such as "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a It is a detachable connection or an integral connection; it may be a mechanical connection or an electrical connection; it may be a direct connection or an indirect connection through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present utility model in specific situations.

Arduino分为Arduino硬件设备和Android终端软件两部分。硬件设备以Arduino硬件平台为基础,完成硬件平台的设计与实现并完成硬件平台的程序设计。Android终端软件以Android作为开发平台,java作为开发语言,实现应用程序的开发。Arduino是一块基于开放源代码的USB接口Simple i/o接口板(包括12通道数字GPIO,4通道PWM输出,6-8通道10bitADC输入通道),并且具有使用类似java语言的IDE集成开发环境,可以快速使用Arduino语言进行开发。Arduino is divided into two parts: Arduino hardware device and Android terminal software. The hardware device is based on the Arduino hardware platform, completes the design and implementation of the hardware platform and completes the program design of the hardware platform. The Android terminal software uses Android as a development platform and java as a development language to realize application development. Arduino is a simple i/o interface board based on open source USB interface (including 12-channel digital GPIO, 4-channel PWM output, 6-8 channel 10bitADC input channel), and has an IDE integrated development environment similar to java language, which can Quickly develop using the Arduino language.

基于上述原理如图1所示,根据本实用新型的实施例所述的一种基于Arduino的蓝牙通信系统,包括基于Arduino的处理器4,所述处理器4包括温度采集单元1、数据传输单元2和终端显示单元3;所述数据传输单元2为蓝牙传输单元,所述温度采集单元1与蓝牙传输单元连接,所述蓝牙传输单元与终端显示单元3连接。Based on above-mentioned principle as shown in Figure 1, a kind of bluetooth communication system based on Arduino described according to the embodiment of the present utility model, comprises the processor 4 based on Arduino, and described processor 4 comprises temperature acquisition unit 1, data transmission unit 2 and a terminal display unit 3; the data transmission unit 2 is a Bluetooth transmission unit, the temperature acquisition unit 1 is connected to the Bluetooth transmission unit, and the Bluetooth transmission unit is connected to the terminal display unit 3.

本实施例中,处理器4采用Massimo Banzi的ARM芯片,Arduino IDE开发环境,人机交互单元5采用手机显示屏。In this embodiment, the processor 4 adopts the ARM chip of Massimo Banzi, the Arduino IDE development environment, and the human-computer interaction unit 5 adopts the mobile phone display screen.

具体的,温度采集单元1用于采集当前室内温度数据并保存。本系统选用DS18B20数字温度传感器,对环境温度进行定量的检测。Arduino Xbee传感器扩展板与Arduino UNO主控板之间通过串行接口(Tx和Rx引脚)进行通信。该模块易于使用,功耗较低,并提供设备间关键数据的传输。传感器扩展板建立RF通信不需要任何配置,该模块的默认配置支持宽范围的数据系统应用,也可以使用简单AT命令进行高级配置。具体技术规格包括扩展14个I/O端口,6个AD Input,1个数字端口外接电源端口,xbee/Bluetooth Bee蓝牙无线数传接口。Specifically, the temperature collection unit 1 is used to collect and store current indoor temperature data. This system selects DS18B20 digital temperature sensor to measure the ambient temperature quantitatively. The Arduino Xbee sensor expansion board communicates with the Arduino UNO main control board through the serial interface (Tx and Rx pins). The module is easy to use, consumes low power, and provides transfer of critical data between devices. The sensor expansion board does not require any configuration to establish RF communication. The module's default configuration supports a wide range of data system applications, and simple AT commands can also be used for advanced configuration. The specific technical specifications include expansion of 14 I/O ports, 6 AD Inputs, 1 digital port for external power supply port, and xbee/Bluetooth Bee Bluetooth wireless data transmission interface.

如图2所示,所述蓝牙传输单元包括依次连接的蓝牙检测模块6、蓝牙连接模块7和数据传输模块8;蓝牙检测模块6与终端显示单元3双向互联,数据传输模块8与终端显示单元3相连;其中:蓝牙检测模块6用于搜索已配对的蓝牙设备,并判断是否已与蓝牙设备连接。数据采集端启动后,搜索已配对的蓝牙设备,判断是否已与蓝牙设备连接,设备启动后,用Serial.begin(9600)方法打开串行通信,并将串口传输速率设定为9600,DallasTemperature::isValid()方法用来判断是否已与其他蓝牙设备连接。其中蓝牙串口模块采用DF-BluetoothV3蓝牙模块,其设置2个电源输入口,宽电压供电(3.5V~8V)和3.3V供电。模块中,STATE和LINK指示灯用于显示模块工作状态和连接状态。拨码开关可设置模块状态,LED OFF可关闭LINK灯进入省电模式,AT Mode可使模块进入AT指令模式,通过AT指令可以修改波特率和主从机模式,将2个模块分别设置为主模块和从模块后,两个模块可以自由配对进行数据传输,适用于两个单片机之间的数据通讯;As shown in Figure 2, the Bluetooth transmission unit includes a Bluetooth detection module 6, a Bluetooth connection module 7 and a data transmission module 8 connected in sequence; the Bluetooth detection module 6 is bidirectionally interconnected with the terminal display unit 3, and the data transmission module 8 and the terminal display unit 3 connected; where: the bluetooth detection module 6 is used to search for paired bluetooth devices and determine whether they have been connected with the bluetooth devices. After the data acquisition terminal is started, search for the paired Bluetooth device to determine whether it has been connected to the Bluetooth device. After the device is started, use the Serial.begin(9600) method to open the serial communication, and set the serial port transmission rate to 9600. DallasTemperature: : The isValid() method is used to determine whether it has been connected to other Bluetooth devices. Among them, the bluetooth serial port module adopts DF-BluetoothV3 bluetooth module, which has two power input ports, wide voltage power supply (3.5V ~ 8V) and 3.3V power supply. In the module, the STATE and LINK indicators are used to display the working status and connection status of the module. The DIP switch can set the module status, LED OFF can turn off the LINK light to enter the power saving mode, AT Mode can make the module enter the AT command mode, the baud rate and the master-slave mode can be modified through the AT command, and the two modules are respectively set as After the master module and the slave module, the two modules can be freely paired for data transmission, which is suitable for data communication between two single-chip microcomputers;

蓝牙连接模块7用于通过蓝牙检测模块6检测是否有已配对的蓝牙设备,若有,则通过蓝牙连接模块7进行连接;若未发现已连接上的蓝牙设备,或设备断开连接,则会继续搜索蓝牙设备;Bluetooth connection module 7 is used to detect whether there is a paired bluetooth device by bluetooth detection module 6, if there is, then connect by bluetooth connection module 7; Continue to search for Bluetooth devices;

数据传输模块8用于把温度数据通过蓝牙芯片传送到手机端。若通过蓝牙检测模块6已经检测到蓝牙设备并通过蓝牙连接模块进行连接,则数据传输模块8将把温度探测器采集到的温度通过蓝牙芯片传给手机端,通过Dallas Temperature::getTemperature()方法读取寄存器中的温度探测器的采集的温度数据,Serial.print()方法将会把读取到的数据转换成ASCII码,通过串口发送出去。The data transmission module 8 is used to transmit the temperature data to the mobile phone terminal through the bluetooth chip. If the bluetooth device has been detected by the bluetooth detection module 6 and connected by the bluetooth connection module, then the data transmission module 8 will pass the temperature collected by the temperature detector to the mobile phone through the bluetooth chip, and pass the Dallas Temperature:: getTemperature () method Read the temperature data collected by the temperature detector in the register, and the Serial.print() method will convert the read data into ASCII codes and send them out through the serial port.

终端显示单元3用于通过蓝牙接收数据传输单元传递过来的数据,并在手机界面上显示。该单元将会通过调用接口函数,包括搜索、配对、开启蓝牙设备实现接收并显示温度数据的功能。BluetoothAdapter代表本地设备的蓝牙适配器,执行基本的蓝牙任务,如启动设备搜索,查询已连接(配对)设备清单,使用一个已知的MAC地址实例化一个蓝牙设备,并创建一个BluetoothServerSocket听取来自其他设备的连接请求;BluetoothDevice可以同已配对设备建立连接或查询相关信息,如设备名、设备地址、连接状态等。The terminal display unit 3 is used to receive the data transmitted by the data transmission unit via bluetooth, and display it on the interface of the mobile phone. The unit will receive and display temperature data by calling interface functions, including searching, pairing, and turning on Bluetooth devices. The BluetoothAdapter represents the local device's Bluetooth adapter and performs basic Bluetooth tasks such as initiating device discovery, querying a list of connected (paired) devices, instantiating a Bluetooth device with a known MAC address, and creating a BluetoothServerSocket to listen for incoming messages from other devices. Connection request; BluetoothDevice can establish a connection with a paired device or query related information, such as device name, device address, connection status, etc.

用户通过人机交互单元5实现蓝牙开启、关闭、连接等操作,从而完成接收温度数据的任务。The user realizes operations such as turning on, turning off, and connecting the Bluetooth through the human-computer interaction unit 5, thereby completing the task of receiving temperature data.

以上所述仅为本实用新型的较佳实施例而已,并不用以限制本实用新型,凡在本实用新型的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本实用新型的保护范围之内。The above descriptions are only preferred embodiments of the present utility model, and are not intended to limit the present utility model. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present utility model shall be included in the Within the protection scope of the present utility model.

Claims (4)

1. a kind of Bluetooth communication system based on Arduino, it is characterised in that:Include the processor based on Arduino, the place It includes temperature collecting cell, data transmission unit and terminal diaplay unit to manage device;The data transmission unit is Bluetooth transmission list Member, the temperature collecting cell are connect with Bluetooth transmission unit, and the Bluetooth transmission unit is connect with terminal diaplay unit.
2. Bluetooth communication system according to claim 1, it is characterised in that:The Bluetooth transmission unit includes being sequentially connected Bluetooth detection module, bluetooth connection module and data transmission module;Bluetooth detection module and the two-way interconnection of terminal diaplay unit, Data transmission module is connected with terminal diaplay unit.
3. Bluetooth communication system according to claim 1, it is characterised in that:The terminal diaplay unit is connected with man-machine friendship Mutual unit.
4. Bluetooth communication system according to claim 3, it is characterised in that:The man-machine interaction unit is shown using mobile phone Screen.
CN201820051489.9U 2018-01-12 2018-01-12 A kind of Bluetooth communication system based on Arduino Expired - Fee Related CN207704640U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201820051489.9U CN207704640U (en) 2018-01-12 2018-01-12 A kind of Bluetooth communication system based on Arduino

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201820051489.9U CN207704640U (en) 2018-01-12 2018-01-12 A kind of Bluetooth communication system based on Arduino

Publications (1)

Publication Number Publication Date
CN207704640U true CN207704640U (en) 2018-08-07

Family

ID=63035081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201820051489.9U Expired - Fee Related CN207704640U (en) 2018-01-12 2018-01-12 A kind of Bluetooth communication system based on Arduino

Country Status (1)

Country Link
CN (1) CN207704640U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891264A (en) * 2019-12-26 2020-03-17 广西恒信博大教育科技集团有限公司 Bluetooth development board based on Arduino + WIFI and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891264A (en) * 2019-12-26 2020-03-17 广西恒信博大教育科技集团有限公司 Bluetooth development board based on Arduino + WIFI and system thereof

Similar Documents

Publication Publication Date Title
CN201725422U (en) Super data collection device
CN105528883A (en) Wind velocity and direction wireless acquisition system and method thereof
CN104767791A (en) Agricultural product storage and transportation control system based on wireless sensor network
CN103063342A (en) Pressure detecting device and pressure detecting system
CN103685655A (en) Air quality testing device based on mobile phone system
CN205647564U (en) Multi -protocols intelligent gateway based on USB
CN105517304A (en) Bluetooth network based illumination control system
CN203588445U (en) Handheld wireless intelligent gas meter reading system
CN104994536B (en) A kind of configuration method and portable configuration device towards WSCN nodes
Qiao et al. An enhancement of the ZigBee wireless sensor network using bluetooth for industrial field measurement
CN201294550Y (en) USB interface based on ZigBee technology
CN207704640U (en) A kind of Bluetooth communication system based on Arduino
CN204597961U (en) A kind of bluetooth module
CN205826852U (en) A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication
CN108710333A (en) A kind of water quality monitoring system based on ZigBee
CN205507392U (en) Intelligent household management system
CN202077185U (en) Two-way interactive emergency communication terminal based on Beidou satellite
CN214895149U (en) Household formaldehyde monitoring system
CN110531676A (en) Vehicle carried data collecting method, system and terminal
CN210518838U (en) Wireless sensor network system based on smart phone terminal
CN103675202A (en) Battery-free air quality detector based on NFC (near field communication)
CN203519174U (en) Remote temperature detection and alarm system
CN108282581A (en) A kind of ultrasonic flowmeter parameter setting module based on Bluetooth communication
CN209433276U (en) A kind of plane data acquisition dilatation terminal
CN106595764A (en) Distributive detecting and analyzing system in combination with XRD and XRF

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180807

Termination date: 20200112

CF01 Termination of patent right due to non-payment of annual fee