The powerdistro box (powered by a MO display)

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
saxgod
LCD?
Posts: 7
Joined: Sun Apr 07, 2002 6:00 pm
Contact:

Post by saxgod »

I've been working on a PowerDistro Box (a little box to plug in devices so they can be switched on and off by the GPO's of a MO display (using the LK202-25-V).

It isn't entirely finished and you can see my logbook (to read about my progress) over <a href="http://casemod.saxgod.be/powerdistro">here</a>

I'm going to copy paste a part of the page (containing the schematic and my words about it). Please respond if you think I made a mistake somewhere, so I don't blow anything up :wink: You 'may' also respond if you think something else :wink: hehe

Ok here we go :
--<cut>--
<img src="http://casemod.saxgod.be/powerdistro/po ... br>Created this schematic so you can see what I'm planning to do. I'm going to hook up transistors to the GPO's, and switch the ground connected to relays with them. On the schematics I found in that thread on the MO-Forums there was a 4.7K resistor in front of the transistor. But after talking with Henry it seems that this is the resistor thats already on the PCB of the LCD between the a actual GPO's and the GPO header. The relays have switch over contacts, which are connected to manual switch over switches (like a normal house circuit with 2 switches for 1 light). When the manual switch is in the drawn position, the outputs will only activate when the GPO is turned on. In the other position the output will be default on, and will be switched off when the GPO is turned on. I have implemented this because Henry told me there is no possibility in the LCD to turn on the GPO's by power up. Since I am going to connect a cold cathode and some fans and other things to it, I want the fans and light to be on at powerup. Also this makes that the relays don't have to be charged all the time, but only if I want the lights or fans off. After the switches there are 2 sockets for each output. A 12V and a 5V socket. I have done this by switching the ground through the relays contacts and switches, because in the PSU of your computer the 12V and 5V DC nets have the same ground anyway. After the sockets is a status led, also switched by the same ground, and connected (with all the other leds parrallel) to the 5V DC via a resistor.
<br><br>I was thinking to use a <a href="http://casemod.saxgod.be/powerdistro/2N2222.pdf" target="_blank">2N2222</a> transistor because it can handle 600mA max. I estimate that the relay will use a 200mA peak when switched on and then will drop to 50mA for it to stay switched on. Relays will probably just be velleman's 12V with switch over contacts (<a href="http://www.velleman.be/Product.asp?lan=1&id=343879" target="_blank">JZC-22F</a> (has 37mA normal consumption) or other). The manual switches will be <a href="http://www.velleman.be/Product.asp?lan=1&id=337929" target="_blank">ON-ON toggle switches</a>. I Already have the sockets, and leds will be bloo or another (cheaper) color :wink: I'm not sure about putting the leds in, because I am going to put the powerbox right behind the display, above my cdrom, and you can't see the leds there (I was first planning to place it next to my mobo and you could see it trough the casewindow then. Maybe I'll put a new plexi in the top of my case, but thats for later hehe :wink:.<br><br> (ps. maybe it is safer to keep the whole GPO circuit on 5V, and we could use <a href="http://www.velleman.be/Product.asp?lan=1&id=17774" target="_blank">this relay.</a> The down side of this is that it uses as much power as the 12V relays (450mW), so the used mA will go up (80mA).)

--<cut>--

thats it..


<font size=-1>[ This Message was edited by: saxgod on 2002-08-01 17:20 ]</font>

Aniso
-=Beloved by all=-
-=Beloved by all=-
Posts: 286
Joined: Tue Aug 14, 2001 6:00 pm
Location: ...I could tell you my velocity...

Post by Aniso »

I have not looked at it well, but right off, I would say that your transisters are "backwards". The GPO switches TO ground - it is open collector. If you want to use NPN transisters, you will need to provide pull-up resistors. Also, you need current limiting resistors on each of the bases of your transisters (unless you use NPN and pull-ups).

I believe there is something on this in the (or a) manual.

Aniso
-=Beloved by all=-
-=Beloved by all=-
Posts: 286
Joined: Tue Aug 14, 2001 6:00 pm
Location: ...I could tell you my velocity...

Post by Aniso »

On 2002-08-01 19:10, Aniso wrote:
I have not looked at it well, but right off, I would say that your transisters are "backwards". The GPO switches TO ground - it is open collector. If you want to use NPN transisters, you will need to provide pull-up resistors. Also, you need current limiting resistors on each of the bases of your transisters (unless you use NPN and pull-ups).

I believe there is something on this in the (or a) manual.
OK, sorry, I was thinking -PC model. Still, you DO need more resistance than what is on the board (240 ohms). I would recomment putting a 4.7K resistor in there.

saxgod
LCD?
Posts: 7
Joined: Sun Apr 07, 2002 6:00 pm
Contact:

Post by saxgod »

Hmm yeah.. Henry told me that those 4.7k resistors where on the LCD, so I didn't include them.. I don't know much about transistors I just took them over from this thread: http://www.lcdforums.com/forums/viewtop ... forum=1&21

I noticed while booting my pc that the led I put on GPO1 was on from powerup, till LCDC started and began steering the display. So I guess that actually all GPO's are default power on until the host tells it to turn off (initializing the display ?). Will need to think about that. Maybe I don't need the manual switches etc..


<font size=-1>[ This Message was edited by: saxgod on 2002-08-02 04:38 ]</font>

Aniso
-=Beloved by all=-
-=Beloved by all=-
Posts: 286
Joined: Tue Aug 14, 2001 6:00 pm
Location: ...I could tell you my velocity...

Post by Aniso »

Yes, that other thread is excellent information that I had forgotten about!

I actually thought it was GPO4 or 5 that was on at powerup... Whichever one it is, it is always the same, but the rest will be off at powerup.

As for these resistors, it sounds like Henry did not quite understand the question. There are resistors there on the PCB, but they only limit current to 20mA. You need to limit current to around 1mA. The data sheet probably indicates something like 5mA base current for 100mA collector current in full saturation mode (1K), but my experience is that the base resistor on a small transistor (like 2n2222) does not have to be smaller than 4.7K. Certainly 240 ohms is too small and will probably result in transistor smoke (which smells oh so nice!).

"It is always a good time to think about your ground connections again"
- Me

saxgod
LCD?
Posts: 7
Joined: Sun Apr 07, 2002 6:00 pm
Contact:

Post by saxgod »

I have a LK202-25V, so what connector does the 'GPO' mean in this schematic
<img src="http://www.matrixorbital.com/temp/forum ... _relay.jpg">

my display switches to ground
<table bgcolor="white"><tr><td>
<img src="http://www.matrixorbital.com/manuals/lk ... tr></table>

I don't understand how connecting the ground via the 4.7k resistor to the base can trigger the transistor to switch the relay to ground ..
or am I missing something here.. please respond asap :wink:

cya sax

<font size=-1>[ This Message was edited by: saxgod on 2002-08-09 12:11 ]</font>

<font size=-1>[ This Message was edited by: saxgod on 2002-08-09 12:11 ]</font>

linear
evil Dr. linear
evil Dr. linear
Posts: 288
Joined: Wed Aug 15, 2001 6:00 pm
Location: USA
Contact:

Post by linear »

What I though I heard Aniso say was that the outputs on the -PC were active low, and the other models were active high. Interfacing to the active-low would be different than the yellow diagram.

saxgod
LCD?
Posts: 7
Joined: Sun Apr 07, 2002 6:00 pm
Contact:

Post by saxgod »

Yeah .. been thinking about that for a couple of hours and remembering something about pull up resistors I learned a long time ago in school.

then I came up with this; (ps the led is polarized wrong, you need to turn it around :wink:)
<img src="http://casemod.saxgod.be/powerdistro/realthing_gpo.jpg">

I build it and it works :wink: yeah! :wink:
<img src="http://casemod.saxgod.be/powerdistro/25.jpg">

<font size=-1>[ This Message was edited by: saxgod on 2002-08-09 15:31 ]</font>

saxgod
LCD?
Posts: 7
Joined: Sun Apr 07, 2002 6:00 pm
Contact:

Post by saxgod »

Almost finished.. just some details to take care of.

<img src="http://casemod.saxgod.be/powerdistro/33.jpg">

And it works! :wink:

Post Reply