CN109523671A - A kind of intelligent bus station dot product passenger volume statistic device and statistical method - Google Patents

A kind of intelligent bus station dot product passenger volume statistic device and statistical method Download PDF

Info

Publication number
CN109523671A
CN109523671A CN201811380683.2A CN201811380683A CN109523671A CN 109523671 A CN109523671 A CN 109523671A CN 201811380683 A CN201811380683 A CN 201811380683A CN 109523671 A CN109523671 A CN 109523671A
Authority
CN
China
Prior art keywords
module
ultrasonic probe
bus
key
control 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
CN201811380683.2A
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.)
Shandong Polytechnic
Original Assignee
Shandong Polytechnic
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 Shandong Polytechnic filed Critical Shandong Polytechnic
Priority to CN201811380683.2A priority Critical patent/CN109523671A/en
Publication of CN109523671A publication Critical patent/CN109523671A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The invention discloses a kind of intelligent bus website ridership statistic device and statistical methods, structure is by control module, display module, memory module, key module and ultrasonic probe module, ultrasonic probe module is set as four tunnels, by front door ultrasonic probe one, front door ultrasonic probe two, back door ultrasonic probe one and back door ultrasonic probe two form, it can be realized and get on the bus number in bus driving process to each website, the statistical function of number of getting off and current number of people in car, and by bus travel in all websites for passing through get on or off the bus number and current number of people in car statistics stores, after reaching terminal convenient for bus, to the statistics of all website volumes of the flow of passengers of driving process, data foundation is provided for bus routes arrangement.

Description

