CN104777773A - Sensing device based on audio interface and data transmission method - Google Patents

Sensing device based on audio interface and data transmission method Download PDF

Info

Publication number
CN104777773A
CN104777773A CN201510037647.6A CN201510037647A CN104777773A CN 104777773 A CN104777773 A CN 104777773A CN 201510037647 A CN201510037647 A CN 201510037647A CN 104777773 A CN104777773 A CN 104777773A
Authority
CN
China
Prior art keywords
audio interface
sensing
sensor
sensing device
sensing 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.)
Pending
Application number
CN201510037647.6A
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.)
Hangzhou Normal University
Original Assignee
Hangzhou Normal University
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 Hangzhou Normal University filed Critical Hangzhou Normal University
Priority to CN201510037647.6A priority Critical patent/CN104777773A/en
Publication of CN104777773A publication Critical patent/CN104777773A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Abstract

The invention discloses a sensing device based on an audio interface and a data transmission method. The sensing device comprises a sensing module, a micro controller and an audio interface module which are successively connected, wherein the sensing module collects corresponding information through a sensing element and converts physical quantity into electric quantity changes, and outputs electric quantity through a filter circuit and an amplifying circuit which are matched with the sensor; the micro controller integrates an analog-to-digital converting unit, collects values input by the sensing module and the audio interface module, and converts the values input by the sensing module to digital quantity; the digital quantity is operated and converted to a string of pulse signals so as to drive an audio interface to output a string of signals which can be recognized by intelligent equipment, besides, the audio interface module is responsible for receiving commands transmitted by the intelligent equipment. The sensing device disclosed by the invention is high in generality and lower in cost, rapid measurement for various environment variables can be realized without special intelligent equipment, and the volume of the sensor is small, therefore, the sensor can be rapidly assembled and disassembled, and the sensor is convenient to carry.

Description

