Showing posts with label LDR Sensor. Show all posts
Showing posts with label LDR Sensor. Show all posts

Monday, April 4, 2016

Diagram For Optocoupler Combo Board

I made a diagram for the basic layout for the Optocoupler Combo board I whipped up just using some Proto-Board. In the diagram I did not include all of the Optocouplers I'm currently using as it;s likely to change and the format is simple enough to just continue the pattern to add more as needed. I have not added the Digital Compass yet either so I'll be doing another updated diagram later but this gives an idea of how simple it is to connect up some stuff like the Switch Pod button inputs for the Arduino Mega to activate screens in our Knight O.S. Dash Software interface and connect up the LDR and Temperature Sensors. You can see the Optocouplers provide complete isolation between the 12V Switch Pod buttons and the 5V ground pulse needed for the Arduino Triggers.


UPDATE:

I updated the diagram to include the connections for the HMC5883L Digital Compass.

Sunday, April 3, 2016

Installing LDR Into The Upper Console

Finally getting around to doing this simple little job that was getting put off for a while until I had done a lot of the Breadboard testing with the Arduino and Unity 3D. I suppose I could have installed it but just wanted to get a lot of the preliminary testing out of the way first. Happy to say that I'm finally going to get the LDR installed.
First needed to drill s hole in the front of the Upper Console (The Part that faces towards the Windshield). File it to fit the Plexiglas enclosure I made for the LDR. Had to be a little careful with my file as the electronics are installed so a little delicate work. But I got the hole for the Sensor done and then test fitted the LDR into the freshly made hole in the front of the Upper Console. Fits great so now all I need to do is glass that into place and then connect the wires to a couple of spare ports I have available on of the Molex Connectors in the console.



I glassed in the LDR Sensor with some Bondo Glass. I'll no doubt later put a layer of fibreglass resin and maybe some matting over top of that just so it's good and strong, but that can be done later as I'm currently out of Fibreglass resin, need to do a Canadian Tire run and pick up some more so later for that for sure ;) but the Bondo Glass job looks to be pretty descent for now.







Saturday, April 2, 2016

Prepping For Final

I can start working on minimizing the need for the Breadboard now especially after I make a Optocoupler board for the button inputs to the Arduino so that Switch Pod or other buttons can be assigned to trigger certain screens in our Knight O.S. interface like the Environment Scan Screens, Manual Override, or Telephone Tap Simulator Screen. These can be any momentary button which makes either the Switch Pod, Space Matt Buttons or Possibly Lower Console Or Upper Console Buttons usable for this so long as they are momentary buttons.... heck even if they are not momentary buttons I have a circuit that allows Latching Buttons to generate a short pulse to simulate the function of a momentary button. So the option either way is there.

I currently have plugged into the Breadboard a bunch of wires that are going into the Arduino ports that are coded for stuff but not actually hooked up to a Relay Module yet. I need to get a 2nd 16 Channel Relay Module and modify that one just like the one here, but for now that is kind of optional for me as most of the main functions are routed through the first Relay Module. The 2nd Relay Module would be more for all the cool extras. Although you can mix and match and assign ANY of the outputs to whatever Relay you want so for example if you don't use the Auto Doors but are going to use the S.I.D. function all you would need to do is connect up the stuff you are using, The interface would still go through the motions just without the Relay hooked up it would not actually perform the "Physical" function.... but I think you get that.

The other thing I can do now is hook up the LDR and Temperature Sensors, I think I am going to install those two up into the Upper Console as that seems a logical place. The LDR Sensor I can mount so that it is facing forwards out the front part of the Upper Console that way it will get it's light values from whatever comes through the front Windshield. The Temperature Sensor seems to make sense to me to be up in the Upper Console as that way it is away from the Heater and Air Vents which I think would cause inaccurate readings to occur, that's my thought on it anyways, but I can see that being on of the best places. The Sensor for the Compass however is a whole other animal right now so not sure about that one. Getting Closer though :D