In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
The design of light-controlled street lamp based on single chip microcomputer includes program and simulation diagram.
This design is based on the ability of the photosensitive resistor to sense the external light intensity as the basis for the street lamp automatic control system design. When the light intensity is weak to a certain extent, the street lamp will go out automatically; when the light is strong enough, the street lamp will be turned on automatically. In this design, when the external light intensity is so weak that the resistance of the photosensitive resistor is greater than or equal to 200ohm, the LED lamp will be turned on automatically; when it is less than 200ohm, it will be turned off automatically. The complete information can be downloaded free of charge in the intruder Network Technical Forum, data group: 613377058
Download address: https://bbs.usoftchina.com/thread-210514-1-1.html
Catalogue
Abstract
Introduction
I. objectives and tasks
Second, hardware design
2.1 composition of main modules
2.2 Circuit design
2.3 system flow
Third, the software design of the system
3.1 detailed steps
3.2 specific programming
3.3 system software execution flow
IV. Conclusion, design and debugging
4.1 conclusion
4.2 the main problems encountered in the process of curriculum design and their solutions
5. Experience
VI. References
Appendix (simulation diagram, source program)
I. objectives and tasks
This design is based on the characteristic that the photosensitive resistor can change its resistance value according to the intensity of external light (the stronger the light is, the smaller the resistance value is; the weaker the light is, the greater the resistance value is). The principle is to use the photosensitive resistor to feel the external light intensity and reflect it in the change of its own resistance value, and then judge the external light brightness according to the resistance value, and then judge whether the LED should be on or off according to the obtained data. That is, when the external light intensity is so weak that the resistance of the photosensitive resistor is greater than or equal to 200ohm, the LED lamp will be turned on automatically; when it is less than 200ohm, it will be turned off automatically.
Second, hardware design
2.1 the main modules are composed of:
(1) photosensitive resistance induction module and AD/DA conversion module
The so-called AD/DA conversion is analog-to-digital / digital-to-analog conversion, and what we involve in this design is ADC (analog-to-digital conversion).
PCF8591 is a converter with IIC bus interface of 8-bit A / D and D / A, with 4 input channels and 1 output channel.
Here, the design uses PCF8591 to realize the function of ADC to convert data and connect to IIC bus.
Its pins:
1) ANI0~ANI3 is the input of analog signal and is grounded when it is not in use.
2) SDA is the data input and output terminal of IIC bus
3) SDL is the clock input of IIC bus
4) VREF is the reference voltage input
The principle is as follows: the photosensitive resistor obtains data by sensing the light intensity of the outside world, inputs data through the ANI0 port (data input port) of PCF8591, and converts the induction data into digital data by ADC (analog-to-digital conversion).
The simulation pictures of AD/DA module and photosensitive resistance induction module are as follows:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.