Bicycle tail light 51822 master control, because I have it on hand, the light uses a single color 3528 patch, the color is random, I plan to use pink. The diameter of the circle is 28mm, which is very small
There is a TP4056 lithium battery for charging. I plan to use a small lithium battery. The charging interface is TYPE-C.
In addition, the important MPU6050 six-axis sensor is the core. There is a motion module in the MPU that can control braking, left turning, right turning, etc.
The program hasn't been written yet, so don't panic at all. Just wait and see. Once it's done, you can come back and take a look.
2021-7-5, 18:19 stay
Damn it, it didn't pass the review, and it didn't tell me where the problem was. I just threw a help document and I have a thread for it.
2021-7-6,9:37
Special attention!!!!!!! N76E003 requires a downloader to download. Ordinary serial port cannot be used to download the IAP firmware without burning it.
The previous version was too difficult to solder the QFN chip, so it has been revised now, and the circle diameter has been changed from 28 to 42mm, the lamps are double, the lamp size is 3528 or 2835, the main control has been modified to the N76E003 I have, and the MPU6050 module is used
A big brother said that you need to add a solar panel, so I will lead out the 5V for you. You only need to ensure that the voltage of the solar panel is within 8V (the maximum input voltage of TP4056 is 8V, if it exceeds it, the 4056 will be burned). Generally, you need your solar panel The voltage is preferably 4.5-7.5V
The program has not been written yet, but the hardware test is OK. After the program is written, you can make samples and choose materials. Don't type or buy materials now.
2021-08-10, 15:48 stay
The following is a physical display:
Warning, the chip cannot be recognized. I have replaced several chips. I will try to solder a separate chip tomorrow to see if there is a circuit problem.
2021,08,11; 14:12stay
The problem is solved. Because the interrupt pin of MPU6050 is connected to the downloader, just delete the MPU6050 interrupt pin.
Also, don’t touch the board yet. I’ll look at changing the size of the lamp beads. There is a 5730 that seems good, and this 3528 (2835) seems to be just fine.
Of course, you can first complete the basic functions before changing the LED size, or you may not change it at all.
2021,08,12 13:08 stay
There is no way to control the brakes. I can't figure out how to judge the brake control. The bicycle must be vibrating during operation, which will cause the acceleration of all six axes to jump. It is impossible to judge whether it is braking or not. Could it be that they use a separate sensor (such as Is mercury measured by placing it in a horizontal position?
The completed lighting effect now is: (The degrees here refer to the degree of inclination, not the absolute angle)
1) The normal breathing light is between turning 10 degrees left and turning 10 degrees right
2) Turn left 15 degrees, the 4 lights on the left will flash; turn right 15 degrees, the 4 lights on the right will flash.
3) Turn left 30 degrees, the single pointer turns left; turn right 30 degrees, the single pointer turns right
4) Turn 40 degrees left and 40 degrees right, all lights will be on
For details, you can check out the attached video. I don’t know how to insert the video into the text.
2021,08,14; 23:15stay
The program function adds motion detection. Shake it left and right to enter the normal mode (that is, sports mode).
At rest (note that it is still), it will exit the sports mode in about 8 or 9 seconds and turn off all the lights.
During driving (in sports mode), as long as there is acceleration, it will always be in motion. It will not exit sports mode until the inclination angle and acceleration are almost unchanged (stopping).
2021,08,15 ; 11:49 stay
It was my first time to draw a shell, and I found that the shell was very well drawn, and the sizes were almost the same, but it was the lid. . . The cover is so thick. I thought it was too thin. I misjudged it.
And the finished product is quite big.
In addition, this light consumes a lot of power, which really makes me miserable. Not only do I have to get in the car to adjust the steering, but I also need to reduce the power consumption.
2021,08,19; 18:40 stay
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet