In this project I will show you how I modded the lighting system of an old Moped (Simson S50). The old bulbs and flasher relay are just inefficient and not reliable. I added LEDs to the turn signals and brake light. Everything is controlled by the awesome Attiny85. As a bonus I also included under body lights in the circuit. Let's build it!
Step 1: Watch the Video!
This video gives you a basic idea how I changed the lighting system of the moped. But since it is kind of complex I will go through the most important steps again.
Step 2: Order Your Parts!
Here I present the parts that I used. Of course you can change the number of used LEDs, but that would mean you need to look for other resistors. Just use this list as a recommendation by me:
58xRGB LEDs (common Anode): http://amzn.to/1D0DSYS
32xOrange LEDs: http://amzn.to/1kTtWvF
8xWhite LEDs: http://amzn.to/1re3V8c
3x10kΩ, 2x1kΩ, 1x56Ω: http://amzn.to/1A2KZzi
1xLM7805 (5V linear regulator): http://amzn.to/1qKUGAC
2x10µF Capacitor: http://amzn.to/1tZRcrz
1xArduino Uno (as programmer for Attiny85): http://amzn.to/1tZNXjZ
1xIC Socket: http://amzn.to/1tZPcQ0
1xPCB (striped, we used one of those for the big resistors) : http://amzn.to/1qKV2Hy
1xPCB (copper dots, for the controller board): http://amzn.to/1r3pjRX
1xBC140 NPN Transistor:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
Silvered Copper Wire (Bridge Wire): http://amzn.to/1cjeHaH
That is quite a long list. But it will be worth it in the end!
Step 3: Build the Turn Signals and Brake Light!
We used veroboards with stripped copper traces for the turn signals and brake light, because it is easier to connect parts in parallel this way. We used a dremel and rasps to give them a custom size. This way they will fit perfectly in their cases later. You can decide how many LEDs you want on each turn signal and brake light. We chose this constellation:
Turn Signals (4 of those):
4xorange LEDs (front and back)
2xwhite LEDs (only front)
1x RGB LED (front and back)
Brake light(only 1):
18 RGB LEDs
All of the anodes must be connected in parallel. And the cathode of each color. At the end you need to solder wires to each cathode and the common anode.
Step 4: Build the Controller Board With the Attiny85!
Here you can find the schematic of the whole lighting system. This includes the circuit for the Attiny85. It is a pretty simple one with a 5V voltage regulator (LM7805) and a few pull down and one pull up resistor. I used a veroboard with copper dots for this one, because I was able to build the circuit really small.
Step 5: Upload the Code to the Attiny85!
Here you can find the code for the Attiny85. I like to use an Arduino Uno as a programmer. If you don't know how this work then take a look at my other video:
Step 6: Mount All the Parts on Your Moped and Wire Everything Up!
The title says it all. You can put your switches wherever you want and don't have to use the same technique that we use. Just follow the schematic and everything will work out in the end.....hopefully!
Step 7: Success!
You made it. You just modded your own Moped. Whether this is street legal is another question, but still pretty awesome!
Feel free to check out my Youtube channel for more awesome projects:
You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information.