Based on sensing device and the data transmission method of audio interface
Technical field
The invention belongs to smart machine application, relate to a kind of sensing module based on audio interface and data transmission method especially.
Background technology
Although mobile terminal device on sale in the market itself is integrated with some sensors, as acceleration transducer, range sensor, gyroscope etc., its application mainly concentrates on the aspects such as game, amusement.The smart machines such as mobile phone nearly all on market, panel computer are all equipped with 3.5mm audio interface, itself are integrated with dual-channel headphone input and a microphone input.On the use at present earphone being concentrated on to the application major part of audio interface and Web bank's authentication module.
Summary of the invention
The object of the present invention is to provide a kind of sensing device based on audio interface and data transmission method, be intended to the audio interface transmission and the data processing problem that solve sensing data.
The object of the invention is to be achieved through the following technical solutions:
A kind of sensing device based on audio interface, comprise sensing module, microcontroller, Audio interface block, be connected successively, wherein: described sensing module is by the corresponding information of sensing element collection, convert physical quantity to electric quantity change, and pass through the filtering circuit matched with sensor, electricity is exported after amplifying circuit, the integrated AD conversion unit of microcontroller, gather the value of sensing module and Audio interface block input, convert the input value of sensing module to digital quantity, this digital quantity is after computing, convert pulse train signal to, and then drive audio interface export a string can by the signal of smart machine identification, Audio interface block is also responsible for receiving the order sent by smart machine simultaneously.
Described sensing module comprises sensor element, sensor drive driving circuit, sensor signal filtering.
Described sensing module comprises humiture, illumination, pressure, Hall element.
Described amplifying circuit, the signal output apparatus of described driving audio interface is connected with microcontroller respectively.
Pick-up transducers signal is responsible for by described microcontroller, controls the work of sensor assembly, and output signal drives the signal of Audio interface block to export.
Described audio interface makes response to the data that microcontroller imports into, exports specific pulse signal.
A kind of sensing data output intent based on described sensing device, adopt 3.5mm audio interface to be connected with smart machine, sensing module gathers sensing data, uses micro controller module process data, Audio interface block exports sensing data, and smart machine receives sensing data process and display translation.
Described sensing module uses unified outputting standard, has the sensor type of plurality of optional, to realize multiple sensing data collection.
The present invention proposes a kind of sensing device based on audio interface and data transmission method, transmission and the display of sensing data can be realized by 3.5mm audio interface, can expand existing mobile terminal device easily; Sensor assembly itself has very strong versatility, is applicable to various electronic.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the sensing device based on audio interface;
Fig. 2 is the schematic diagram of the sensing data output intent based on described sensing device.
specific implementation method
Below in conjunction with accompanying drawing and example, the present invention is further described.
Based on a sensing device for audio interface, described module comprises: sensing module, microcontroller (MCU) module, Audio interface block, wherein: sensing module comprises sensing element and driving circuit, and output voltage changes with the change of sensing data.
Microcontroller (MCU) module comprises single-chip microcomputer, power supply, A/D modular converter, and the output voltage values of sensing module is after A/D sampling, and be converted to digital value, this digital value, after the algorithm computing in single-chip microcomputer, exports corresponding low and high level.Audio interface block comprises audio interface and audio interface driving circuit, and the low and high level of single-chip microcomputer input, the microphone pin showing audio interface exports corresponding pulse signal.Application program on establishment smart machine receives the signal of microphone pin input, and converts sensing data to, can be further processed it or directly be presented on smart machine.
Smart machine can be with the smart mobile phone of triple-track (left and right acoustic channels export, microphone input) earphone interface, panel computer, PC or other meet the equipment of application claims.By the software be installed on smart machine, reduction treatment is carried out to the data received, be presented on device screen.The present invention adopts in the widely used 3.5mm audio interface of various digital product, is applicable to the smart machines such as most smart mobile phone in the market and panel computer; The present invention can use multiple sensors, except common humiture, illumination, pressure, Hall element, can customize special sensing module as required.Highly versatile of the present invention, cost is lower, and can realize the Quick Measurement to multiple environmental variance without the need to special smart machine, sensor bulk is less, can quick despatch, is convenient for carrying.
As shown in Figure 1 and Figure 2, the present invention is divided into three main modular substantially: sensing module, microcontroller (MCU), Audio interface block.
Wherein sensing module comprises sensing element and sensing element driving circuit, driving circuit controls by microcontroller I/O mouth, when sensor is connected with smart machine, and when opening the application software supporting with the present invention on smart machine, smart machine can send a string pulse signal of shaking hands with micro controller module; After the A/D of microcontroller has detected pulse signal, confirm smart machine, the I/O controlling driving circuit exports high level, and sensing module is started working.By corresponding converter amplifier circuit, the signal of sensor is converted into the magnitude of voltage within the scope of 0-3.3v.
Micro controller module comprises power module, single-chip microcomputer and peripheral drive circuit, and this example have employed msp430 single-chip microcomputer, with 12 A/D conversions, adopts 3.3v to power.One road A/D changes the input of connecting sensor signal, after sampling, be converted to 12 binary-coded characters, adopts the situation of Manchester's cde.Whether start bit and position of rest are 40, run into continuous 30 in data, be below 0 all to add one 1 below at 30, and last position of data bit is parity check bit.Export the high level pulse of a duration more than 0.2ms, represent data " 1 ", export a duration and be greater than the high level pulse that 0.05 is less than 0.1ms, represent data " 0 ".
Audio interface block comprises 3.5mm audio jack and audio interface driving circuit, and microcontroller I/O mouth controls conducting and the cut-off of triode, makes the microphone pin of audio interface export the sound signal of varying strength.Software on smart machine is sampled by audio interface, obtain the magnitude of voltage of each sampling, the high voltage that continuous sampling is more than three times is " 1 ", and one-shot low-voltage is " 0 ", until after position of rest, after parity checking, removing 1 after continuous 30, is 10 systems by Binary Conversion, it is exactly the magnitude of voltage of sensor, by the data array be pre-existing in comparison software, magnitude of voltage can be converted to the sensing data of respective sensor, be presented in screen of intelligent device.

Claims (8)

1. the sensing device based on audio interface, it is characterized in that, comprise sensing module, microcontroller, Audio interface block, be connected successively, wherein: described sensing module is by the corresponding information of sensing element collection, convert physical quantity to electric quantity change, and pass through the filtering circuit matched with sensor, electricity is exported after amplifying circuit, the integrated AD conversion unit of microcontroller, gather the value of sensing module and Audio interface block input, convert the input value of sensing module to digital quantity, this digital quantity is after computing, convert pulse train signal to, and then drive audio interface export a string can by the signal of smart machine identification, Audio interface block is also responsible for receiving the order sent by smart machine simultaneously.
2. the sensing device based on audio interface according to claim 1, is characterized in that, described sensing module comprises sensor element, sensor drive driving circuit, sensor signal filtering.
3. the sensing device based on audio interface according to claim 1, is characterized in that, described sensing module comprises humiture, illumination, pressure, Hall element.
4. the sensing device based on audio interface according to claim 1, is characterized in that, described amplifying circuit, and the signal output apparatus of described driving audio interface is connected with microcontroller respectively.
5. the sensing device based on audio interface according to claim 1, is characterized in that, pick-up transducers signal is responsible for by described microcontroller, controls the work of sensor assembly, and output signal drives the signal of Audio interface block to export.
6. the sensing device based on audio interface according to claim 1, is characterized in that, described audio interface makes response to the data that microcontroller imports into, exports specific pulse signal.
7. the sensing data output intent based on sensing device as claimed in claim 1, it is characterized in that, 3.5mm audio interface is adopted to be connected with smart machine, sensing module gathers sensing data, use micro controller module process data, Audio interface block exports sensing data, and smart machine receives sensing data process and display translation.
8. sensing data output intent according to claim 7, is characterized in that, described sensing module uses unified outputting standard, has the sensor type of plurality of optional, to realize multiple sensing data collection.
CN201510037647.6A 2015-01-26 2015-01-26 Sensing device based on audio interface and data transmission method Pending CN104777773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510037647.6A CN104777773A (en) 2015-01-26 2015-01-26 Sensing device based on audio interface and data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510037647.6A CN104777773A (en) 2015-01-26 2015-01-26 Sensing device based on audio interface and data transmission method

