Design of infrared counter based on 51 microcontroller

Publisher:谁与争锋1Latest update time:2023-06-25 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. System Overview

The modules used in the system include AT89C51 microcontroller + LCD1602 display screen + photoelectric switch + button + small light + buzzer.


This design uses 51 microcontroller as the core control, and uses LCD1602 to display numerical values. The photoelectric switch of the system controls the addition and subtraction of numerical values. When the photoelectric switch that controls the numerical addition scans an object, the value on the display screen will increase by 1. When the control When the value-decreasing photoelectric switch scans an object, the value on the display screen will be reduced by 1. The system can also set an alarm threshold. The buttons control the size of the threshold. When the value reaches the threshold, an alarm will be issued.


2. Simulation Overview

1. Use LCD1602 to display real-time threshold and numerical transformation.

9e425ed0-3cab-11ed-9e49-dac502259ad0.jpg

2. The photoelectric switch that controls the numerical increase scans the object and the numerical value increases.

9e674bc8-3cab-11ed-9e49-dac502259ad0.jpg

3. The photoelectric switch that controls the numerical reduction scans the object and the numerical value decreases.

9e927d34-3cab-11ed-9e49-dac502259ad0.jpg

4. Set the threshold by pressing the buttons. Click the setting button and then press the plus and minus buttons to set the threshold.

9eb5b20e-3cab-11ed-9e49-dac502259ad0.jpg

5. When the value reaches the threshold, an alarm will be issued through the LED and buzzer.

9edd8392-3cab-11ed-9e49-dac502259ad0.jpg


3. Programming

Use Keil 51 for programming. When you open Proteus, the program is burned by default. If it is not burned, click on the AT89C51 microcontroller and import the program to run the system (the program file is a file with the suffix hex).

9f14a764-3cab-11ed-9e49-dac502259ad0.jpg


Reference address:Design of infrared counter based on 51 microcontroller

Previous article:AT89C2051 internal comparator application example
Next article:Detailed information about 51 microcontroller pins

Recommended posts

CircuitPython Online Editor v2
CircuitPythononlineeditorv2hasreleasedanalphaversionandcanbeusedonline.ItrequiresaChrome-basedbrowser. https://urfdvw.github.io/CircuitPython-online-IDE2/ NoonesupportsmyFirefoxanymore... TheWokwiyousharedlast
dcexpert MicroPython Open Source section
Op amp
WhyamIalwaysaffectedbycapacitorswhenanalyzingopampcircuits?Ican'tanalyzethemiftherearecapacitors.(1)WhatarethefunctionsofC2C3C4?(2)CanC2C3C4beconsidereddisconnectedduringanalysis?(3)Whyarethree68Kresistorscas
aq1261101415 Analog electronics
【Sipeed BL808 all-round board】6-Linux review
Preface:WhenIanalyzedtheinformationofthisboard,IfoundthattheLinuxdriverofthisboardisonlyadaptedtothemostbasic.TheofficialLinuxinformationisonlyenoughforthisboardtorun.Ifyoudon’thaveabasicknowledgeofLin
qiao--- Domestic Chip Exchange
How to program the C2000 on-chip Flash?
TherearethreewaystowriteFlashinDSP: 1.Writethroughthesimulator:Thereisrelevantsoftwareonourwebsite,andwealsoproviderelevantsoftwarewhensellingsimulators.Amongthem,thewritingofLF240xcanaddaplug-ininCCS,andth
fish001 DSP and ARM Processors
I'm a little confused. I want to stabilize the voltage at 3.3V. How should I choose the resistor and the voltage regulator?
Howtouseavoltageregulatordiodetostabilize3.3Vfora5Vpowersupply?Howtocalculatetheresistancevalue?Whatfactorsshouldbeconsidered? Ifyouwanttostabilizethevoltageto3.3V,youshouldchooseavoltageregulatorwitha
Aguilera Power technology
【STM32H7S78-DK】⑨TouchGFX project practice: electronic photo album
TouchGFX Inthepreviousposts,wehaveexperiencedtheperfectmatchbetweenTouchGFXandSTM32anditsexquisitedisplayeffects. Inthisexamplewewillcreateanelectronicphotoalbum. First,let'senjoysomebeautifulsceneryfromBing
cc1989summer stm32/stm8
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号