As I’m far from an expert I could do with some proof reading and suggestions for some resistor/cap/stuff values… And also suggestions weather I need certain parts or not.
As you can imagine its not an insanely complex diagram but but if anyone can put in a little time to take a look for me, I would really appreciate it.
The attachment is just a indicator of how complex it is… Once I finish cleaning it up and putting in the values as I’ve worked them out ill upload a higher res, or even the eagle file.
Look at post below \:)
I have a few key areas I want anyone to look at as well as the whole thing…
The 1000 uf caps on the led arrays, are they really needed? The adrafruit neo pixel guide suggests they are, but I just got my caps in the post today and theyre pretty big. Are there any smaller ones i could use? Also i got electrolytic ones, Im not sure if that was right… Can anyone confirm?
Bellow the bike mains in i have my RPM signal in and opto isolator… The current assumption until i get an oscilloscope on the line is that the RPM signal will be the bikes voltage pulsing… IE 12-15v pulses to trigger the spark plug.
R2 i have no idea what to use there as the forward voltage is meant to be 1.2ish v, does it want to be a 630ohm resistor line the other short usage lines like right and left indicator? (found on the right side of the maple mini)
Are these 630 ohm resistors going to be fine reading off the raw bike voltage? Or will they go pop?
Ive also been using 7805 voltage regulators for some of the longer usage lines in like the running lights and highbeam, again the package is quite large and i rather have something smaller. But am i using them correctly? And do i need to worry about heat?
Please if you guys can have a look over
I’ve been experimenting with using spi dma to drive the neopixels, and it works really well
But I do need to keep the AINs for the voltage testers…
But I do need to keep the AINs for the voltage testers…
The opto-isolator resistor values.
R3 – You can probably get away with a higher value for R3, 1k 4k7 or even 10k would probably work.
R2 – Pick a value based on driving the LED at around half its maximum rated current based on whatever the voltage coming from the RPM signal is.
Typically with an opt-isolator, since the receiver is pretty close to the transmitter, you don’t need to drive the transmitter LED very hard.
Either check the datasheet for the PC817 for the LED voltage, or estimate using http://ledcalc.com/ and assuming a red LED (typically the IR led in an opto-isolator is pretty close in spec. to a red LED, so good enough for the purposes of our exercise). If you are unsure what the peak voltage of the RPM signal is, stick an oscilloscope on it.
Failing that, if you don’t have access to a ‘scope, put a 100k variable resistor (POT) in between the signal and ground, then slowly adjust till you get a suitable signal out of the wiper to flash a standard red LED with a 100 ohm resistor in series. Start with the wiper at the grounded end of the pot and increase the voltage gently. The POT acts as a voltage divider, and the 100 ohm resistor will give the LED a sporting chance of surviving even if you are a little over enthusiastic twiddling the POT.
Blowing up red LEDs is less painful than blowing up opt-isoplators soldered to PCBs.
Once you are happy with those values then substitute the opto-isolator and see if the smoke safely remains within the little black blob. ![]()
If, however you *know* the peak voltage of the RPM signal is say 12V then you can simply use a single resistor..
Here is an example…
http://www.sunrom.com/p/pc817-low-volta … ptocoupler

Ive got some 4.7k resistors already so ill use them on R3 and the other resistors in that type of circuit.
If 680 is a good safe bet and works well i will probably remove all the 7805s from my inputs and replace with an opto and resistor setup. Should save space, and hopefully some heat maybe?
I have a scope on the way, its a cheap Chinese DIY one im sure you all seen them… A bit noisy limited range but would do the job for me… Oh the life of the poorper, cheap chinese bike, cheap chinese arduinos and maples made with cheap chinese parts all tested on a cheap chinese scope
What could go wrong ![]()
I may not like their political system but thank god for the chinese… Or i wouldn’t have been able to do any of this ![]()
Ive got some 4.7k resistors already so ill use them on R3 and the other resistors in that type of circuit.
Ill still build this DIY one when it turns up but I might have a go at the project. And I noticed while skimming the forum threads of your that you may have got 2Mhz working
That seems great ![]()
Umm this might sound really cheaky… But do you have a finished project I could look at and maybe kinda copy, to build?


