Vous êtes sur la page 1sur 5

Inquiry System for Classrooms based on

Multi-sensors and SQL Server


Haomin Zeng
Mengci Liu
Functions Introduction
The system is constituted of sensors including infrared barrier-avoiding sensors and
temperature -humidity sensors, Zigbee Communication Module and frond-end website.
There are five parts of the website that are user information, classrooms information,
multifunctional inquiry, downloads, and tips. And there are two kinds of users, one is
manager and another is students. For managers, they have the authority to edit the classroom
information and tips, and upload the files provided to be downloaded while students user can
only see those information on website. Multifunctional inquiry provides three kinds of
inquiries that are standard quick inquiry, personalized quick inquiry and curriculum inquiry.

Tips include the instructions teach first-time user how to use the website and also some
announcements.

Overall system architecture diagram

Counting Module Based on Infrared Barrier-avoiding Sensor


The infrared barrier-avoiding sensor is kind of integrative sensor combine transmitting and
receiving infrared signal which is mainly used for obstacle detection. And the sensing
distance of it can be adjusted according to the requirements.

Principle to Judge People Getting In or Out


Two infrared barrier-avoiding sensors are set to place side by side on the same side of the
door, and the distance between these two sensors is about 3cm. If a person go into a
classroom, the first sensor being blocked is outer one and then the inside one. And if a person
go out of a classroom, the first sensor being blocked is the inside one and then the outer one.
So the principle to judge people getting in or out a classroom is base on this phenomenon.
Connect the signal line of these two senor to IO port P1.0 and P1.1 of 51 microcontroller and
connect to the external interrupt interface P3.2 and P3.3 of 51 microcontroller through a
NAND gate.
When there is on one pass, the signal of both sensors is high. When someone goes into the
classroom, the first low level is from the outer sensor, and set the variable first to 1, at the
same time open the interrupt interface. The edge when the inner sensor being blocked and
then going back to high will trigger interrupt and at the same time set the variable last to 2.
Thus whether there is a person getting in or out the classroom can be judged simple by the
value of first and last. The four cases are shown below.

When getting the result of a person going in or out, the number would be add or subtract
form the current number of persons in this room.

Temperature -humidity Sensors Module

The temperature-humidity used in this system is DHT11 which uses a dedicated digital
modules collection technology and temperature and humidity sensor technology to ensure
that products with high reliability and excellent long-term stability

Connect the VDD of ship to +5V stabilized voltage supply, GND to ground together with
GND of microcontroller, and single pin to the P2.0 IO interface of 51 microcontroller.

Zigbee Wireless Communication Module


Zigbee is a short-range, low-speed wireless network communication technology, which was
developed to establish a low-cost, low-power and small- area wireless communication which
is very suitable for this system.
In this system, the ship SZ05-ADV is used which integrates standard RF transceiver and
microprocessor compliance with Zigbee protocol, and with lots of advantages such as large
communication range, anti-interference ability, flexible networking, stable performance. And
it enables point-to-point, point-to-multipoint, multipoint-to-multipoint transferring of data
between devices, and can consists of star, tree and honeycomb mesh network structure.
In this system, only one classroom is considered, so point-to-point transferring is selected.
However in real system, there are many classrooms, the network of star structure should be
used.

Web Pages
The web pages base on HTML and CSS, and the functions has shown above. The network

server is achieved by using a desktop application named Peanut Shells which combines
dynamic domain name system and domain name management.
Since this system built is to shown the main idea, using Peanut Shells is temporarily a
suitable way to provide the network service. Using Peanut Shells to make an ordinary laptop
to be an internet hosts with fixed domain name is the way we use in this system. Thus
everyone with Internet access can visit our website and inquiry the information they want
about the classrooms.

Vous aimerez peut-être aussi