Making Magnificent Moonlights

Got any home remedies or DIY projects? Share them here!
Problems with your tank's equipment? We can help!
midgetwaiter
Puffer Fry
Posts: 38
Joined: Sat Jun 25, 2005 9:42 pm
Location: Calgary, Alberta

Post by midgetwaiter »

One other thing if you get really jammed up on the clock thing (I feel your pain) you might Want to at least consider making a pcb. I've done it a couple times before, it's not pleasant but it's not very hard.

http://www.fullnet.com/u/tomg/gooteepc.htm
User avatar
PetPirate
Gone Today, Here Tomorrow
Posts: 1230
Joined: Mon Jun 27, 2005 5:41 am
My Puffers: 3x Tetraodon Nigroviridis in full marine
Location: Shanghai, China
Contact:

Post by PetPirate »

Thanks. Making them at home would be pretty interesting.... but I couldn't be bothered - and wouldn't find the space to put all the equipment safely.

I have had PCBs professionally made here before.... it's actually very cheap (10 - 20 dollars to set up, then about 1 dollar per board), but hassle when you tell them you only want 1 - 2 (and try arguing your case in a very foreign language).... and probably too expensive in the West for most people reading thru these threads.

But you are right.... Once I've had all the bits for my controller up and runnng and proven, I will get PCBs fabbed. One day when I've got time...
Created a User Gallery yet? Go On!

Affordable Metal Halide Lamps: http://www.petpirates.com
User avatar
PetPirate
Gone Today, Here Tomorrow
Posts: 1230
Joined: Mon Jun 27, 2005 5:41 am
My Puffers: 3x Tetraodon Nigroviridis in full marine
Location: Shanghai, China
Contact:

Post by PetPirate »

Well..... here we go!!! At last here comes the *FINAL* anti-climax that is the build instructions.

It's been a loooooong day at work. I'm falling asleep here. Really. I keep having to pick my head up off the keyboard. So, I'm going to try to do as I promised, and actually rush through this one!Any questions, feel free to ask me!


Lets run down the stuff we need... Here's that picture again:


Image

And here's where we're going to put the stuff:

Image


Back view, showing track breaks:

Image


I've missed one, can you spot it? Make sure you get them all!

Image

If you've got this far, most things are fairly straight forward, but I'll go into a bit of detail on the "odd bits" ;)

*Don't forget to clean off the board again before soldering!!!*

R3 & R4

Not much space here. Not enough for the resistors to lie flat. Instead, we can just stand them on-end

Image

RTC

According to the DS1302 datasheet (whioch I heartily recommend as bed-time reading), the distance beteen the crystal and the chip has to be as short as possible. So, they share the same holes. The crystal is so tiny, it should be no problem to squeeze the legs through. Which is more than I can say for my old jeans form last year :P Just make sure the metal body of the crystal doesn't touch anything else!


Image

Image

Note also that there's a wire which goes a little way under the socket. It's easiest if you lay the wire before soldering on the socket. Trust me. ;)

Battery

The exact location of the pins on your battery may be slightly different... *make sure* you connect it correctly, whatever you do. Look after the battery carefully. This is not just because I have a battery fetish, but because lithium batteries are... well... full of lithium.

I tried to make that sound a bit funny. But it's not. Seriously. If a lithium battery is shorted out (e.g. by something metal in your pocket, or by connecting it up wrongly, or by clumsily laying the circuit board on a screwdriver... etc etc, the battery can heat up in very short order. When it heats up, the pressure builds inside, and they can burst open. And anyone who knows what lithium is, knows that that is bad -- lithium tends to spontaneously catch on fire in air. They should have a safety auto-disconnect inside, but don't rely on it. Treat it like a little metal box full of fire that wants to burst out. Cos that's what it is.

Phew.

LCD

You have several options here. If you like, you can ignore all my hard-wiring for the LCD, and just run wires off the board directly to the LCD. This is the option to choose if you like rats nests!

This is what I recommend... kindof:



1. Break all the copper on the underside of the board below where the LCD will go.

2. Run the connecting wires down past where the LCD will go, and wrap them around the board:

Image

3. push a pinned socket through the *underside* of the board and carefully solder each loose piece of wire to its legs. Then snip off the excess wire:

Image

I then realised that my LCD was a Chinese character LCD, which, while compatible with ones you're likely to get overseas, is oriented in a completely opposite direction to standard English LCDs. On English language LCDs, the connection pins are normally on the top. On Chinese displays they're on the bottom! This means that the an English LCD would overhang the edge of the board and take up lots of space. Not good for you guys! Grrrrrrrrrrrrrrrrrrrrrrrrr :-( .


After cursing a lot, I simply solved the problem by soldering in an identical socket on the top, soldering the top one to the pins poking through from the underside.

Image

I then held the whole thing down with hot melt glue:

Image

Classy stuff, I'm sure you'll agree!

All though this was completely unintentional, it worked very well and the result is quite strong. That's why I've included the header in this position on the stripboard layout.

However, you are free to come up with any LCD attachment method you like. Again, just running a cable off-board is the simple way to do it, but looks messy. Whatever you do make sure nothing metal touches any of the components on the board below!!!

See, I went through all that just for you guys! I could've just used my upside-down Chinese character LCD!!!

switches

You can connect one side of all the switches together (the purple wire in this pic) to 0V, where shown on the layout.

Image



and... DONE!

(told you I would rush through things!)

Here's a preview of the whole thing working:

Image


Tadaaaaaa!!!!


I know, I know... the date is wrong. I'm working on that!


And, just in case you didn't know.....


Image

Of course they do! :P

Just gotta program them now!
Created a User Gallery yet? Go On!

Affordable Metal Halide Lamps: http://www.petpirates.com
midgetwaiter
Puffer Fry
Posts: 38
Joined: Sat Jun 25, 2005 9:42 pm
Location: Calgary, Alberta

Post by midgetwaiter »

Cool stuff Jhong. Part of it reminded me of something that happened about 10 years ago.
I tried to make that sound a bit funny. But it's not. Seriously. If a lithium battery is shorted out (e.g. by something metal in your pocket, or by connecting it up wrongly, or by clumsily laying the circuit board on a screwdriver... etc etc, the battery can heat up in very short order. When it heats up, the pressure builds inside, and they can burst open.
They can explode too, the guy on the bench behind me had one go off on him once. Luckily he had a keyboard sitting across the top of it a couple inches up from the board. It cracked the case on the keyboard and shot 4 of the keys off of it and through the acoustic tiles on the ceiling. Sounded like a bomb too, I nearly wet myself. It was worth it to find out that the biker guy I shared my bench with shrieks like a little girl when startled.

Everybody pay attention to this part, the chance of one of these blowing is small but it's bad news. Check twice, put it down for five minutes and then check again before you put power to it
User avatar
PetPirate
Gone Today, Here Tomorrow
Posts: 1230
Joined: Mon Jun 27, 2005 5:41 am
My Puffers: 3x Tetraodon Nigroviridis in full marine
Location: Shanghai, China
Contact:

Post by PetPirate »

LOL! Makes you treat your watch with a new-found respect.

I turned it on again last night. Still only a couple of minutes fast.... I think we're good to go!
Created a User Gallery yet? Go On!

Affordable Metal Halide Lamps: http://www.petpirates.com
Roman
Puffer Fry
Posts: 18
Joined: Wed Mar 29, 2006 12:14 am
Location: Bethesda, MD

Post by Roman »

I will try this really soon and get you some feedback. I made a set of moonlights from cathode tubes but it's making my fishtank look like a damn nightclub so I don't use it. Hopefully the LED's will be better.
User avatar
strike2
Figure 8 Puffer
Posts: 241
Joined: Thu Aug 31, 2006 7:42 pm
Location: Texas
Contact:

Post by strike2 »

That looks sweet...but I am about out of electrical outlets...
User avatar
PetPirate
Gone Today, Here Tomorrow
Posts: 1230
Joined: Mon Jun 27, 2005 5:41 am
My Puffers: 3x Tetraodon Nigroviridis in full marine
Location: Shanghai, China
Contact:

Post by PetPirate »

Good God... The thread lives.......

I really should resurrect this project at some point.
Created a User Gallery yet? Go On!

Affordable Metal Halide Lamps: http://www.petpirates.com
User avatar
Phaedrus
Former Staff Member
Posts: 1402
Joined: Tue Jul 19, 2005 8:34 pm
Location: Saskatoon, Saskatchewan, Canada
Contact:

Post by Phaedrus »

I hope you do. I still plan to make myself a moon light in the near future.
zxr
Puffer Fry
Posts: 13
Joined: Fri Nov 10, 2006 5:32 am
Location: Leicestershire, UK

Post by zxr »

this thread is 100% absolutely fantastic.

I'm off to buy the bits :D
User avatar
DarkEntity
Figure 8 Puffer
Posts: 121
Joined: Tue Nov 28, 2006 4:08 pm
My Puffers: 1 x Carinotetraodon Salivator
2 x Tetraodon Biocellatus
Location (country): Scotland
Location: Glasgow(ish) Scotland

Post by DarkEntity »

I think ive gone cross eyed :shock:
Lhutch
Puffer Fry
Posts: 30
Joined: Fri Aug 03, 2007 11:30 pm

Re: Making Magnificent Moonlights

Post by Lhutch »

this is very easy to do, infact and theres much easier ways to do it, its as simple as flicking on a switch
Post Reply