Members | Sign In
Chippernut Forums > Shift Light v1
avatar

OEM-like Integration

posted Dec 22, 2014 17:22:47 by MattKriebs
Chippernut, this is simply amazing. Thank you for taking the time to make this available to the public for no cost.

I am an unfortunate kind of person with no skill when it comes to code and assembly, but I have a brain that works like a horse.

I had an idea today which ultimately led me here, and I am so thankful for being led here. My idea is an OEM-like integration in an unlikely place. This would be behind the mirror plate of the rear view mirror. This will be going in my Solstice, in a mirror that actually came from an Escalade (for reasons I won't get into much detail here unless people are interested, but it involves and OEM-like integrated 1080p dash cam).

Now, I have a couple questions as I am not terribly familiar with Arduino code (know what it is, not how to write it). Is the function of the LED embedded in the code? For example, my ideal shift light, since it would be in my periphery would be more lights and only unidirectional. For instance, it would go only left to right and would span the width of the mirror, I would assume I could get 20 or so LED lights in there. Is it embedded in the code the direction that the LEDs activate? Example being Chippernut's in his IS300, goes from center out.

Would this be simple to change, or would it involve changing the coding and the wiring schematics? Or is it simply done in which order the LEDs are wired in?

Thanks for all the help, I am truly excited about this project.
page   1
6 replies
avatar
Jonduino said Dec 29, 2014 01:20:20
Good idea, MattKriebs! That's a good location as well; I don't think it would be overly difficult to mount the LED's behind the mirror/screen like you suggested.

Yes - the order in which the LEDs ascend is coded - not wired. Re-working this to ascend in one direction wouldn't be hard at all.

The LEDs are digitally addressable. So you basically code it to say "LED number 3, turn on green" and it lights the 3rd LED up and no others. The wiring all stays the same.

In the code, look toward the bottom for the following.

if ((rpm-activation_rpm) > (segment_int * 7)) {
strip.setPixelColor(0, color3);
strip.setPixelColor(15, color3);
}
else {
strip.setPixelColor(0, strip.Color(0, 0, 0));
strip.setPixelColor(15, strip.Color(0, 0, 0));
}




You should see eight of these. Each one corresponds to a different "segment" or 1/8th of the bar-graph. (there are 16 LEDs, but light from the center outward).

In order to make this unidirectional, you'd have to duplicate this code for 16 segments (or however many NeoPixels you're using) and then modify the "segment_int" and pixel addresses.

So you're first few segments would look something like this. Note: the NeoPixel's first LED is addressed as "0".

// LED #1
if ((rpm-activation_rpm) > (segment_int * 1)) {
strip.setPixelColor(0, color3);
}
else {
strip.setPixelColor(0, strip.Color(0, 0, 0));
}

// LED #2
if ((rpm-activation_rpm) > (segment_int * 2)) {
strip.setPixelColor(1, color3);
}
else {
strip.setPixelColor(1, strip.Color(0, 0, 0));
}

// LED #3
if ((rpm-activation_rpm) > (segment_int * 3)) {
strip.setPixelColor(2, color3);
}
else {
strip.setPixelColor(2, strip.Color(0, 0, 0));
}




I hope this helps. Future iterations of the shift-light will have the LED sequencing as an option in the menu.

- jon
avatar
MattKriebs said Dec 29, 2014 01:32:03
Yes! Thank you so much, that helps a great deal. I am excited to see how this goes.
avatar
Lowrydesign said Dec 29, 2014 17:12:58
Matt, I in fact wanted to do the same led light up pattern on my project, I will be interested to see how yours turns out as well.
[Last edited Dec 29, 2014 17:13:33]
avatar
MattKriebs said Dec 29, 2014 17:35:16
This has been put on hold due to an accident in the car, need to get the body work done then will be back on it.
avatar
Lowrydesign said Dec 29, 2014 17:42:33
Oh no. That is a shame. Keep us posted and good luck.
avatar
FrankCisco said May 03, 2016 16:05:01
MattKriebs

Where you able to get the project going? Your idea seem really good and im thinking i might go that way when i get my kit. I was thinking maybe a two way mirrow might help.
Login below to reply: