Footwell lighting
11 Attachment(s)
Hey guys, figured I'd post some info on how I added some footwell lighting to my Evo X. Here's a quick video of the finished thing:
I am alternating between 3 brightness levels and my "rave" mode with the button on the left of the cluster of 3: Attachment 326238 I wanted to keep it as clean and OEM looking as possible. So I replaced one of the blanks on the center console. I bought an AWC switch on eBay for $15. I did paint it black to cover the AWC icon. Maybe using a flat black instead of gloss would work better. The trouble with this switch is that it isn't really a switch. When you press on it, there are copper brushes in the top part that move down and complete a circuit with the copper prints. When you let go, the circuit is disconnected again. So it isn't stateful. Attachment 326239 In order to use that as a switch, you need a way to flip voltage on or off based on a short-lived circuit continuity change. You need a "latching relay". But that would only get you an on/off switch, with a single color. If you wanted multiple modes/brightnesses, you would need more relays, or a multi-mode latching relay. I was only able to find a dual state latching relay, and it was like $15, and only had 2 states. So instead, I looked into using an Arduino. It's a neat little programmable chip with lots of inputs and outputs. This little device allows you to program it any way you want, to have any number of states, and to pick and choose the color, intensity, rate of change, etc. It's really awesome. This is the module I came up with in the end: Attachment 326240 You can see the OEM switch on the left, the 4 LED connectors for each corner of the car, and input power from the car. Here's a closeup of just the board: Attachment 326241 Basically, what happens is that power comes in from the right, and goes through a 9V regulator to drop 12-14v to 9, then a 5V regulator to drop it down to 5, which is what Arduino runs on. An Arduino could handle more, but I've read they could get fried, so I played it safe and dropped it all the way down to 5V. The large black things are heat sinks to dissipate the heat of dropping the voltage. This 5V will power the Arduino nano itself. The main meat and potatos of this little device are the transistors. Since the Arduino can only output 5V and it cannot power the LED modules, what I had to do was to feed the full 12-14V to the LED modules. But to control the color as well as the brightness, I still need to control the voltage going to the LED modules. This is where the transistors come in. They are pretty much valves. You connect input to one pin, output to the other, then a signal wire - the arduino - to the third pin. The Arduino then does things like controlling which of the R/G/B colors will be sent, as well as any Pulse Wave Modulation: this is how you make LEDs brighter or darker, by very quickly turning power on and off, or leaving it on for full brightness. I'm not sure if much of the above makes sense, it's something you just go through if you're interested enough. As far as the physical connectivity, here is how I installed the module and LED lights: I velcroed the module to the side of the center console, on the left of the shift lever. Obviously I made sure no wires would come close to the shift linkage, so lots of use of zip ties and velcro straps. Attachment 326242 For power, I spliced into my Axxess harness for the Pioneer 2din radio, and a grounded screw: Attachment 326243 I can still take everything back to stock with no sign of anything having been installed, which I like. The LEDs came with double sided tape, but I used my own 3M tape. If they fall off, I might use hot glue. The camera was literally on the seat. They aren't visible when sitting normally. Attachment 326244 These are the LED modules I used, and the connectors I got off ebay for $3 for a pair of 5: Attachment 326245 Attachment 326246 Each transistor outputs power for one of each of 3 colors: red, blue and green. So naturally, you'd need to split each wire into 4 for each connector: Attachment 326247 And here's the general wiring layout of the setup Attachment 326248 And my Arduino source code below. The neat thing about this is that you could leave a miniUSB cable connected to it, and run it into the glovebox or something, then connect a laptop to the other end and upload different code to change the color or add more brightness options, or change the rave mode. You could even add a potentiometer (a knob) to change the color in real time. Leave it lying in the glove box or something. The possibilities are literally endless. But for now, I can get a good look at my floor, and maybe even have some fun while playing some music so I'm pretty happy. And yeah, you could buy a ready made kit, but you'd have to use a silly remote, whereas here I press an OEM looking button already there. Those kits can cost a pretty penny anyway, and I learned a lot through this process, and already have a few other ideas. Code:
// Here instead of just togging on/off, we will toggle between these modes: |
Looks good. Nice utilization of the Arduino! Those things are so versatile. Definitely adding this to my future mod list.
|
Damn bro, what a committed post
|
Nice job.
|
Looks awesome definitely adding it to mine also!
|
Next time maybe consider using a seat heater switch (fits) and you would have two lighting modes but would be much simpler/easier.
|
Love the DIY spirit and it's always good to see another Arduino project posted up with plans/code but that's total overkill for the application when off the shelf stuff is out there....$18.25 (Newegg)
https://cimg0.ibsrv.net/gimg/www.evo...51358debf7.jpg |
Yeah I knew pre-made stuff was around. Like I said, I wanted it clean. Didn't want to fiddle with remotes or apps. Just an OEM looking button right there on the center console. to do exactly what I wanted
Plus it was a chance to learn something. I have a few other projects to do next, stuff I might even sell on Amazon or something. The process was probably more important than the finished product. You learn about electronics, soldering, circuit design, find out about apps that help you create a circuit and translate it onto a PCB, learn about companies that will print PCBs out for you for cheap. The possibilities with stuff like this are pretty exciting. Besides, I don't want to just be a consumer, having everything made for me. |
11 Attachment(s)
It痴 2020 and I知 finding this today.... great write up I知 doing some to see about using a rgb led bars to control the logic. The android 10.2 screen has app capability might be able to bypass a hard switch and fully control ambient lighting thru raspberry pi.. just a thought I値l return with progress and share prints as I get along.
QUOTE=fafaforza;11710142]Hey guys, figured I'd post some info on how I added some footwell lighting to my Evo X. Here's a quick video of the finished thing: I am alternating between 3 brightness levels and my "rave" mode with the button on the left of the cluster of 3: Attachment 323890 I wanted to keep it as clean and OEM looking as possible. So I replaced one of the blanks on the center console. I bought an AWC switch on eBay for $15. I did paint it black to cover the AWC icon. Maybe using a flat black instead of gloss would work better. The trouble with this switch is that it isn't really a switch. When you press on it, there are copper brushes in the top part that move down and complete a circuit with the copper prints. When you let go, the circuit is disconnected again. So it isn't stateful. Attachment 323891 In order to use that as a switch, you need a way to flip voltage on or off based on a short-lived circuit continuity change. You need a "latching relay". But that would only get you an on/off switch, with a single color. If you wanted multiple modes/brightnesses, you would need more relays, or a multi-mode latching relay. I was only able to find a dual state latching relay, and it was like $15, and only had 2 states. So instead, I looked into using an Arduino. It's a neat little programmable chip with lots of inputs and outputs. This little device allows you to program it any way you want, to have any number of states, and to pick and choose the color, intensity, rate of change, etc. It's really awesome. This is the module I came up with in the end: Attachment 323892 You can see the OEM switch on the left, the 4 LED connectors for each corner of the car, and input power from the car. Here's a closeup of just the board: Attachment 323893 Basically, what happens is that power comes in from the right, and goes through a 9V regulator to drop 12-14v to 9, then a 5V regulator to drop it down to 5, which is what Arduino runs on. An Arduino could handle more, but I've read they could get fried, so I played it safe and dropped it all the way down to 5V. The large black things are heat sinks to dissipate the heat of dropping the voltage. This 5V will power the Arduino nano itself. The main meat and potatos of this little device are the transistors. Since the Arduino can only output 5V and it cannot power the LED modules, what I had to do was to feed the full 12-14V to the LED modules. But to control the color as well as the brightness, I still need to control the voltage going to the LED modules. This is where the transistors come in. They are pretty much valves. You connect input to one pin, output to the other, then a signal wire - the arduino - to the third pin. The Arduino then does things like controlling which of the R/G/B colors will be sent, as well as any Pulse Wave Modulation: this is how you make LEDs brighter or darker, by very quickly turning power on and off, or leaving it on for full brightness. I'm not sure if much of the above makes sense, it's something you just go through if you're interested enough. As far as the physical connectivity, here is how I installed the module and LED lights: I velcroed the module to the side of the center console, on the left of the shift lever. Obviously I made sure no wires would come close to the shift linkage, so lots of use of zip ties and velcro straps. Attachment 323894 For power, I spliced into my Axxess harness for the Pioneer 2din radio, and a grounded screw: Attachment 323895 I can still take everything back to stock with no sign of anything having been installed, which I like. The LEDs came with double sided tape, but I used my own 3M tape. If they fall off, I might use hot glue. The camera was literally on the seat. They aren't visible when sitting normally. Attachment 323896 These are the LED modules I used, and the connectors I got off ebay for $3 for a pair of 5: Attachment 323897 Attachment 323898 Each transistor outputs power for one of each of 3 colors: red, blue and green. So naturally, you'd need to split each wire into 4 for each connector: Attachment 323899 And here's the general wiring layout of the setup Attachment 323900 And my Arduino source code below. The neat thing about this is that you could leave a miniUSB cable connected to it, and run it into the glovebox or something, then connect a laptop to the other end and upload different code to change the color or add more brightness options, or change the rave mode. You could even add a potentiometer (a knob) to change the color in real time. Leave it lying in the glove box or something. The possibilities are literally endless. But for now, I can get a good look at my floor, and maybe even have some fun while playing some music so I'm pretty happy. And yeah, you could buy a ready made kit, but you'd have to use a silly remote, whereas here I press an OEM looking button already there. Those kits can cost a pretty penny anyway, and I learned a lot through this process, and already have a few other ideas. Code:
// Here instead of just togging on/off, we will toggle between these modes: |
Originally Posted by Bobby_RHD
(Post 11920040)
It痴 2020 and I知 finding this today.... great write up I知 doing some to see about using a rgb led bars to control the logic. The android 10.2 screen has app capability might be able to bypass a hard switch and fully control ambient lighting thru raspberry pi.. just a thought I値l return with progress and share prints as I get along.
If I have time over winter, I might tackle making a volume knob for my Pioneer HU. Basically using a rotary encoder for the knob, then having an Arduino read the rotation and send different resistance over the 3.5mm jack to the radio. Pressing buttons for volume is just so stupid. |
All times are GMT -7. The time now is 12:57 PM. |
© 2024 MH Sub I, LLC dba Internet Brands