I'm done with version 2.4 (yes, I skipped a version, I'll explain later) -- I am in the process of cleaning up my editing, schematics, and zipping the files together. I should have it posted in the next day or so. The new features are pretty cool. Expect a video demo too.
I think there is something not quite right with the v2.3 code mate, the two issues I have so far are as follows.
1: The RPM reading scale is wrong. No matter how I play around with the PPR setting if I leave it at 1.0 the tickover speed is perfect but with the shift set at 10,000rpm I can't even reach that, the bike bounces off the rev limiter (13,000rpm) while the reading is at about 8,000rpm. If I change the PPR then the tickover speed goes way off.
Reverting back to v2.1 fixes this immediately.
2: This one is more puzzling and I think this may be a library issue more than your code. If I set the animation to 2 the left hand 8 segment display (This being the First 8 LED's) 'Glimmer' or 'Sparkle' (I will do a video) but it is like interference, they are not lighting up fully, just enough to see a random colour filament type effect across all 8 LED's. The other segment (last 8) do not so this. and it doesn't stop it operating they light up when and how they should.
Why I think this may be a library issue is if I revert to v2.1 it is still there so for the time being I am using animation 1 which does not display this problem.
Software wise the only thing that remains the same is the libraries. I will see if I have a copy of all the old libraries, do a complete removal of the Arduino software, reinstall and load the old libraries and let you know if this fixes it.
[Last edited Apr 10, 2016 19:51:39]
Jonduino said Apr 11, 2016 12:46:18
Hi Bryan, I'll do more investigating tonight. I'm sorry to hear you're having issues with the new code. I'll let you know what I discover. If you can take a video of that glimmer/sparkle issue too, that'd be helpful. Did you redo your segmentation when you switched animation styles? The segmentation gets erased when you switch -- also make sure you have the correct number of LEDs programmed. nLED in the menu.
Jonduino said Apr 12, 2016 02:22:38
Bryan -- I'm still experimenting.. I think something happened when I added the recent 0.1 resolution to the PPR. I'm checking to see what the issue is and I'll have a solution soon. Again -- sorry for the wait, you (and everyone) have been extremely patient with me. I appreciate your patience.
Stay tuned. I'll have an updated code soon that will fix the issue.
Don't worry about it mate, you're doing this for free so how could I possibly justify any impatience?
We all have real lives too which come first so when it's ready it's ready and I appreciate all your time and effort.
v2.1 works so no rush.
Jonduino said Apr 13, 2016 12:05:55
I did extensive testing last night and I found the problem. Can you do me a favor. Try setting the SENS mode to "FREQ" in the menu and give it a shot.
I haven't come up with a solution yet - but it's related to the Neopixel library shutting off the interrupt routines. At various points along the RPM range, the shift-light phases in and out of accuracy by varying degrees. However FREQ mode is way more accurate. I have a few ideas how to remedy this... Stay tuned.