FET-Brick-3.jpg

Electronic Brick: 1 Channel MOSFET IRF540

(Available HERE)
NOTE: These two modules are similar; the first one has 1 channel, the second has 4 channels.

The examples below apply to the first module also, but better examples are being worked on.


mosfet4.jpg

Electronic Brick: 4 Channel MOSFET IRF540

(Available HERE)
A Power MOSFET is an electronic device with good switching characteristics. It is widely used in circuits such as power supplies, switching ,motor drives, LED lighting dimmers and so on. The Data Sheet for the IRF540 is here:

The 4-channel MOSFET switch has four electronic switches to control different circuit blocks . MOSFETs can only be used to control DC circuits, such as DC-LED screen and so on, but they are not suitable for AC circuit control.

The maximum rating of the Power FETS used (IRF540) is 100V/33A DC circuit. However, it is suggested that less power be controlled with this unit because no Heatsink is used. The supply voltage (applied to + and -
Terminals) should be at least 9 to 12
external image PowerFET-4Channel-800.png
VDC, as this is used to turn on the FETs. It should not be greater than 20 VDC as that is the gate voltage rating of the IRF-540.
external image febb_4mosfet_3.JPG


Here's the schematic diagram, if you're interested:

NOTE: The following are photos are of an earlier board.
Here are examples of controlling 12V LED or Halogen lights. First connect to the 12 Volt power to the positive (+) and negative (-) terminals.


Then connect the LED's positive(+) with the channels (CH+), and LED 's negative terminal is connected to (CH-) [LED string must have it's own current-limiting resistor!]:
external image febb_4mosfet_4.JPG





If controlling other LED lights at the same time, connect them in the same way to their Channel + and - .

febb_mosfet4_2.JPGmosfet4.jpg

Connection to the Arduino to turn channels on and off is through the 3-pin connectors on theright in the photo to the right. A cable connection to A Sensor Shield is quick and easy. But other wiring can be used. The cables colors are GND(Black) , VOLTAGE(Red) and SIGNAL(White).

If you look into the 3-pin connectors on the end of the cable they are (Left to right with "Latch" on top) GND-VOLTAGE-SIGNAL.

If you look into the 3-pin connectors on the board they are (Left to right with "Latch" on top) SIGNAL-VOLTAGE-GND.

(You only need GND and SIGNAL on this board). You can test with the Blink program, and pin 13.

Test code for two LED strips, etc. controlled by Arduino pins 6 and 7 is as follows:


int s1Pin = 6;
int s2Pin = 7;

void setup() {
pinMode(s1Pin, OUTPUT);
pinMode(s2Pin, OUTPUT);
}

void loop() {
int i;

digitalWrite(s1Pin, HIGH);
digitalWrite(s2Pin, HIGH);
delay(500);

digitalWrite(s1Pin, LOW);
digitalWrite(s2Pin, LOW);
delay(500);

for (i = 0; i < 10; i ++) {
digitalWrite(s1Pin, HIGH);
delay(500);
digitalWrite(s1Pin, LOW);
delay(500);
}

for (i = 0; i < 100; i ++) {
digitalWrite(s2Pin, HIGH);
delay(50);
digitalWrite(s2Pin, LOW);
delay(50);
}
}