Show Posts
Pages: 1 2 3 [4] 5 6 ... 105
46  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 12:22:00 pm
Yeah, that'll work ... bit of an overkill on the voltage, but that's fine.  It's only switching 4.2V (max, nominal is 3.7V, minimum will be 3.0V).  Signal will be same voltage (range).

Is there a through hole counter part?  I like doing breadboard testing before I commit an SMD design for manufacturing.
47  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 12:13:11 pm
How about just a MOSFET? Since you're tying the grounds together on the two sides of the opto device, I assume isolation really isn't necessary. The MOSFET part in the schematic will switch 5-6 amps, has RDS(ON) of 27mΩ @ VGS = 2.5V, and is in an SOT-23 package.

Ok, now I find myself asking the question, "Just what in the world were you searching for?"  Those are certainly small enough to work with.  smiley
48  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 12:10:55 pm
How about just a MOSFET? Since you're tying the grounds together on the two sides of the opto device, I assume isolation really isn't necessary.

Correct.  The final product will be running off of the same battery, so I don't need the isolation.  It just happened that I had one of these suckers handy.

So "just a MOSFET" he says ...  All of the high Amp MOSFETS I find are large packages and I don't have the physical space for four of them.
49  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 11:50:00 am
Alternatively, can anyone suggest a different setup, with maybe different parts?  I don't *have* to use this specific opto MOSFET.  I just need to be able to switch at least 2.5A from a Li+ battery (4.1V - 3.0V).  I picked this one because I had one handy, it can switch up to 3A and it's small - size is a requirement here.
50  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 11:21:50 am
Try it as a low-side switch instead of high-side?

I haven't worked with MOSFET relays like that, from the datasheet I assume pins 3 and 4 would be interchangeable, but I might also try swapping them around.

Yes, you can flip pins 3 and 4, just not 1 and 2.  Though the datasheet also shows pin 3 being grounded, which would seem to indicate the MOSFET being on the low side.  So I did try both, exactly like your schematic.  In one case, pin 3 can get grounded, on the high side you don't ground it.  Neither fixed the problem.

So my next step is trying to push the MOSFET with a higher current.  Right now it's getting about 16mA, which is more than it's minimum of 10mA.  But I'm going to push that to 20-25mA and see what happens.  Its max is 30mA so I should be fine with 25 even.

However, that will have to wait till this evening because I left the unit running overnight (without the relay) so I can drain the battery and get a low voltage measurement base point for the voltage indicator being built-in the code.
51  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 09:04:49 am
Hi, I think you may have a problem with supply and filtering, you mentioned that the supply to the array with the mosfet relay was down to 3.2v.
These arrays have micrcontrollers built in them, probably running at 3.3V. If the main supply drops to 3.2V then the regulation will not be available to keep the microcontroller stable.
To fix this either use a small mechanical relay, or parallel up the output of three or more of these mosfet relays units to drop the switching  resistance.
To check, measure the voltage across pins 3 and 4, AT THE opto mosfet relay and see if you are loosing the 1v there and not your wiring or too small width tracks to the opto mosfet relay.

Tom

No.  This is a custom made strip.  Just LEDs and drivers.  The drivers are capable of running on 2.5V and it runs fine without the relay.
52  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 02:25:10 am
What current is drawn by the LED string?

Max 2.59A (54mA per LED, 48 LEDs.)  That's if I ever set it to full white.
53  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 02:03:40 am
also R1, what value are you using?

Maybe it's not allowing enough current for the LED for the fet's to fully switch on?

220 ohms.  At 5V, and a voltage drop off 1.33V, that means the LED is working at 16.6mA.  Minimum is 10mA, max is 30mA.  So it should be just fine.
54  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 01:42:08 am
What's the "low"/"high" voltage on the signal that's triggering off the ss relay?

At the moment, 5V, coming from the Arduino.

