Wednesday, April 20, 2016

This to Fit This

This is a job I am not particularly looking forward to as there are a lot of wires to redo and reroute in order to make room for the blue plastic Gauge Cluster housing I modified to fit the Arduino Mega Enclosure, 16 Channel Relay Module and additional NAIS Relays Module.

Way back when I first started this project I was really not sure how many Relays I was going to need or really any sort of direction as to how to go about hooking them up. Now I have a lot more experience with this stuff and a lot more of a structured direction to go in. Like I say it's not a job I am looking forward too but the upshot will be that when I am done the install will be a lot cleaner and easier to manage. It's going to be a real wiring "Knightmare" though. ;)

Monday, April 18, 2016

Relays Labeled

I have all of the 16 Channel Relay Modules Relays controlled by the Arduino Mega labeled so that way I can know what they are at a glance even though I also have the wires going to each on the low voltage input pins labeled too having the tops of the relays visibly marked helps things a lot too. I figure this will make the job of connecting the switch side of each 10 amp Relay up to it's corresponding device a lot easier. The funny thing is that many of the Relays I don't even have a device to hook up to them yet, but it's sure nice knowing that the initial framework is all in place and ready for very easy hook up when I do eventually have the devices to hook up to them.... and that my friends saves a boat load of work to do in the future right? ;)

Saturday, April 16, 2016

A Smaller Relay Module

Some of you may recall way, WAY back when I first started my dash install I had a series of NAIS relays mounted onto a piece of Lexan plastic that I installed in the area where the old Gauge Cluster used to be. If not maybe this image might refresh your memory a little ;) One of the reasons I had done it this way was,
one: I was not sure how many Relays I was going to need,
two: I was not really sure how to go about hooking up any devices I was going to want to install which also meant not knowing how many Relays were going to be needed too. So needless to say I was a little all over the map in some areas and fairly indecisive as to what direction to go in. So I went with the idea of;
"I would rather have too many than not enough."

Eventually as this project progressed and I started developing my own Dash Software (Knight O.S.) things started to become a little more clear as to how many and what sort of Relays I would need. So I pulled the old Gauge Cluster housing out of "Mothballs" and began modifying that to house the Arduino Micro Controller and some Relay modules.

I took about 6 of the NAIS Relays and soldered them onto a piece of Proto-board along with screw terminal blocks that will serve and the low voltage inputs to trigger the magnetic coil of each Relay. I then soldered on some 18 AWG wire for the outputs on the switch side of the relays. I soldered some pretty thick tracks onto the photo-board to make sure I had more than enough to drive any current the Relays are capable of, probably went a little "over kill" but what the heck, you know me..... lol or you should by now. ;) I took the extra precaution of reinforcing the wires soldered onto the photo-board by applying a good coat of fibreglass resin on the tracks side of the board and the top side. rest assured those soldered connections are going nowhere. ;)

I then took a strip of high density foam rubber that has a sticky back side and applied that to the track side of the board. (See Left)

I then mounted the newer more compact relay module into the Gauge Cluster housing like this. (See Right) 
With that all hooked up in there nice and neat that will give me 6 more additional Relays to use if I need them. I still need to mount in the 5 pin Relay that is used for the Headlights & Running Lights, but I should be able to work that into this scenario. I'll keep you posted on what I do for that.

Wednesday, April 13, 2016

Arduino Module

Lots of soldering wires today for the Arduino Module to control the 16 Channel Relay Module. There are lots of connection still to have wires soldered to when I get another Relay Module. As it is it's pretty crowded with wires and I have that project box pretty stuffed, but neatly stuffed. I'll take to top off in a later post and show how it's all put together. Depending on how much stuff you want our Knight O.S. software to run will really determine how stuffed your project box will be. My guess is that if you wanted every device hooked up you would need a bigger project box to make room for all of the wires as they take up a good deal of space.

As you can see I have my wires for each of the Arduino pins that they are connected too so I can track which one goes to which of the Relays on the 16 Channel Relay Module. If all goes according to plan I may very well be able to install this Arduino Module and the 16 Channel Relay Module into the blue plastic Gauge Cluster housing that I spent the better part of this morning cutting out all of the "greeble" to make usable space inside of the old Gauge Cluster housing. That was a time consuming and messy job that involved lots of cutting with my Dremel Tool.

Here is a shot of the old Gauge Cluster housing all cleared out to make space for the Arduino & Relay Module. I should be able to mount those other Relays I have installed under the dash into this thing too and it should make my install a lot cleaner of a job. ;)

Here is a shot of the Arduino Mega with the Connections "Hat" I made with the wire connections soldered on for the 16 Channel Relay Module, LDR Sensor, Temperature Sensor and Compass Module & Compass LEDs. As you can see if one wanted to hook up all of the other pins you would probably need to make some holes in the sides of the Project Box or use a bigger Project Box to contain it all. But even a bigger Project Box will still fit quite nicely into the blue plastic Gauge Cluster Housing area.


Tuesday, April 12, 2016

Arduino Mega Connections Hat

So in an effort to try and make things a little more compact and try and eliminate a lot of the "Spaghetti Wires" scenario which is a little difficult when you have so many connections like this. I'm giving this idea a shot, it's basically an offshoot idea as to what you have seen in my previous posts with the Connections Proto-Board I had been experimenting with. It's basically all that just turned into an "Arduino Hat." The "Hat" is then connected to the Arduino using Header Pins instead of all of those loose flying "Spaghetti Wires." I mean I'll still have wires but they will be coming off of the "Hat" and then going into Molex Connectors.

I had a pretty easy time soldering in all the header pins to the piece of Proto-Board I had cut the the right size to fit on top of the Arduino until I got to the last row of pins. As it turns out on my Arduino the one row of female sockets closest to the USB connector was offset by just half a hole spacing on the Proto-Board so when I got to it I thought: 
"Oh great! Now what am I going to do?"
 Luckily I came up with a solution. I used a very fine bit on my Dremel to drill tiny holes between the existing holes on the Proto-Board and then used another fine bitt to grind off the copper solder pads around the holes. I then soldered on the header pins into the newly drilled holes and uses fine wire clipping from component wires to run the solder to the "offset" holes in the next line. I used my Multi-Meter to make sure there were no shorts as it was a tricky soldering job that anyone following hopefully will NOT have to contend with. I was just unlucky enough to get an Arduino that had this slight manufacturing flaw. Either that of maybe it fits the factory made "Proto-Shield Hats" better?? I guess I'll find out when the two I ordered off eBay finally arrive ;) In any event I was able to work around it and create my own "Proto-Shield Hat" that I can solder my Optocouplers, Resistors and Jumper Wires on too.

Here is a diagram work in progress of what I am working towards with this idea.
I soldered in the Optocouplers and the 10K Resistor for the LDR Sensor. You can see here in these two photos that it was a pretty delicate job but just took some patience. lol I don't think the six cups of coffee helped much for having a steady hand so I had to brace my hand against my work bench just to keep it stable ;)

I may need to solder in a couple more Optocouplers as I may need them for screen transition requests via a Switch Pod button or some other button. I have the room on the "Hat" I'm making so a little forethought in that area might be handy ;) The Optocouplers currently on the "Hat" are for the Left & Right Turn Signal indicators in the Knight O.S. interface. 2 others are for Forward & Backwards direction indicators (Currently not set up), One is for the Manual Override Screen Request, and the other is for one of the Environment Scan Screen Requests. The Optocouplers take either a 12V Positive or Ground to trigger a 5V ground on the Arduino and are completely isolated from the 5V Arduino.

Sunday, April 10, 2016

Arduino Connections Module Reworked

I reworked the Arduino Connections or Optocoupler Combo Board as I was not totally happy with how a lot of it was arranged. Chances are I'll probably rework it even more yet as my thought lately is to turn it into a "Hat" using header Pins. I have a couple of Proto-Shields on order from eBay but they will take their sweet time getting here for sure so I don't mind doing some experimenting with some Proto-Board to test out my ideas.

I reworked the schematic for my Proto-Board too just in case anyone has been following along and want to do the exact same thing. I find it handy to keep these diagrams around just so I have a record of my progress, what worked, what didn't work, what needed tweaking and just what the heck all the pin outs are for these little projects as they can get pretty complicated at times. ;)

Friday, April 8, 2016

HMC5883L Digital Compass Installed In Upper Console

I installed the HMC5883L Digital Compass into the Upper Console, I struggled long and hard for s good starting place to install this very tiny sensitive device. You are supposed to keep them away from wires and metal, lol well good luck with that as where in a car can you install something like this that it's not going to be fairly close to some sort of metal or electrical wires. I thought about somewhere in the dash but again same problem plus that area is close to the Engine Bay so I figured "Nay Nay" on that idea.
The trunk area I thought but then I'm running an excessive amount of wires for a 5V tiny device. The Upper Console seemed like a good idea as it's only got the T-Bar metal to deal with, it's somewhat centrally located, and yes there are wires but how close is "Too Close" ?? I guess when I take the Upper Console out for a test fit I'll find out won't I? If that does not work then I am at somewhat of a loss as to where a good place to install the compass would be. At least in the Upper Console I can run the 5V Power and ground off of the same one that the Temperature Sensor Module and Compass Indicator LEDs are using. Anyways, I hooked it all up to my Arduino Mega & Unity 3D setup and gave it all a bench test and it seems fine with the exception of the Compass still needing to be calibrated properly, but it all works. That Temperature Sensor I'm very impressed with, that thing works beautifully.