CN203811807U - Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer - Google Patents

Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer Download PDF

Info

Publication number
CN203811807U
CN203811807U CN201420145718.5U CN201420145718U CN203811807U CN 203811807 U CN203811807 U CN 203811807U CN 201420145718 U CN201420145718 U CN 201420145718U CN 203811807 U CN203811807 U CN 203811807U
Authority
CN
China
Prior art keywords
pin
chip microcomputer
triode
module
temperature sensor
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
CN201420145718.5U
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.)
Wuxi Professional College of Science and Technology
Original Assignee
Wuxi Professional College of Science and Technology
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 Wuxi Professional College of Science and Technology filed Critical Wuxi Professional College of Science and Technology
Priority to CN201420145718.5U priority Critical patent/CN203811807U/en
Application granted granted Critical
Publication of CN203811807U publication Critical patent/CN203811807U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

The utility model provides a wireless ultrasonic ranging system based on a CC2530 single-chip microcomputer. The system is not influenced by environment and climate, has the advantages of long wireless communication distance, simple and convenient manufacture, temperature compensation function, and high ranging precision, and is capable of sending the obtained distance value to receiving equipment to display the distance value so as to satisfy requirements under different environments. The system comprises a ranging module and a display module, and the ranging module is connected to the display module through wireless communication.

Description

