0% found this document useful (0 votes)
46 views

Door Counter With 8051 (89c51,89c52) Microcontroller: Digital Counter Project Requirements

Uploaded by

Hrudaya Sawant
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Door Counter With 8051 (89c51,89c52) Microcontroller: Digital Counter Project Requirements

Uploaded by

Hrudaya Sawant
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Projects and Tutorials  Articles  News  Forums  Digi-Key Store  EE Resources  EE Learning Center Women in Engineering 

Door counter with 8051 (89c51,89c52) Search this website GO

microcontroller
July 27, 2019 By EG Projects

Here is a simple project for counting people, vehicles or anything passing through a certain place. Anything
when physically crosses the barrier of our embedded system DIY project will increment our counter.
The counter is bidirectional means it can count/increment if the object crosses its barrier from either left or
right direction. The basic idea behind it is that you don’t need to manually count persons, people vehicles etc
passing through certain place. 
Early counting starts through Babbage  and then
counting numbers were invented, than manually
people started count things. Now its digital era and
we count things digitally. Previously  in manually
counting their are problems. One have to stand for
hours to count people and vehicles passing through
certain area, also he can lose data if his attention
goes some where else. This project is best example
of accuracy and reducing man power on extra stuff
of counting.
Digital counter project requirements
8051 (89c51 or 89c52) microcontroller
16×2 lcd
crystal (11.0592 Mhz)
LDR (Light dependent resistor)
Resistor 5K
Bread board or PCB for circuit designing
Power supply
Taoglas' PA.26A surface mount LTE 4G antenna
Potentiometer (For seeting led contrast) provides the highest efficiency in a small SMT
form factor, coming in at 35 mm x 5 mm x 6 mm.
Connecting wires
Learn More

Taoglas' A.41 Hercules, a high-gain GPS-


Some tutorials related to the project. Like interfacing 16×2 lcd with 89c51 microcontroller, it working modes GLONASS-GALILEO-BeiDou antenna with UV
resistant and robust housing, is the latest generation of
and operating commands. The tutorials will help you in understanding the code below.  Hercules GNSS antennas.
Learn More

Lcd 16×2 Working Taoglas' Pylon FXUB85 is an ultra-wideband


flexible PCB antenna designed for next generation
connectivity. It provides high performance for all 5G
sub 6 GHz and Wi-Fi 6 applications.
Learn More
Commands and Data send to 16×2 Lcd – Difference
The Taoglas EDGE Connect solution is a next-
generation IoT hardware and software platform
that provides full cellular, Bluetooth®, onboard
Object/People counter with 89c52 microcontroller – Circuit Diagram sensors, and GNSS expansion options from an ultra-
low-power device.

Counter values are displayed on 16×2 lcd. Lcd is interfaced with 8051 microocntroller in 8-bit mode. Data Learn More

pins of 16×2 lcd are connected to Port-1 of 8051(89c51 or 89c52) microcontroller. The rs (register select)
pin of 16×2 lcd is connected to Port-3 pin-5 of 8051 microcontroller. The rw (read-write) pin of lcd is
connected to Port-3 pin-7 of 8051 microcontroller. The en (enable) pin of lcd is connected to Port-3 pin-6 of
89c51 microcontroller. Rest of the connections are to make 8051(89c51 or 89c52) microcontroller
operational. Like apply 5v to vcc(pin 40) and vpp(pin 31). Ground pin 20. Connect crystal to pin 18 and 19.
11.0592 MHz crystal is used in the project.
89c51 digital counter sensor
Their are many techniques and pre-assembled sensors available in market for counting purpose. The most HAVE A QUESTION?
popular technique among diy embedded circuit designers is using laser light and a light
dependent resistor(LDR).  Laser light is thrown on light dependent resistor from a distance.  When a person
Have a technical question about an
passes in between the laser and LDR setup the light stops falling on the LDR. The movement when person is
article or other engineering questions?
in front of laser light it blocks the light and LDR laser light connection is braked. The connection is made
Check out our engineering forums
again when the person moves away from laser light. This breaking and making of connection is interpreted
EDABoard.com and Electro-Tech-
by the 8051 microcntroller and is counted as 1.
Online.com where you can get those
questions asked and answered by your
peers!

EDA BOARD

ELECTRO-TECH-ONLINE

