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.
2. The photoelectric switch that controls the numerical increase scans the object and the numerical value increases.
3. The photoelectric switch that controls the numerical reduction scans the object and the numerical value decreases.
4. Set the threshold by pressing the buttons. Click the setting button and then press the plus and minus buttons to set the threshold.
5. When the value reaches the threshold, an alarm will be issued through the LED and buzzer.
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).
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- About Sobel Algorithm
- What is the best engineer like?
- STM32 interrupt priority grouping setting
- FreeRtos blocking issue discussion
- Is the C language for microcontrollers easy to learn?
- MSP430 interrupt priority and interrupt nesting (and easy to understand error instructions)
- Received the X-NUCLEO-IKS01A3 sensor kit
- [Power amplifier case] Application of high voltage amplifier in pulse magnetic field analysis of energized air-core coil
- What is the function of this pin in UART mode of FT232?
- FPGA Implementation of Digital Down-Conversion