Ultimately, it will be coming from the battery.  The LED's forward voltage is 1.33V, so the battery will cut out well before it gets that low.
55  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 01:24:43 am
I don't get your circuit. Is pin 1 of the LED string +5V or Gnd?

If it's Gnd, why are you grounding pin 4?

If it's +5V why is it connected to the negative side of the battery?

You're looking at the wrong one.  I tagged the wrong image so you can tell which is wrong.  The second image is correct.  Pin 1 is GND, pin 4 is VCC.
56  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: August 01, 2013, 12:37:38 am
I think you are getting parasitic powering of the LEDs. I have an LED string that glows dimly even when the power is off. Naturally I quickly disconnected the data lines as well.

If the power is off you should also have the data lines LOW.

That makes absolutely no difference.  If I power the LEDs first, then the Arduino (therefore the data lines), it's corrupted.
If I have the Arduino powered, but no data being send, power the LEDs, then start sending data, it's corrupted.
If I power the Arduino and LEDs, then start sending data, it's corrupted.

Anything where the relay is in the circuit, it gets corrupted.

As soon as the relay is taken out of the circuit, I can do whatever I want as far as what gets powered first or when data gets sent, it always works.

And I still can't figure out why I'm getting such a drastic voltage drop across the relay.
57  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: July 31, 2013, 11:38:48 pm
And actually, the datasheet shows pins 2 and 3 on the relay to be grounded (pin 2 has a series resistor of 220 Ohm).  So I reversed the battery so I can get a ground on pin 3, and reversed the connections on the LED string accordingly.  The relay is turning things on and off as I send either a HIGH or LOW signal to it.  So at least I know that works.  What I can't explain is a) why the significant voltage drop, and b) why does the data get corrupted.

Now, it is entirely possible that it's due to the voltage drop.  Even if the string's drivers work down to 2.5V (though the LEDs themselves only go as low as 2.8V).
58  Using Arduino / General Electronics / Re: Problems with a MOSFET relay on: July 31, 2013, 11:26:23 pm
No dice.  The circuit looks like this now:



Doesn't work.  The string turns on and off just like before, but now it doesn't show the proper data at all.  Even if I remove and reconnect the common ground between the LED string and the Arduino.

If I remove the relay from the equation and just connect the wires that are going to pins 3 and 4 on the relay, the LED string works as expected.  With the relay back in the circuit, the string just displays random colors.

I just noticed something else though, and may shed some light here.  With the relay in place, the voltage difference at the LED string is much lower than the actual battery voltage.  At the battery I can measure 4.1V (it's fully charged) and yet at the LED string, I measure 3.2V.  That's a significant voltage loss ...  Any ideas as to why?
59  Using Arduino / General Electronics / Problems with a MOSFET relay on: July 31, 2013, 10:03:10 pm
So I have a problem getting a MOSFET relay to work right.  I'm using an Omron G3VM-21AR in the following configuration:



SIG, DIN, and CLK go to an Arduino which is powered separately.  GND is common on both sides.  The battery is a Li-Ion there to provide power to the LED string only.

When I keep SIG LOW, the LED string is off, and when I set it HIGH the string turns on.  The idea here is that on the Arduino side, it could already be running, therefore sending data to the string.  The relay is simply there to cut raw power to the string.

The problem I have is when I turn the relay on, the LED string comes on however the data being displayed is corrupted.  If I disconnect the common ground between the string and the Arduino and reconnect it, then the string displays the incoming data as expected.  But if I power cycle the relay again, everything goes to hell in a hand basket.

So, what's going on here and how can I fix it?  I'm sure it's something I'm doing wrong but I can't figure out what.
60  Using Arduino / Storage / Re: SD card level shifting using 74HC125 IC on: July 23, 2013, 05:38:54 pm
Your sketch still has the CS pin set to 4, but your wiring is using pin 10.  See a problem there?
Pages: 1 2 3 [4] 5 6 ... 105