Laser and LDR(Light dependent resistor) object, people, person, vehicle counter
FEATURED TUTORIALS
The last thing in the circuit is pin 0 of Port-2. Here all the logic is created. The laser light is continuously
falling on the ldr(light dependent resistor), short circuiting the circuit. The controller read it as ‘0’ or low. Now VHDL Tutorial 16: Design a D flip-flop using VHDL
when some one passes through the way and cuts the laser falling on the Ldr. The circuit completes and
controller reads it as ‘1’ or high. So when ever the light falling on the ldr is disturbed the controller reads it as
1 and increments the output. 

VHDL tutorial 13: Design 3×8 decoder


and 8×3 encoder using VHDL

VHDL Tutorial 14: Design 1×8


demultiplexer and 8×1 multiplexer
using VHDL

VHDL Tutorial 15: Design a clocked


SR latch (flip-flop) using VHDL

VHDL Tutorial 17: Design a JK flip-


flop (with preset and clear) using
VHDL

Door,people,person,vehicle counter with 8051 microcontroller Circuit Diagram

8051 microcontroller Object counter code


VHDL Tutorial 18: Design a T flip-flop
(with enable and an active high reset
The code is simple first i included the necessary header file reg<51.h> . If you are coding in keil ide for 8051 input) using VHDL
microcontroller then this library is must to be included in your source code. Then checkconditions() function
is initialized. This function is checking if the person is crossed through the path or not. Then single sbits are
defined for enable , register select and read write pins of 16×2 lcd. pcount variable is initialized for
connecting our logic circuit to Port-2 pin-0. Delay() function is generating some delay to be used where
needed. lcdcmd() fuction is sending commands to lcd. lcddata() function is sending data to lcd. lcdint() is
initializing the lcd. Then at last main function is defined.  STAY UP TO DATE

When you are all done by making circuit and burning hex code in microcontroller now its time to see the
result. Upon starting the program you will see text “DOOR COUNTER!!!” displayed on the first line of the 16×2
lcd. On second line there is nothing. Now move your finger and cut the light falling on the light dependent
resistor. You will see number displayed on the screen and ever time you cut the light the number is
incremented by one.

Sign up and receive our weekly newsletter for


More counter and security alarm projects using different microconrollers and sensors like PIR(passive latest Tech articles, Electronics Projects,
infrared), LDR(light dependent resistor), Laser light, Ultrasonic sensor etc. Each project contains free source Tutorial series and other insightful tech
code and circuit diagram of the project.  content.

Home security with arduino uno

EE TRAINING CENTER
PIR security system over WiFi using nodemcu
CLASSROOMS
Watch The project Video Here……..

·
Microcontroller Projects Follow

Door Counter files/code

Filed Under: 8051 Microcontroller, Microcontroller Projects

Questions related to this article?


👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.
RECENT ARTICLES

Samsung offers advanced Exynos 2200 mobile


Tell Us What You Think!! processor with Xclipse GPU
Qualcomm and its partners offer first
You must be logged in to post a comment.
smartphone demo of iSIM technology
Infineon launches new generation of single
half-bridge ICs
VHDL Tutorial 16: Design a D flip-flop using
VHDL
What are Arduino force-sensitive resistors?
MOST POPULAR

5G 555 timer circuit 8051 ai Arduino


atmega16 automotive avr connector dc motor display

Electronic Part Electronic Parts Fujitsu gsm ic

infineontechnologies integratedcircuit Intel IoT ir lcd


ldr led maximintegratedproducts microchip Microchip Technology

microchiptechnology microcontroller motor


powermanagement Raspberry Pi remote

renesaselectronics Research robot


samsung semiconductor sensor software

STMicroelectronics switch
Technology vishayintertechnology wireless

EDABOARD.COM DISCUSSIONS

Terasic ADDA
How to determine Solution Frequency?
Lipo battery with 3.7V1800mah 2amp output
current which is not working with ESP32
Data conversion Terasic Altera hsmc
Does a Transceivers Require a CPU (Core)

ELECTRO-TECH-ONLINE.COM
DISCUSSIONS

Making a Bluetooth adapter for a Car Phone


from the 90's
DIY bluetooth speaker
Finally a real thing maybe?
Ursus trotter mixer repair UT-Klot400p
Mini reflow oven advice

Connect with Engineers Garage  

ANALOG IC TIPS POWER ELECTRONIC TIPS

CONNECTOR TIPS SENSOR TIPS

DESIGNFAST TEST AND MEASUREMENT TIPS

EDABOARD FORUMS 5G TECHNOLOGY WORLD

EE WORLD ONLINE ABOUT US

ELECTRO-TECH-ONLINE FORUMS CONTACT US

MICROCONTROLLER TIPS ADVERTISE

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

PDFmyURL.com - convert URLs, web pages or even full websites to PDF online. Easy API for developers!

You might also like