A kind of wireless ultrasonic range measurement system based on CC2530 single-chip microcomputer
Technical field
The utility model relates to single-chip microcomputer applied technical field, is specially a kind of wireless ultrasonic range measurement system based on CC2530 single-chip microcomputer.
Background technology
Ultrasonic ranging is not subject to the interference such as weather, light, electromagnetic wave, and with low cost, manufacture simple, easy to operate, become the non-contact measuring technology that a kind of consumer of enjoying favors, although and existing ultrasonic ranging system based on common single-chip microcomputer applied range aspect a lot, but in the rugged surroundings such as deep-well, high pressure, anoxic, because people can not be directly in such environment, so cannot see intuitively measured distance.
Summary of the invention
For the problems referred to above, the invention provides a kind of wireless ultrasonic range measurement system based on CC2530 single-chip microcomputer, this system is not affected by ambient weather, wireless communication distance is far away, make simple and convenient, band temperature compensation function, distance accuracy is high, the distance value measuring can be sent on receiving equipment and shows, to meet the demand under varying environment.
The technical scheme that the utility model adopts is: it comprises measurement module, display module, described measurement module connects display module by radio communication, it is characterized in that: described measurement module comprises single-chip microcomputer U1, temperature sensor U2, ultrasonic wave module U3, described temperature sensor U2 adopts model DS18B20 digital temperature sensor, and described ultrasonic wave module U3 adopts model SRF06 integrated ultrasonic sensor, described display module comprises single-chip microcomputer U4, charactron U5, light emitting diode D1, D2, hummer B1, triode Q1 ~ Q7, resistance R 1 ~ R10, described single-chip microcomputer U1, U4 all adopt model C C2530 single-chip microcomputer, described charactron U5 adopts 4 charactrons of the model 3461BS common anode utmost point, described triode Q1 ~ Q7 is positive-negative-positive 8550 triodes, described light emitting diode D1, D2 are red light emitting diodes, and described hummer B1 is the common source split-type hummer that has, 3 pin of described temperature sensor U2, 1 pin of ultrasonic wave module U3 all meets power vd D, 1 pin of described temperature sensor U2, the equal ground connection of 4 pin of ultrasonic wave module U3,2 pin of described temperature sensor U2 connect the P0_0 pin of described single-chip microcomputer U1,2 of described ultrasonic wave module U3, 3 pin are connected respectively the P0_1 of described single-chip microcomputer U1, P1_0 pin, the emitter of described triode Q1 ~ Q7 all meets described power vd D, 11 of described charactron U5, 7, 4, 2, 1, 10, 5, 3 pin are connected respectively the P0_0 of described single-chip microcomputer U4, P0_1, P0_2, P0_3, P0_4, P0_5, P0_6, P0_7 pin, the collector of described triode Q1 ~ Q4 is connected respectively 12 of described charactron U5, 9, 8, 6 pin, the base stage of described triode Q1 ~ Q4 is the corresponding P1_0 that connects described single-chip microcomputer U4 by described resistance R 1 ~ R4 respectively, P1_1, P1_2, P1_3 pin, the base stage of described triode Q5 ~ Q7 is the corresponding P1_4 that connects described single-chip microcomputer U4 by described resistance R 5 ~ R7 respectively, P1_5, P1_6 pin, described triode Q5, the collector of Q6 is connected respectively described light emitting diode D1, the positive pole of D2, the collector of described triode Q7 is connected with one end of described hummer B1, described light emitting diode D1, the negative pole of D2, the other end of hummer B1 is connected respectively described resistance R 8, R9, ground connection after R10, described power vd D is+3.3V power supply.
The beneficial effects of the utility model are, single-chip microcomputer U1 control temperature sensor U2 obtains the temperature of environment and revises the speed that ultrasound wave is propagated in air, and control ultrasonic wave module U3 and work, and calculate by the timer that carries the mistiming that ultrasonic wave module U3 sends to reception and be multiplied by ultrasonic velocity and obtain accurate measuring distance divided by 2, then single-chip microcomputer U1 sends to the single-chip microcomputer U4 on display module by communication by obtained distance value, single-chip microcomputer U4 controls charactron U5 work and distance value is presented on charactron U5, and in the time that distance value is less than the threshold value of certain setting, single-chip microcomputer U4 controls light emitting diode D1, D2 flicker and hummer B1 report to the police, thereby realize man-machine interaction.
Brief description of the drawings
Fig. 1 is structured flowchart of the present utility model;
Fig. 2 is the circuit connection diagram of measurement module;
Fig. 3 is the pinouts of display module single-chip microcomputer U4;
Fig. 4 is the circuit connection diagram of display module.
Embodiment
As shown in Figure 1, Figure 2, Figure 3, Figure 4, the utility model comprises measurement module 1, display module 2, measurement module 1 connects display module 2 by radio communication, measurement module 1 comprises single-chip microcomputer U1, temperature sensor U2, ultrasonic wave module U3, temperature sensor U2 adopts model DS18B20 digital temperature sensor, and ultrasonic wave module U3 adopts model SRF06 integrated ultrasonic sensor, display module 2 comprises single-chip microcomputer U4, charactron U5, light emitting diode D1, D2, hummer B1, triode Q1 ~ Q7, resistance R 1 ~ R10, single-chip microcomputer U1, U4 all adopt model C C2530 single-chip microcomputer, charactron U5 adopts 4 charactrons of the model 3461BS common anode utmost point, triode Q1 ~ Q7 is positive-negative-positive 8550 triodes, light emitting diode D1, D2 are red light emitting diodes, and hummer B1 is the common source split-type hummer that has, 3 pin of temperature sensor U2, 1 pin of ultrasonic wave module U3 all meets power vd D, 1 pin of temperature sensor U2, the equal ground connection of 4 pin of ultrasonic wave module U3,2 pin of temperature sensor U2 connect the P0_0 pin of single-chip microcomputer U1,2 of ultrasonic wave module U3, 3 pin are connected respectively the P0_1 of single-chip microcomputer U1, P1_0 pin, the emitter of triode Q1 ~ Q7 all meets power vd D, 11 of charactron U5, 7, 4, 2, 1, 10, 5, 3 pin are connected respectively the P0_0 of single-chip microcomputer U4, P0_1, P0_2, P0_3, P0_4, P0_5, P0_6, P0_7 pin, the collector of triode Q1 ~ Q4 is connected respectively 12 of charactron U5, 9, 8, 6 pin, the base stage of triode Q1 ~ Q4 is the corresponding P1_0 that connects single-chip microcomputer U4 by resistance R 1 ~ R4 respectively, P1_1, P1_2, P1_3 pin, the base stage of triode Q5 ~ Q7 is the corresponding P1_4 that connects single-chip microcomputer U4 by resistance R 5 ~ R7 respectively, P1_5, P1_6 pin, triode Q5, the collector of Q6 is connected respectively light emitting diode D1, the positive pole of D2, the collector of triode Q7 is connected with one end of hummer B1, light emitting diode D1, the negative pole of D2, the other end of hummer B1 is connected respectively resistance R 8, R9, ground connection after R10, power vd D is+3.3V power supply.
The course of work of the present utility model is: after measurement module 1 and display module 2 power on respectively, single-chip microcomputer U1 based on Zigbee agreement, U4 sets up cordless communication network automatically, after cordless communication network is set up, the single-chip microcomputer U1 timing of measurement module 1 is called temperature sensor U2 program and is carried out the collection of environment temperature, if temperature variation exceedes 1 DEG C, according to the hyperacoustic velocity of propagation value of new temperature computation, the pin level of the P0_1 pin of single-chip microcomputer U1 is set to high level, at least 10us holds time, then the P0_1 pin of single-chip microcomputer U1 is set to low level, and the time delay 500ms time wait for interruption, 2 pin of ultrasonic wave module U3 connect the P0_1 pin of single-chip microcomputer U1, in the time there is high level signal more than 10us on the P0_1 of single-chip microcomputer U1 pin, ultrasonic wave module U3 can send the square wave of 8 40KZ automatically, and whether detection has signal to return automatically, if there is signal to return, the level of 3 pin of ultrasonic wave module U3 is set to high level, the lasting time of high level is that ultrasound wave is from being transmitted into the time of returning, the P1_0 pin of single-chip microcomputer U1 connects 3 pin of ultrasonic wave module U3, the P1_0 pin down trigger mode that single-chip microcomputer U1 is set is edging trigger, in the time that the P1_0 of single-chip microcomputer U1 pin occurs along saltus step (rising edge), single-chip microcomputer U1 captures in real time this signal and enters into input capture interrupt routine, in this interrupt routine, start new timer work, in the time that the P1_0 of single-chip microcomputer U1 pin occurs along saltus step again (negative edge), single-chip microcomputer U1 captures in real time again this signal and again enters into input capture interrupt routine, while entering for the second time this program, read at once the numerical value of timer, this numerical value is the time of ultrasonic transmission, the time of ultrasonic transmission is multiplied by ultrasonic velocity again divided by 2, just can obtain range finding from, single-chip microcomputer U1 calls subsequently wireless transmission function distance value is sent, the single-chip microcomputer U4 of display module 2 receives the distance value that single-chip microcomputer U1 sends in real time, and this distance value is presented on charactron U5, simultaneity factor can be set a range finding alarm threshold value, in the time that measuring distance value is less than this range finding alarm threshold value, single-chip microcomputer U4 controls light emitting diode D1, warning that D2 glimmers and hummer B1 pipes, in the time that measuring distance value is more than or equal to this range finding alarm threshold value, single-chip microcomputer U4 controls light emitting diode D1, D2 and hummer B1 quits work.

Claims (1)

1. the wireless ultrasonic range measurement system based on CC2530 single-chip microcomputer, it comprises measurement module, display module, described measurement module connects display module by radio communication, it is characterized in that: described measurement module comprises single-chip microcomputer U1, temperature sensor U2, ultrasonic wave module U3, described temperature sensor U2 adopts model DS18B20 digital temperature sensor, and described ultrasonic wave module U3 adopts model SRF06 integrated ultrasonic sensor, described display module comprises single-chip microcomputer U4, charactron U5, light emitting diode D1, D2, hummer B1, triode Q1 ~ Q7, resistance R 1 ~ R10, described single-chip microcomputer U1, U4 all adopt model C C2530 single-chip microcomputer, described charactron U5 adopts 4 charactrons of the model 3461BS common anode utmost point, described triode Q1 ~ Q7 is positive-negative-positive 8550 triodes, described light emitting diode D1, D2 are red light emitting diodes, and described hummer B1 is the common source split-type hummer that has, 3 pin of described temperature sensor U2, 1 pin of ultrasonic wave module U3 all meets power vd D, 1 pin of described temperature sensor U2, the equal ground connection of 4 pin of ultrasonic wave module U3,2 pin of described temperature sensor U2 connect the P0_0 pin of described single-chip microcomputer U1,2 of described ultrasonic wave module U3, 3 pin are connected respectively the P0_1 of described single-chip microcomputer U1, P1_0 pin, the emitter of described triode Q1 ~ Q7 all meets described power vd D, 11 of described charactron U5, 7, 4, 2, 1, 10, 5, 3 pin are connected respectively the P0_0 of described single-chip microcomputer U4, P0_1, P0_2, P0_3, P0_4, P0_5, P0_6, P0_7 pin, the collector of described triode Q1 ~ Q4 is connected respectively 12 of described charactron U5, 9, 8, 6 pin, the base stage of described triode Q1 ~ Q4 is the corresponding P1_0 that connects described single-chip microcomputer U4 by described resistance R 1 ~ R4 respectively, P1_1, P1_2, P1_3 pin, the base stage of described triode Q5 ~ Q7 is the corresponding P1_4 that connects described single-chip microcomputer U4 by described resistance R 5 ~ R7 respectively, P1_5, P1_6 pin, described triode Q5, the collector of Q6 is connected respectively described light emitting diode D1, the positive pole of D2, the collector of described triode Q7 is connected with one end of described hummer B1, described light emitting diode D1, the negative pole of D2, the other end of hummer B1 is connected respectively described resistance R 8, R9, ground connection after R10, described power vd D is+3.3V power supply.
CN201420145718.5U 2014-03-28 2014-03-28 Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer Expired - Fee Related CN203811807U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420145718.5U CN203811807U (en) 2014-03-28 2014-03-28 Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420145718.5U CN203811807U (en) 2014-03-28 2014-03-28 Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer

Publications (1)

Publication Number Publication Date
CN203811807U true CN203811807U (en) 2014-09-03

Family

ID=51450540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420145718.5U Expired - Fee Related CN203811807U (en) 2014-03-28 2014-03-28 Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer

Country Status (1)

Country Link
CN (1) CN203811807U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108437922A (en) * 2018-03-16 2018-08-24 四川长虹电器股份有限公司 A kind of automobile side parking induction system and method
CN108741530A (en) * 2018-06-12 2018-11-06 杨祝信 A kind of intelligent self-propelled luggage case

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108437922A (en) * 2018-03-16 2018-08-24 四川长虹电器股份有限公司 A kind of automobile side parking induction system and method
CN108741530A (en) * 2018-06-12 2018-11-06 杨祝信 A kind of intelligent self-propelled luggage case

Similar Documents

Publication Publication Date Title
CN202472872U (en) Intelligent gas detection alarm system based on GSM (Global System for Mobile Communications)
CN202522949U (en) Temperature and humidity monitoring system
CN104181615A (en) Universal platform for monitoring microclimate environment and physical information in real time
CN203811807U (en) Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer
CN204925387U (en) Intelligence ultrasonic ranging appearance based on singlechip
CN203930061U (en) A kind of supersonic range finder
CN204439824U (en) A kind of electric energy meter electric source abnormal detection circuit
CN103646489A (en) Fire hazard alarm device
CN203365001U (en) Temperature acquisition and wireless transmission system based on one-chip microcomputer
CN202306283U (en) Embedded multifunctional intelligent trolley
CN203824587U (en) Livestock and poultry house environment humiture monitoring system
CN202443561U (en) Water leakage alarm system
CN206756271U (en) Ultrasonic liquid level measuring and warning system
CN201912399U (en) Multifunctional solar blind guidance
CN203162557U (en) On-line monitoring system for leakage of city water supply pipe network
CN202855056U (en) Orchard planting monitoring system
CN202330393U (en) Wireless environment detection device
CN202433041U (en) Greenhouse environment monitoring system
CN203616665U (en) Cement maintenance wireless temperature control system
CN203502047U (en) Indoor environment monitoring device
CN205405827U (en) Wireless temperature and humidity measurement and alarm system
CN104535108A (en) Greenhouse temperature and humidity detection system based on DSP
CN203204431U (en) Power line carrier-based intelligent greenhouse environment sensing and control system
CN205192453U (en) Utilize device of ultrasonic measurement cigarette machine obbbin diameter
CN204027553U (en) A kind of Multifunctional distance sensor with automatic temperature control system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140903

Termination date: 20170328

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