โปรเจกต์ ไฟจักรยาน Blinking ด้วย LED
กด button เพื่อเปลี่ยน program การ Blinking ของ LED ด้านหน้า 4 ดวงและด้านหลัง 3 ดวง: ON/BLINK1/BLINK2/OFF/
กด button เพื่อเปลี่ยน program การ Blinking ของ LED ด้านหน้า 4 ดวงและด้านหลัง 3 ดวง: ON/BLINK1/BLINK2/OFF/
I have a large cargo bike and I wanted to make sure that I can be seen from all sides during night. To be more visible I wanted to have blinking lights. But of course I also wanted to be able to turn off / on the LED lights.
By pushing one button it is possible to scroll trough 4 programs:
1. When the battery is connected all lights are turned on.
2. Program 2 is a blinking program. Here half the LEDs are turned off and the other half turned on. With that program the permanent current consumption is half. Blink period is 200 blinks/minut. (Can be adjusted in the program)
3. Program 3 is also a blinking program. Here all LEDs are turned on and off at the same time. Blink period is 200 blinks/minut. (Can be adjusted in the program)
4. All LEDs are turned off.
As mentioned above it is possible to get back to turn on all LED lights by pushing the button again and scroll trough the programs.
All LED's were found on the road, when cycling trough the city. You know the cheap silicione type with 3V flat batteries in it. The battery is often flat, but the LED's are great and for free.
To find the right resistor I actually used potentiometers. Max. allowable output current on a Arduino nano are 40mA. Depending on type of LED I used 20mA to 40mA. Of course livetime is shorter, when you run the LED with higher current. But until know all the LEDs I used managed the high current of 40mA.
ALL LED's on the hardware page are just for information. I did not test them with. I just "guessed" some resistors that could fit.
สนับสนุนเพื่อรับ Source Code หรือแอปพลิเคชันสำหรับโปรเจกต์นี้