宋元浩

Bicycle tail light

 
Overview

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:

 

 

 

 

 

 

ckjmDuCvLU42Hgt5zZ8MIXMrgkAAj02u26oJ2PU3.jpeg

 

 

 

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

Clg09BdraaQfBqPFASQNq7D7HwpLjaL6GcGfMR3W.png

 

 

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

Dur0jiIiTaZm9Ttj3n37vhpKc4JTjiUrls2M1tPS.png

3hp7HR99kB1DxVB7tThCFYfnnboSGVQ8JEWSvgW5.png

PR2Izhy3OmcSqfF9Cf6r4H4epdgTc1NMxR2Fnu7i.png

TvRXr4B60ddHDJsooh9Jachcou3JGrdZIDJTVdGI.png

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 15:16:25
  • Arm programming tutorial
  • F28035 loading CLA symbol problem
  • PCB
  • STM8S Vcap issues
  • It seems that a problem with gcc compiling threadx has been discovered
  • Atmel Launches Low-Power, High-Performance 8-bit AVR RISC MCU for Automotive Applications

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

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号