PDA

View Full Version : Arduino Mega Main Unit Build with KS0108 GLCD



SaltyDog
11-08-2011, 07:06 PM
Sorry for the absence everyone have been very busy but thought I would share my current projects.Please forgive my instruction if I miss anything...Am working on 5 of these and thought to document the last build...Main Unit is finished and will document the relay/sensor housing next.

Items Needed:

Arduino Mega 1280
DS1307 RTC
KS0108 GLCD
Plastic Project Box
10mm Stand-off's
DB15 Female connector with solder cups (or your choice)
22AWG Stranded Wire or even 24AWG Stranded can be used.

Step One....

Measure the thickness of the housing and write it down. Attach the stand-offs to the Mega and measure from the bottom up to the bottom and top of the USB port as well as the DC Jack and add the thickness of the housing to those measurements.Then lay those measurements on your project box and scribe the lines for the cut-outs with a razor knife as well as the measurements for the DB15 Connector.It's alot easier if you drill out the center of the cutout and "shave" the material away until you reach your scribed lines.
http://i1099.photobucket.com/albums/g390/saltydogaquarium/Controller%20Project/Main%20Unit%20Build/DSC_1672.jpg

Step Two....

After your cut-outs are made place the Mega for fitment as well as the DB15.If the Mega fits remove it and take off the stand-offs and replace into the holes.....Use the mounting holes on the Mega as a guide to drill mounting holes for the stand-offs into the base of the enclosure.Remount the stand-offs and fasten securely.
http://i1099.photobucket.com/albums/g390/saltydogaquarium/Controller%20Project/Main%20Unit%20Build/DSC_1673.jpg

Step Three....

To mount the RTC I used double sided tape and placed it where ever I wanted.
http://i1099.photobucket.com/albums/g390/saltydogaquarium/Controller%20Project/Main%20Unit%20Build/DSC_1674.jpg

Step Four....

Wiring it all up.......this step is crucial.On a piece of paper write down the numbers 1-15. Wire the RTC to the appropriate pins on the Mega.....there are 3 total 5v+ connections on the Mega....2 above the pinouts for pins 22 and 23....Use one of them for the 5v+ to the RTC and a GND below pins 52 and 53.On my Build I used pin 1 for 5v+ and pin 2 for GND on the DB15 connector and used the 5v+ n GND pins before the Analog row of pins.Then for the rest of the pins remaining on the DB15 connector label each Pin you use accordingly as it is important to match the same pins to the relay box and in my case my sensor shield.
http://i1099.photobucket.com/albums/g390/saltydogaquarium/Controller%20Project/Main%20Unit%20Build/DSC_1676.jpg


Stay tuned for more to come on mounting the GLCD Screen and wiring to complete the Main Housing....But here is a teaser pic of the finished units.
http://i1099.photobucket.com/albums/g390/saltydogaquarium/Controller%20Project/Main%20Unit%20Build/DSC_1668.jpg

larryandlaura
11-08-2011, 07:12 PM
sweet dude....

SaltyDog
11-08-2011, 07:17 PM
TY....after this i'll be working on 2 touch-screen versions of this......hehehehe....:silly:

Tom@HaslettMI
11-08-2011, 07:34 PM
That look impressive. However, I'm not electronics savvy so... I have no idea what it is you're building! A controller of some sort is my guess. Could you provide a brief description and/or more detail?

Tom

SaltyDog
11-08-2011, 07:57 PM
At current there are a few versions of the Arduino which is a programmable controller using C++ coding. I am currently using the Arduino Mega1280 in these builds with a 128x64 bit KS0108 GLCD screen for the base of this aquarium controller build. The controller itself will be able to control 4 relays (for this build), 2 lighting channels (White LEDs and Blue LEDs) and use the existing Blue LEDs as moonlights also as the LED drivers these are being built for can dim down to 2%. The sensor shield I am using will give readings for pH,ORP,Salinity and water temperature. The 4 relays will control 2 powerheads, fugelight, and heater which the on/off will be handled by the temp probe n high/low settings within the code.

dlhirst
11-08-2011, 08:33 PM
Hah, great to see! I was just mentioning the idea of a DIY controller build based on Arduino not more than twenty four hours ago. Will be watching this with added interest.

SaltyDog
11-08-2011, 08:44 PM
I did a basic one already HERE (http://www.captivereefs.com/forum/diy-projects-plans/basic-arduino-controller-led-systems-18771/). Have been building them since April.

Tom@HaslettMI
11-08-2011, 09:41 PM
I figured it was a controller. Nice work. That's an impressive amount of functionality. :thumbsup:

Tom

SaltyDog
11-13-2011, 09:15 PM
Thanks Tom,

I think i'm addicted n need to start going to meetings....lol

Sent from my Flytouch 3 using Tapatalk.