Publications (1)

Publication Number Publication Date
CN104777773A true CN104777773A (en) 2015-07-15

Family

ID=53619304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510037647.6A Pending CN104777773A (en) 2015-01-26 2015-01-26 Sensing device based on audio interface and data transmission method

Country Status (1)

Country Link
CN (1) CN104777773A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6110124A (en) * 1999-01-14 2000-08-29 Draco Tech International Corp. Voice thermoscan
WO2011110513A1 (en) * 2010-03-11 2011-09-15 Schaeffler Technologies Gmbh & Co. Kg Method and data collector for detecting, recording and storing vibrations and data in a machine
CN103186736A (en) * 2013-04-01 2013-07-03 深圳市亚略特生物识别科技有限公司 Fingerprint key device
CN103956098A (en) * 2014-04-28 2014-07-30 杭州电子科技大学 Comprehensive experiment instrument for biomedicine instrument
CN204008393U (en) * 2014-07-25 2014-12-10 马奕麟 A kind of PM2.5 detection system for mobile phone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6110124A (en) * 1999-01-14 2000-08-29 Draco Tech International Corp. Voice thermoscan
WO2011110513A1 (en) * 2010-03-11 2011-09-15 Schaeffler Technologies Gmbh & Co. Kg Method and data collector for detecting, recording and storing vibrations and data in a machine
CN103186736A (en) * 2013-04-01 2013-07-03 深圳市亚略特生物识别科技有限公司 Fingerprint key device
CN103956098A (en) * 2014-04-28 2014-07-30 杭州电子科技大学 Comprehensive experiment instrument for biomedicine instrument
CN204008393U (en) * 2014-07-25 2014-12-10 马奕麟 A kind of PM2.5 detection system for mobile phone

Similar Documents

Publication Publication Date Title
CN203038075U (en) Android phone and computer based remote voice intelligent control system
CN202057414U (en) Mining noise sensor
CN101529363A (en) Electronic system control using surface interaction
CN201993903U (en) Multifunctional remote control system
CN104287700A (en) Pulse wave detection system and method using audio port of smart phone
CN102262794A (en) Intelligent magnetic sensor module for detection of paper money
CN204887406U (en) Osteoacusis type intelligence earphone
CN201072358Y (en) Intelligent sensor for diagnosis
CN204596410U (en) The auditory localization of robot, wake the control device of identification up
CN204945699U (en) A kind of intelligent sound with infrared induction identification
CN205209626U (en) Sensor based on discernment of characteristic audio frequency
CN204903000U (en) Ultraviolet detection device based on mobile client
CN201860428U (en) Wireless earphone based on microelectromechanical system (MEMS) acceleration transducer
CN104777773A (en) Sensing device based on audio interface and data transmission method
CN104199792B (en) A kind of power taking communication apparatus, mobile terminal and its means of communication and system
CN105909242A (en) Integrated data acquirer for acoustic logging
CN206425899U (en) A kind of new electric chuck fault detect control system
CN202257723U (en) Intelligent magnetic sensor module used for bank note detection
CN202547913U (en) Revolving table failure diagnosis system
CN203177890U (en) Analog signal detection device based on Modbus protocol
CN202376107U (en) Cardiac sound identification system based on virtual instrument
CN201398226Y (en) Automatic mechanical abnormal sound detecting device
CN202648844U (en) Communication type tonnage detection module
CN202325596U (en) Data conversion module
CN206514880U (en) A kind of GSM network detectable signal acquisition process communication apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150715