A kind of intelligent bus station dot product passenger volume statistic device and statistical method
Technical field
The present invention relates to a kind of counting passenger flow of buses device, specifically a kind of intelligent bus website ridership system Counter device and statistical method.
Background technique
In order to ensure that strategy implementation and the research emphasis of public transport of public traffic in priority national development are public transit vehicles Scheduling problem, however passenger flow data is the basis that public bus network scheduling scheme is formulated, the limited transport power of rationalization evacuates visitor in time Stream, full and accurate effective passenger flow data is not only the premise of operation plan formulation, and formulates whole process through scheduling strategy, public Hand over the statistical analysis of the volume of the flow of passengers increasingly by traffic control part, the attention and concern of public transport company.
The method of the statistics of bus passenger flow volume data can be divided mainly into two classes at present, and one kind is manual counts, this The shortcomings that method is the main method of many city bus guest flow statistics in China, this method is that survey mode is single, It needs to carry out long-term passenger flow investigation, take time and effort, and the accuracy of data has to be tested, another kind of is the relatively advanced volume of the flow of passengers Information collecting method, this method include mainly bus IC card information bank statistic law and automatic counter system, bus IC card information The defect of library statistic law is to will appear passenger's card using information mistake and influence data accuracy, and automatic counter system is main at present Counted for pressure sensor counting device, photosensitive sensor counting device, passenger based on image detection etc., pressure sensor and The shortcomings that photosensitive sensor, is that not easy to install, cost is high, precision is low and maintenance cost is high.
Summary of the invention
The purpose of the present invention is to provide a kind of structure is simple, a kind of easy to operate, easy to accomplish intelligent bus station Dot product passenger volume statistic device and statistical method can be realized and get on the bus number in bus driving process to each website, under The statistical function of vehicle number and current number of people in car, and by bus travel in all websites for passing through get on or off the bus number and Current number of people in car statistics is stored, after reaching terminal convenient for bus, to all website volumes of the flow of passengers of driving process Statistics, provides data foundation for bus routes arrangement, to solve the problems mentioned in the above background technology.
To achieve the above object, the invention provides the following technical scheme:
A kind of intelligent bus website ridership statistic device, it is characterised in that: structure be by control module, display module, Memory module, key module and ultrasonic probe module, ultrasonic probe module are set as four tunnels, by front door ultrasonic probe One, front door ultrasonic probe two, back door ultrasonic probe one and back door ultrasonic probe two form, which will be controlled by conducting wire Tetra- road ultrasonic probe module of molding Kuai Yu is respectively connected with, the distance before ultrasonic probe module real-time monitoring probe, by controlling Molding block realizes that four tunnel measuring distances are compared with setting distance, further determines whether that someone passes through, control module will be sentenced Disconnected result is sent to memory module and display module by conducting wire, realizes display and the writing function of current passenger flow, key Module is connected with control module by conducting wire, and display module shows three working interface, set interface and browser interface interfaces; Key module by: key one, key two, key three and key four form;Key module mainly realizes working interface, and boundary is arranged The handoff functionality of face and browser interface and setting function.
Preferably, the front door ultrasonic probe one, front door ultrasonic probe two are respectively arranged in the same side at front door, Mounting distance is greater than 50cm, and back door ultrasonic probe one and back door ultrasonic probe two are respectively arranged in the same side at back door, peace Dress distance is greater than 50cm.
Preferably, the working interface real-time display current site, the website stopped recently, current number of people in car, most The website closely stopped is got off number, and the website stopped recently is got on the bus number, is indicated with Arabic numerical value.
Preferably, the control module be by STC15F2K60S2 chip microcontroller control function, STC15F2K60S2 single-chip microcontroller is the single-chip microcontroller of single clock/machine cycle (1T) of STC production, is high speed/highly reliable/low function Consumption/superpower jamproof 8051 single-chip microcontroller of new generation, this single-chip microcontroller is cheap, and programming operation is simple, and system stability Good, processing capacity is strong.STC15F2K60S2 series of tasks voltage: 4.5V -5.5V, 2048 byte of large capacity in piece SRAM can at most store 60K byte data, operating frequency range: 0MHz-28MHz.Present apparatus working frequency is 12MHz.Control It touches block and realizes that passenger getting on/off arbitration functions, presentation control function, data save function, be the core of the device.
Preferably, the ultrasonic probe module includes four road ultrasonic probes and probe driving circuit.The probe is Watertight transducer, waterproof rainwater enter damage probe, mainly realize distance measurement function, are controlled by control module and send ultrasonic wave, acquisition Reflected ultrasonic wave is compared by calculating the distance for obtaining probe and arriving barrier with the ultrasonic wave numerical value set Further calculating acquisition, whether someone passes through, and ultrasonic wave numerical value is distance of the probe to opposite car body, in millimeters, precision 1 millimeter.Basic functional principle: (1) ranging is triggered using single-chip microcontroller IO mouthful TRIG, to the high level signal of minimum 10us. (2) ultrasonic wave module sends the square wave of 8 40khz automatically, has detected whether signal return automatically;(3) there is signal return, lead to It crosses single-chip I/O mouth ECHO and exports a high level, high level duration is exactly ultrasonic wave from the time for being emitted to return. Measuring distance=(the high level time * velocity of sound (340M/S))/2.
Preferably, the memory module passes through I2C (IIC, Inter-Integrated Circuit), twin wire string Row bus passes through with control module, which includes eeprom chip 24C064, and total capacity is 8K(64K/8) a byte, Main to realize the setting of four road ultrasonic wave numerical value, each website of bus is got on the bus number, current persons count in number of getting off and bus And power down saves function.Tetra- road ultrasonic wave numerical value of control module Hui Jiang is sent to display module after booting, and memory module is realized To the writing function of historical data, play the role of preventing the loss that data are recorded after the system reboot.
Preferably, the display module: the module realizes display function, band Chinese word library using LCD12864 liquid crystal Disassembling graph liquid crystal display can cooperate single-chip microcontroller to complete Chinese character, English character and graphical display, and it is man-machine to may make up Chinese Interactive graphics (IG) interface, module have the characteristics that low in energy consumption, display is abundant in content and is widely used, it is using liquid crystal by processing The direction of propagation of light can be changed afterwards, point, line, surface are generated with electric current stimulation liquid crystal molecule and backlight is cooperated to be constituted picture.Its Display resolution is 128X 64, built-in 2M Chinese Character ROM (CGROM) 8192 (16*16 dot matrix) Chinese characters and 1 6K Position half-breadth Character ROM (HCGROM) 128 (16*8 dot matrix) ascii character-sets, can show 16 dot matrix of 8X4 row 16X The font of Chinese character ST7920 generates RAM (CGRAM) and provides user defined character generation (coinage) function, it is possible to provide 4 groups of 16* The space of 16 dot matrix.The coding of character to be shown is write on display random access memory (DDRAM), hardware is selected from CGROM will The font of display is displayed on the screen.Drawing RAM provides the space of 64*32 byte, at most can control 256*64 dot matrix Two-dimensional graphics cushion space.With 4 18 parallel-by-bits (adaptation M6800 timing), 2 lines or the serial multiple interfaces mode of 3 lines.
Preferably, the key module realizes the setting function and website quantity that four tunnel ultrasonic wave modules compare numerical value Function, volume of the flow of passengers browsing data function and changing interface function are set.
In working interface, driver is needed to press the button one when bus reaches a website, control module enters next The statistics interface at a station, display module can also enter next site interface.Key two realizes working interface, and set interface is clear Look at the switching at interface.In set interface, key three realizes that switching needs the position (position in the display) of data to be modified, Key four realizes the number of concrete modification, often presses one-touch three, numerical value just adds 1.Depresses button two enters browser interface again, Under the interface, key three realizes the website that switching needs to check, often presses one-touch three, numerical value just adds 1.Depresses button again Two are to revert to working interface.
Steps are as follows for a kind of intelligent bus website ridership statistical method:
Step 1: reaching some website, and bus opens front door, and driver presses the button one and enters website guest flow statistics circle Face,
Step 2: carrying out front door and get on the bus demographics, and whether the detection of one moment of front door ultrasonic probe currently has barrier, if There is barrier, control module thinks that someone gets on the bus, and when the people that gets on the bus is by front door ultrasonic probe two, and can detect ultrasonic wave There is barrier before probe module, at this moment control module just will record someone and get on the bus, and detection ordering is first by front door ultrasonic probe After one detects barrier, then barrier detected by front door ultrasonic probe two, just calculates 1 someone and get on the bus, carry out data system Meter is completed by control module and is sent to display module and memory module;
Step 3: carrying out back door and get off demographics, and whether the detection of two moment of back door ultrasonic probe currently has barrier, if Have barrier, control module thinks that someone gets off, when the people that gets off by back door ultrasonic probe for the moment, and can detect ultrasonic wave There is barrier before probe module, at this moment control module just will record someone and get off, and detection ordering is first by back door ultrasonic probe After two detect barrier, then barrier detected by back door ultrasonic probe one, just calculates 1 someone and get off, carry out data system Meter is completed by control module and is sent to display module and memory module;
Step 4: set interface work, depresses button two enter set interface, and key three realizes that switching needs data to be modified Position, position in the display, key three realize the number of concrete modification, often press one-touch three, numerical value just adds 1;
Step 5: browser interface work, depresses button two enters browser interface again, and under the interface, key three realizes that switching needs The website to be checked often presses one-touch three, and numerical value just adds 1, and depresses button two is to revert to working interface again, to realize The Intelligent statistical function of bus passenger flow volume.
Preferably, the site name is using Arabic records of values.
Compared with prior art, the beneficial effects of the present invention are: the configuration of the present invention is simple, easy to operate, pass through four Lu Chao Sonic probe module realizes that bus is got on or off the bus demographics function, is before judging whether ultrasonic probe using ultrasonic distance measurement No someone analyzes result by control module, obtains volume of the flow of passengers data, and the volume of the flow of passengers data of each website are stored in Memory module reaches home and realizes data query function using key module.The arrangement achieves right in bus driving process Each website is got on the bus number, the statistical function of number of getting off and current number of people in car, and by bus travel in the institute passed through Have that website gets on or off the bus number and current number of people in car is stored in storage module, after reaching terminal convenient for bus, to row The statistics of the Cheng Suoyou website volume of the flow of passengers is crossed, provides data foundation for bus routes arrangement, with larger practical value and now Sincere justice.
Detailed description of the invention
Fig. 1 is module connection structure schematic diagram of the present invention;
Fig. 2 is ultrasonic probe schematic view of the mounting position of the present invention;
Fig. 3 is Fig. 2A-A to sectional view;
Fig. 4 is Fig. 2 B-B direction sectional view;
Fig. 5 is control module schematic diagram of the present invention,
Fig. 6 is ultrasonic wave module schematic diagram of the present invention,
Fig. 7 is memory module schematic diagram of the present invention,
Fig. 8 is that the invention shows module principle figures.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Please refer to figure, in the embodiment of the present invention,
A kind of intelligent bus website ridership statistic device, it is characterised in that: structure is by control module (1), display mould Block (2), memory module (3), key module (4) and ultrasonic probe module (5), ultrasonic probe module (5) are set as four tunnels, By front door ultrasonic probe one (51), front door ultrasonic probe two (52), back door ultrasonic probe one (53) and rear door ultrasound wave Pop one's head in two groups (54) control module (1) and four road ultrasonic probe modules (5) are respectively connected with by conducting wire at, the device, Distance before ultrasonic probe module (5) real-time monitoring probe realizes four tunnel measuring distances and setting distance by control module (1) It is compared, further determines whether that someone passes through, judging result is sent to memory module by conducting wire by control module (1) (3) and display module (2), the display of realization current passenger flow and writing function, key module (4) and control module (1) are logical It crosses conducting wire to be connected, display module (2) shows three working interface, set interface and browser interface interfaces;Key module (4) is By: key one (41), key two (42), key three (43) and key four (44) form;Key module (4) mainly realizes work circle The handoff functionality and setting function of face, set interface and browser interface.
Preferably, the front door ultrasonic probe one (51), front door ultrasonic probe two (52) are respectively arranged in public transport The same side of Chinese herbaceous peony door (A), mounting distance are greater than 50cm, rear door of bus ultrasonic probe one (53) and back door ultrasonic probe Two (54) are respectively arranged in the same side of back door (B), and mounting distance is greater than 50cm.
Preferably, the working interface real-time display current site, the website stopped recently, current number of people in car, most The website closely stopped is got off number, and the website stopped recently is got on the bus number, is indicated with Arabic numerical value.
Preferably, the control module (1) be by STC15F2K60S2 chip microcontroller control function, STC15F2K60S2 single-chip microcontroller is the single-chip microcontroller of single clock/machine cycle (1T) of STC production, is high speed/highly reliable/low function Consumption/superpower jamproof 8051 single-chip microcontroller of new generation, this single-chip microcontroller is cheap, and programming operation is simple, and system stability Good, processing capacity is strong.STC15F2K60S2 series of tasks voltage: 4.5V -5.5V, 2048 byte of large capacity in piece SRAM can at most store 60K byte data, operating frequency range: 0MHz-28MHz.Present apparatus working frequency is 12MHz.Control It touches block and realizes that passenger getting on/off arbitration functions, presentation control function, data save function, be the core of the device.
Preferably, the ultrasonic probe module (5) includes four road ultrasonic probes and probe driving circuit.The probe For watertight transducer, waterproof rainwater enters damage probe, mainly realizes distance measurement function, controlled by control module and send ultrasonic wave, adopted Collect reflected ultrasonic wave, by calculating the distance for obtaining probe and arriving barrier, is compared with the ultrasonic wave numerical value set Relatively further calculating acquisition, whether someone passes through, and ultrasonic wave numerical value is distance of the probe to opposite car body, in millimeters, essence 1 millimeter of degree.Basic functional principle: (1) ranging is triggered using single-chip microcontroller IO mouthful TRIG, to the high level signal of minimum 10us. (2) ultrasonic wave module sends the square wave of 8 40khz automatically, has detected whether signal return automatically;(3) there is signal return, lead to It crosses single-chip I/O mouth ECHO and exports a high level, high level duration is exactly ultrasonic wave from the time for being emitted to return. Measuring distance=(the high level time * velocity of sound (340M/S))/2.
Preferably, the memory module (3) passes through I2C (IIC, Inter-Integrated Circuit), twin wire Universal serial bus passes through with control module, which includes eeprom chip 24C064, and total capacity is 8K(64K/8) a word Section, main to realize the setting of four road ultrasonic wave numerical value, each website of bus is got on the bus number, number of getting off and works as forefathers in bus Several and power down saves function.Tetra- road ultrasonic wave numerical value of control module Hui Jiang is sent to display module after booting, and memory module is real Show the writing function to historical data, plays the role of preventing the loss for recording data after the system reboot.
Preferably, the display module (2): the module realizes display function, band Chinese using LCD12864 liquid crystal Character library disassembling graph liquid crystal display can cooperate single-chip microcontroller to complete Chinese character, English character and graphical display, may make up Chinese Human-computer interaction graphical interfaces, module have the characteristics that low in energy consumption, display is abundant in content and is widely used, it is passed through using liquid crystal The direction of propagation of light can be changed after processing, point, line, surface are generated with electric current stimulation liquid crystal molecule and backlight is cooperated to be constituted picture Face.Its display resolution is 128X 64, built-in 2M Chinese Character ROM (CGROM) 8192 (16*16 dot matrix) Chinese characters, and 1 6K half-breadth Character ROM (HCGROM) 128 (16*8 dot matrix) ascii character-set, can show 16 points of 8X4 row 16X The font of the Chinese character ST7920 of battle array generates RAM (CGRAM) and provides user defined character generation (coinage) function, it is possible to provide 4 groups The space of 16*16 dot matrix.The coding of character to be shown is write on display random access memory (DDRAM), hardware is selected from CGROM will Font to be shown is displayed on the screen.Drawing RAM provides the space of 64*32 byte, at most can control 256*64 dot matrix Two-dimensional graphics cushion space.With 4 18 parallel-by-bits (adaptation M6800 timing), 2 lines or the serial multiple interfaces mode of 3 lines.
Preferably, the key module (4) realizes the setting function and website that four tunnel ultrasonic wave modules compare numerical value Function, volume of the flow of passengers browsing data function and changing interface function is arranged in quantity.
In working interface, need driver to press the button one (41) when bus reaches a website, control module (1) into Enter the statistics interface at next station, display module (2) can also enter next site interface.Key two (42) realizes work circle Face, set interface, the switching of browser interface.In set interface, key three (43) realizes that switching needs the position of data to be modified (position in the display), key four (44) realize the number of concrete modification, often press one-touch three (43), numerical value just adds 1. Depresses button two (42) enters browser interface again, and under the interface, key three realizes the website that switching needs to check, often presses one Secondary key three (43), numerical value just add 1.Depresses button two (42) is to revert to working interface again.
Steps are as follows for a kind of intelligent bus website ridership statistical method:
Step 1: reaching some website, and bus opens front door, and driver presses the button one (41) and unites into the website volume of the flow of passengers Interface is counted,
Step 2: carrying out front door and get on the bus demographics, and whether the detection of front door ultrasonic probe one (51) moment currently has barrier, If there is barrier, control module thinks that someone gets on the bus, and when the people that gets on the bus is by front door ultrasonic probe two (52), and can detect There is barrier before to ultrasonic probe module, at this moment control module just will record someone and get on the bus, and detection ordering is first to be surpassed by front door After sonic probe one detects barrier, then barrier detected by front door ultrasonic probe two (52), just calculated on 1 someone Vehicle carries out data statistics and is completed by control module and be sent to display module and memory module;
Step 3: carrying out back door and get off demographics, and whether the detection of back door ultrasonic probe two (54) moment currently has barrier, If there is barrier, control module thinks that someone gets off, when the people that gets off by back door ultrasonic probe for the moment, and can detect super There is barrier before sonic probe module, at this moment control module just will record someone and get off, and detection ordering is first by rear door ultrasound wave After two (54) of probe detect barrier, then barrier detected by back door ultrasonic probe one (53), just under 1 someone of calculation Vehicle carries out data statistics and is completed by control module and be sent to display module and memory module;
Step 4: set interface work, depresses button two (42) enter set interface, and key three (43) realizes that switching needs to be repaired Change the position of data, position in the display, key three (43) realizes the number of concrete modification, often presses one-touch three (43), numerical value just adds 1;
Step 5: browser interface work, depresses button two (42) enters browser interface again, and under the interface, key three (43) is real Now switching needs the website checked, often presses one-touch three (43), numerical value just adds 1, and depresses button two (42) is to revert to again Working interface, to realize the Intelligent statistical function of bus passenger flow volume.
Ultrasonic wave module ranging procedure:
Void StartModule () // ultrasonic signal is sent
{
trig=1;
delayms(100);
trig=0;
}
Void StartModule1 () // ultrasonic signal is sent
{
trig1=1;
delayms(100);
trig1=0;
}
Void Conut (void) // ultrasonic wave sending time is converted to distance
{
time=TH0*256+TL0;
TH0=0;
TL0=0;
sum0=(time*1.88)/10;
}
2.6 memory module programs:
void IIC_Start(void)
{
SDA_OUT();The output of //sda line
IIC_SDA=1;
IIC_SCL=1;
delay_us(4);
IIC_SDA=0;//START:when CLK is high,DATA change form high to low
delay_us(4);
IIC_SCL=0;// I2C bus is vised, it is ready for sending or receives data
}
// generate IIC stop signal
void IIC_Stop(void)
{
SDA_OUT();The output of //sda line
IIC_SCL=0;
IIC_SDA=0;//STOP:when CLK is high DATA change form low to high
delay_us(4);
IIC_SCL=1;
IIC_SDA=1;// send I2C bus end signal
delay_us(4);
}u8 IIC_Wait_Ack(void)
{
u8 ucErrTime=0;
SDA_IN();//SDA is set as inputting
IIC_SDA=1;delay_us(1);
IIC_SCL=1;delay_us(1);
while(READ_SDA)
{
ucErrTime++;
if(ucErrTime>250)
{
IIC_Stop();
return 1;
}
}
IIC_SCL=0;// clock output 0
return 0;
}
// generate ACK response
void IIC_Ack(void)
{
IIC_SCL=0;
SDA_OUT();
IIC_SDA=0;
delay_us(2);
IIC_SCL=1;
delay_us(2);
IIC_SCL=0;
}
// ACK response is not generated
void IIC_NAck(void)
{
IIC_SCL=0;
SDA_OUT();
IIC_SDA=1;
delay_us(2);
IIC_SCL=1;
delay_us(2);
IIC_SCL=0;
} void IIC_Send_Byte(u8 txd)
{
u8 t;
SDA_OUT();
IIC_SCL=0;// drag down clock start data transmission
for(t=0;t<8;t++)
{
IIC_SDA=(txd&0x80)>>7;
txd<<=1;
delay_us(2);
IIC_SCL=1;
delay_us(2);
IIC_SCL=0;
delay_us(2);
}
}
// 1 byte is read, when ack=1, ACK is sent, ack=0 sends nACK
u8 IIC_Read_Byte(unsigned char ack)
{
unsigned char i,receive=0;
SDA_IN();//SDA is set as inputting
for(i=0;i<8;i++ )
{
IIC_SCL=0;
delay_us(2);
IIC_SCL=1;
receive<<=1;
if(READ_SDA)receive++;
delay_us(1);
}
if (!ack)
IIC_NAck();// send nACK
else
IIC_Ack();// send ACK
return receive;
}
3.7 display module programs:
Void LCD12864_WaitIdle () //LCD12864 busy signal detection
{
LCD12864_DA_PORT = 0xff;// release port
LCD12864_RS_PORT = 0;
LCD12864_RW_PORT = 1;
LCD12864_E_PORT = 1;
while((LCD12864_DA_PORT&0x80)==1);// wait BF be not 1//
LCD12864_E_PORT = 0;
}
Void LCD12864_COM_Write (uchar com_da) // writing commands word
{
LCD12864_WaitIdle();// detection busy signal
LCD12864_RS_PORT=0;
LCD12864_RW_PORT=0;
LCD12864_E_PORT=0;
LCD12864_DA_PORT=com_da;
Delay5ms();
LCD12864_E_PORT = 1;
Delay5ms();
LCD12864_E_PORT = 0;
}
Void LCD12864_Data_Write (uchar da) // write-in data
{ LCD12864_WaitIdle();// detection busy signal
LCD12864_RS_PORT = 1;
LCD12864_RW_PORT = 0;
LCD12864_E_PORT = 0;
LCD12864_DA_PORT = da;
Delay5ms();
LCD12864_E_PORT = 1;
Delay5ms();
LCD12864_E_PORT = 0;
}
Void lcd_pos (uchar X, uchar Y) // write address X indicates that row, Y indicate column
{
uchar pos;
if(X==0)
{
X=0x80;
}
if(X==1)
{
X=0x90;
}
if(X==2)
{
X=0x88;
}
if(X==3)
{
X=0x98;
}
pos=X+Y;
LCD12864_COM_Write(pos);// write-in Chinese character address
}
Void LCD12864_init ()/* LCD12864 initialization */
{
lcd_psb=1;
LCD12864_COM_Write(0x30);/ * elementary instruction operation */
Delay10ms();
LCD12864_COM_Write(0x0C);/ * is shown out and cursor position */
Delay10ms();
LCD12864_COM_Write(0x01);/ * display clear screen */
Delay10ms();
LCD12864_COM_Write(0x06);Address counter (AC)+1* of/* DDRAM/
}
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, and do not carrying on the back In the case where from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter from which From the point of view of a bit, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is wanted by appended right Ask rather than above description limit, it is intended that by all changes that come within the meaning and range of equivalency of the claims It is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (3)

1. a kind of intelligent bus website ridership statistic device, it is characterised in that: structure is by control module, display mould Block, memory module, key module and ultrasonic probe module, ultrasonic probe module are set as four tunnels, are visited by preceding door ultrasound wave First, front door ultrasonic probe two, back door ultrasonic probe one and back door ultrasonic probe two form, which will by conducting wire Control module is respectively connected with four road ultrasonic probe modules, the distance before ultrasonic probe module real-time monitoring probe, by Control module realizes that four tunnel measuring distances are compared with setting distance, further determines whether that someone passes through, and control module will Judging result is sent to memory module and display module by conducting wire, realizes display and the writing function of current passenger flow, presses Key module is connected with control module by conducting wire, and display module shows three working interface, set interface and browser interface boundaries Face;Key module by: key one, key two, key three and key four form;Key module mainly realizes working interface, if Set the handoff functionality and setting function of interface and browser interface.
2. a kind of intelligent bus website ridership statistic device according to claim 1, it is characterised in that: front door is super Sonic probe one, front door ultrasonic probe two are respectively arranged in the same side at front door, and mounting distance is greater than 50cm, rear door ultrasound wave Probe one and back door ultrasonic probe two are respectively arranged in the same side at back door, and mounting distance is greater than 50cm.
3. a kind of intelligent bus website ridership statistic device according to claim 1, which is characterized in that statistics side Steps are as follows for method:
Step 1: reaching some website, and bus opens front door, and driver presses the button one and enters website guest flow statistics circle Face,
Step 2: carrying out front door and get on the bus demographics, and whether the detection of one moment of front door ultrasonic probe currently has barrier, if There is barrier, control module thinks that someone gets on the bus, and when the people that gets on the bus is by front door ultrasonic probe two, and can detect ultrasonic wave There is barrier before probe module, at this moment control module just will record someone and get on the bus, and detection ordering is first by front door ultrasonic probe After one detects barrier, then barrier detected by front door ultrasonic probe two, just calculates 1 someone and get on the bus, carry out data system Meter is completed by control module and is sent to display module and memory module;
Step 3: carrying out back door and get off demographics, and whether the detection of two moment of back door ultrasonic probe currently has barrier, if Have barrier, control module thinks that someone gets off, when the people that gets off by back door ultrasonic probe for the moment, and can detect ultrasonic wave There is barrier before probe module, at this moment control module just will record someone and get off, and detection ordering is first by back door ultrasonic probe After two detect barrier, then barrier detected by back door ultrasonic probe one, just calculates 1 someone and get off, carry out data system Meter is completed by control module and is sent to display module and memory module;
Step 4: set interface work, depresses button two enter set interface, and key three realizes that switching needs data to be modified Position, position in the display, key three realize the number of concrete modification, often press one-touch three, numerical value just adds 1;
Step 5: browser interface work, depresses button two enters browser interface again, and under the interface, key three realizes that switching needs The website to be checked (number) often presses one-touch three, and numerical value just adds 1, and depresses button two is to revert to working interface again, from And realize the Intelligent statistical function of bus passenger flow volume.
CN201811380683.2A 2018-11-20 2018-11-20 A kind of intelligent bus station dot product passenger volume statistic device and statistical method Pending CN109523671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811380683.2A CN109523671A (en) 2018-11-20 2018-11-20 A kind of intelligent bus station dot product passenger volume statistic device and statistical method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811380683.2A CN109523671A (en) 2018-11-20 2018-11-20 A kind of intelligent bus station dot product passenger volume statistic device and statistical method

Publications (1)

Publication Number Publication Date
CN109523671A true CN109523671A (en) 2019-03-26

Family

ID=65778177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811380683.2A Pending CN109523671A (en) 2018-11-20 2018-11-20 A kind of intelligent bus station dot product passenger volume statistic device and statistical method

Country Status (1)

Country Link
CN (1) CN109523671A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110053556A (en) * 2019-04-26 2019-07-26 山东职业学院 A kind of anti-warning device that mops floor of intellectual vapor chassis
CN110217652A (en) * 2019-07-31 2019-09-10 山东职业学院 A kind of intelligent elevator inside passengers quantity display device
CN114724365A (en) * 2022-03-29 2022-07-08 深圳市综合交通与市政工程设计研究总院有限公司 Public transport passenger capacity collection system based on positioning information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1363900A (en) * 2001-11-28 2002-08-14 南京师范大学 Method and device for counting passengers of bus
CN203192070U (en) * 2013-04-11 2013-09-11 长安大学 Passenger counting and state display device for public transport
CN103505223A (en) * 2013-09-06 2014-01-15 浙江工业大学 Experimental device for testing attention distribution capacity
CN204270497U (en) * 2014-06-09 2015-04-15 南京信息工程大学 A kind of bus passenger flow information collecting device
CN105590343A (en) * 2015-12-18 2016-05-18 昆明理工大学 Intelligent multifunctional taxi-carpooling charging system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1363900A (en) * 2001-11-28 2002-08-14 南京师范大学 Method and device for counting passengers of bus
CN203192070U (en) * 2013-04-11 2013-09-11 长安大学 Passenger counting and state display device for public transport
CN103505223A (en) * 2013-09-06 2014-01-15 浙江工业大学 Experimental device for testing attention distribution capacity
CN204270497U (en) * 2014-06-09 2015-04-15 南京信息工程大学 A kind of bus passenger flow information collecting device
CN105590343A (en) * 2015-12-18 2016-05-18 昆明理工大学 Intelligent multifunctional taxi-carpooling charging system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110053556A (en) * 2019-04-26 2019-07-26 山东职业学院 A kind of anti-warning device that mops floor of intellectual vapor chassis
CN110217652A (en) * 2019-07-31 2019-09-10 山东职业学院 A kind of intelligent elevator inside passengers quantity display device
CN114724365A (en) * 2022-03-29 2022-07-08 深圳市综合交通与市政工程设计研究总院有限公司 Public transport passenger capacity collection system based on positioning information

Similar Documents

Publication Publication Date Title
CN109523671A (en) A kind of intelligent bus station dot product passenger volume statistic device and statistical method
CN100586768C (en) Hardware system structure of intellectualized full-graphics automobile instrument
CN104101857B (en) Based on FlexRay bus electric energy Watch Error detecting systems and method
CN103971433B (en) A kind of bus passenger flow volume number system based on RFID and method
CN102866322A (en) Touch device detection method
CN103793099A (en) Touch sensing system and method of reducing latency thereof
CN204990747U (en) System is reminded to bend blind area vehicle
CN103336500A (en) Vehicle monitoring system
CN111459324B (en) Ultrasonic lamb wave touch screen
CN103123549B (en) Touch-screen system and the synchronous method detected thereof
CN104400785B (en) Interactive intelligent household service robot
CN101876864B (en) Data acquisition device and method of touch screen as well as touch screen system
CN204308955U (en) Interactive intelligent household service robot
CN205523736U (en) Electric automobile trades power station battery quality remote monitering system
CN103092454B (en) Electric resistance type touch screen control circuit and multipoint touch realization method thereof
CN206224449U (en) A kind of fault injection system
CN202422210U (en) Embedded integrated information management platform for large warehouse
CN201473139U (en) Portable elevator speed limiter check meter
CN203503017U (en) Multifunctional class hour recorder for driver training
CN208650594U (en) A kind of intelligent bicycle shutdown system
CN219039104U (en) Be applied to portable ADCP equipment of open channel velocity of flow measurement
CN207541223U (en) The detecting system of electric-controlled plate relay
CN206400635U (en) A kind of computer based library seats managing and control system
CN204556511U (en) A kind of haze weather visibility measurement device
CN209028233U (en) A kind of intelligence rainfall monitoring device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326

RJ01 Rejection of invention patent application after publication