Pages: [1]   Go Down
Author Topic: MOSFET help  (Read 1860 times)
0 Members and 1 Guest are viewing this topic.
Lake Mary, FL
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have 6 IR LEDs that I want to run off a cigarette lighter outlet in a car. (High output infrared LED 5mm 1.2VDC 100mA 940nm)

Currently I have all six in series with a 100ohm 1w 5% resistor.

I want to have them blink using a IFR510 MOSFET could someone provide me with a schematic?
Logged

Oregon
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Mmm Beerduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think this can help you.



What do you want to use as a timer?

You could use a 555 timer if you just want it to blink.

http://en.wikipedia.org/wiki/555_timer_IC
« Last Edit: May 19, 2011, 09:23:28 pm by billy_welsh » Logged

Lake Mary, FL
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am going to use the Arduino Uno as the timer. Pin 2.

My 6 leds are in the place of "M". But for some reason this is not working for me.

The leds are sometimes off, blink at the inncorrect freq, or just stay lit.



Code:
int led = 2;

void setup() {
  pinMode(led, OUTPUT);     
}
void loop() {
  digitalWrite(led, HIGH);
  delay(35);
  delayMicroseconds(544);
  digitalWrite(led, LOW);
  delay(35);
  delayMicroseconds(552);
}
Logged

Oregon
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Mmm Beerduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a feeling your code is operate so fast that you can't see it. Try commenting out the microseconds and bringing delay up to a second to see if it starts to blink with more repetition.

delay (1000);
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am also creating a similar project but would a IRF540 work instead?
Would i need a resistor between the arduino's digital pin and the transistor?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26497
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have a feeling your code is operate so fast that you can't see it.
They're IR didodes - unless it is very dark, you proabably won't see them anyway, though if were visible LEDs, you'd probably see the flicker.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Online Online
Shannon Member
****
Karma: 215
Posts: 12501
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IR diodes produce absolutely no visible light - but digital cameras (unless they have a really good IR filter) can usually see them - phone cameras are most likely to lack an IR filter.

The IRF510 is not a logic level MOSFET and won't work properly from 5V gate drive.  You must use a logic-level MOSFET or level-shift the pin's output to 10 to 12V.
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26497
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
IR diodes produce absolutely no visible light
No so - it is possible sometimes to see a faint glow from bare (without a proper filter) IR illuminators, though I agree, digital cameras are usually a good bet, and 940nm is quite a long wavelength
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Oregon
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Mmm Beerduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

They're IR didodes - unless it is very dark, you proabably won't see them anyway, though if were visible LEDs, you'd probably see the flicker.

I was half asleep thanks for pointing that out.

Do the UNO boards still have the LED on pin 13. If they do you could probably trouble shoot the timing just by adding pin 13 to the rotation.
Logged

0
Online Online
Shannon Member
****
Karma: 215
Posts: 12501
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Standard IR diodes are ( or used to be ) narrowband and dont spill into visible. Perhaps newer high efficiency ones use quantum wells and produce a broader spectrum? IR remote control wants narrowband emitters and receivers to help filter out ambient lighting which interferes with wanted signal - IR illuminators just need high efficiency.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: