element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Open Source Hardware
  • Technologies
  • More
Open Source Hardware
Forum [ DIY ] Bicycle powered flashing LED
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Open Source Hardware to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 308 subscribers
  • Views 1701 views
  • Users 0 members are here
  • bicycle
  • circuit
  • diy
  • led
  • Design
  • cabeatwell
  • led_lighting
  • leds
Related

[ DIY ] Bicycle powered flashing LED

Catwell
Catwell over 13 years ago

A friend of mine wanted to get into building electronics with a simple project. In particular they wanted to make a flashing LED for their bicycle that would be powered when they pedal. I liked the simplicity of the circuit I made, so I thought I should share it with element14.

 

 

The requirements were as follows:

1. Flashing LED

2. Must be powered only when pedaling.

3. Simplest circuit for beginners.

 

An excerpt from my reply:

"You can get LED flashing lights for bikes under $5. However, if you want to make one, that is easy. Get a bicycle dynamo (bike generator). This outputs "X" voltage at its peak. I suggest ebay for a cheap one.

Reading the data sheet of the LED you want to use you will find values called Voltage Drop and Current Rating.

You will use ohms law V = I * R (voltage = current * resistance) to find a proper resistor for the LED.

It simplifies to V/I = R or R = V/I

Take the voltage drop and subtract that from the peak supply. (lets say the dynamo outputs 6V and the LED voltage drop is 2.1V)

You would take 6V - 2.1V = 3.9V

The current rating is the maximum current you can safely pass through the LED without destroying it.

Let say the data sheet says 20mA. (or 0.020 A)

R = 3.9V / 0.020A = 195 ohms (Closest typical value of resistor, I suggest 220 ohms)"

 

A bicycle dynamo outputs AC power, 6V 3W is a typical output of one.

This changes a few things. 6V AC is the RMS value. The peak of the AC sine wave is 6*sqrt(2) = 8.5V

Then, when rectified, the voltage drops across 2 of the diodes at a time. At about 0.7 volt drop each, you get (8.5 - (2*0.7) = 7.1.)

 

So, let's say you will see a round 7V DC source at that time. So the above LED resistor calculation changes.

7V - 2.1V = 4.9V

R = 4.9V/0.020A = 245ohms (I recommend a 270 ohm resistor)

 

AC is rectified through a full wave bridge. (see drawing)

 

"Now for the part that makes the LED flash. I will avoid ICs and go with a simple RC oscillator circuit to turn a transistor on an off.

The 1K ohm resistor and the 330uF cap causes the transistor 2n2222 to avalanche on the emitter-base junction. (I will explain more about this another time)

What is does is causes the transistor to turn on and off."

 

"Simplest bike generator LED flashing circuit, I can come up with, that will only flash when you are moving. If the dynamo is on the bikes wheel. Place the dynamo along the chain or pedal sprocket to get it to flash only when you are pedaling."


image

Dynamo (ebay)

1Kohm resistor1Kohm resistor

270ohm resistor270ohm resistor

330uF capacitor330uF capacitor

(4) 1N4007 Diodes1N4007 Diodes

2N2222A transistor2N2222A transistor

2.1 forward drop Power LED2.1 forward drop Power LED (I chose a red LED. My friend wanted this for a tail-light.)

 

 

 

 

Now for the electric bike....

 

Cabe

  • Sign in to reply
  • Cancel
  • DAB
    DAB over 13 years ago

    Hi Cabe,

     

    Reminds me when I bought a generator light for my bicycle when I was 10.  Of course in those days, we just used the ac to power an incandescent bulb, but it made the bike more visible in the dark and dusk.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fustini
    fustini over 13 years ago

    Great post, Cabe.  Nice to see some simple DIY solutions to solve common problems.  BTW, I was curious about how the avalanche transistor works and found this video which features a sharp-lookin' vest:

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

     

    Cheers,

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube