# Intelligent Adjustable Brightness Desk Lamp## Preface The 2021 College Student Electronic Design Competition was postponed to November due to the epidemic, which gave us lower-grade students longer time to prepare. The four days and three nights of the competition were very tiring and torturous. , there were many problems and disagreements~~Why should I do software if the hardware can solve them~~, but in the end they were all solved one by one, and we also achieved a good result like National Second Grade. ## Team member | Name | Position | Professional | | :---: | :---: | :---: | | T18-1 | Captain | Communication technology | | cmmsi | Hardware | Intelligent terminal | | CT -TD | Software | Smart Terminal | We are all from Fujian Information Vocational and Technical College~~The three of us are really too strong~~ ## Competition question![image.png]
![Screenshot 2021-12-30 102205.png ]
### Difficulty analysis It is not difficult to see that the difficult part is actually the fourth point of the basic part and the first point of the performance part. For the sake of stability, we directly stabilize the voltage to 9.5V after the power is input. The result is an explosion of power consumption and the final efficiency is only around 70%, but the benefits are also considerable - desk lamp The brightness is very stable, no matter how the subsequent voltage changes within the specified range, the brightness of the desk lamp can be stable within the specified range. ### According to the title, we have not completed the basic 4th point and the 1st point of performance, but the other completion points are pretty good. It can be seen as us exchanging the upper limit for the lower limit. In the end, we spent almost a day tinkering with it and it still looked the same. During this period, we even made a lampshade. Unfortunately, there was no skeleton, otherwise it would really be a desk lamp~~The desk lamp looks like a desk lamp, but it's okay~~. ### Hardware ideas! [Table lamp.png]
### Software functions* Realizes automatic brightness adjustment and can set the brightness (0-1000) * Can manually adjust the brightness* Can be turned off at a scheduled time ### Matrix keyboard function! [Screenshot 2021 -12-30 150828.png]
## I feel that I can win the prize this time. It is pure luck~~ I would have bought sports lottery if I had known it~~. During the summer vacation, we made a bold decision - no matter what the topic is, as long as it involves illumination, we will do it~~ We don’t have enough money to answer so many questions~~. The software of the illumination module is even ready (although it is for 89c52. 8A8K has IIC registers, but we can still see it by shaking the IIC by hand). Despite this, we still encountered a lot of trouble - we did not prepare the LED driver circuit. Our first reaction was to go to the school warehouse to find it, but the school teacher told us that schools generally do not have these. This is undoubtedly Pour a basin of cold water on us~~I dreamed about the exam questions but didn’t feel like I had a pen~~. We didn't know how to proceed at one point, but fortunately we suddenly came up with the idea of using a motor driver to drive LEDs. Looking back, perhaps it was our original decision that saved us from taking many detours, and perhaps it was this courage to risk everything that brought us success.