Offline
Newbie
Karma: 0
Posts: 16
|
 |
« on: January 31, 2011, 10:45:04 am » |
Hi,
I was wondering if it is possible to put a 4n35 optocoupler at a psu line of 12v, 25Ampere, (at the black wire)?
Will the optocoupler burn? If so, what's a better way to control a powerline of an pc psu. Because I want to controll the fan which is connected with the 4 pins black/yellow 12volt line.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26031
Solder is electric glue
|
 |
« Reply #1 on: January 31, 2011, 02:25:32 pm » |
An opto coupler will not take anything like that sort of load. I assume that the power supply rating is 25Amps, rather than the fan. Either way you need a suitably rated FET between the opto isolator and the fan.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #2 on: February 01, 2011, 07:53:02 pm » |
One more question. The fans connected to the psu, use only 0.07 A. Now I'm not sure, how much pc psu delivers. The fan is connected to the yellow cable. What normally is connected to a harddrive or cd-rom drive, with 4 pins red-black-black-yellow.
So if the fan can use only 0.07 A, why isn't it possible for the optocoupler?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26031
Solder is electric glue
|
 |
« Reply #3 on: February 02, 2011, 06:21:10 am » |
So if the fan can use only 0.07 A, why isn't it possible for the optocoupler? Well you were asking at first about switching 25A, but for a fan you still need a extra transistor because a typical opto coupler transistor can not supply 70mA. Check the data sheet for the specific type of opto isolator you want to use. For the 4N35 the data sheet says the maximum output current is 50mA. Note also that the 70mA quoted is probably the running current, typically this is much lower than the start up current or the stall current.
|
|
|
|
« Last Edit: February 02, 2011, 06:24:22 am by Grumpy_Mike »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #4 on: February 02, 2011, 06:49:51 am » |
I understand, is this a good plan?
12Volt+ > fan+ > fan- > mosfet > 12Volt-
mosfet is controlled by optocoupler
arduino > optocoupler > mosfet > optocoupler > arduino
Tonight I will try to Fritz this...
Worst scenario will be, that the mosfet will burn??
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26031
Solder is electric glue
|
 |
« Reply #5 on: February 05, 2011, 02:03:41 pm » |
Note you also need a resistor between the arduino and the opto coupler. This is because it is really just and LED and you need a current limiter. You also need a pull up resistor on the gate of the FET to the +12V.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #6 on: February 05, 2011, 07:52:09 pm » |
everthing works fine, except, it wont turn off. When a put the multimeter on the mosfet G and S. It goes off and on. Maybe it's the pull up resistor what i need? It seems, that the voltage stays high when its put high. The mosfet acts like a switch, when high i disconnect the gate, it stays high, when low, i disconnect it stays low. So why doesn't it go low, but only high. I just started with circuits. I'm a programmer, sorry for the stupitty 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #7 on: February 05, 2011, 07:59:52 pm » |
Yeah, I needed a pull down resistor 2x330Kohm from mosfet G to 9v ground.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #8 on: February 05, 2011, 08:09:20 pm » |
is the optocoupler isolated of amperage as drawn at the diagram? Can pin 6 be connected to the arduino 9v?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #9 on: February 06, 2011, 05:50:55 pm » |
First off all, I want to thank Grumpy_Mike for his support.
Can anybody confirm if the ampere is isolated to the optocoupler with this diagram? Because the + of psu is connected to pin 6 of optocoupler.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #10 on: February 06, 2011, 05:52:53 pm » |
This pic is better.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 283
Posts: 15443
Measurement changes behavior
|
 |
« Reply #11 on: February 06, 2011, 08:35:36 pm » |
I think I see several wiring errors, but I refuse to try and make sense of such pictorial pictures, when what is really required is a proper schematic drawing. However hang on for others that might have a higher threshold of pain the I do.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26031
Solder is electric glue
|
 |
« Reply #12 on: February 07, 2011, 09:49:42 am » |
That circuit is not right. There is a common ground on both sides of the circuit, this means it is not isolated. As lefty says it is very difficult to follow a physical layout and generate a schematic from that. In fact is is impossible for anything but the most trivial circuit. You must have a schematic because you made it (you can't pretend to make anything without a schematic) so could you post that. Even a photo of a hand drawn one would be fine. It is much easier generating a physical layout from the schematic. But you don't look like you have got it quite right yet. Also is the FET part number correct?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #13 on: February 07, 2011, 10:11:04 am » |
I'm just started learning electro. I will post a schematic tonight. The fet name is right I think, I have to double check maybe. So if I understand, common must be seperated. But the + also goes to the optocoupler, I think thats also not right.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26031
Solder is electric glue
|
 |
« Reply #14 on: February 07, 2011, 11:25:27 am » |
But the + also goes to the optocoupler The opto coupler has two sides, it is quite alright for the + and ground to go the opto providing that only fan and fet connections go to the output side and only arduino and arduino ground go to the input side.
|
|
|
|
|
Logged
|
|
|
|
|
|