; Mosfet module
tekst: arduino-tech.comarduino-tech.com:
Instruction: MOSFET is an electronic device having a good switching characteristics, is widely used in the electronic switch circuit needs, such as switching power supplies and motor drives, and a lighting dimming. We designed this four-way MOSFET switch can provide up to four groups of electronic switches, were used to control different circuit modules. Affected MOSFET works, the electronic building blocks can be used to control the DC circuit, such as DC LED screen, etc., are not suitable for controlling the AC circuit. Under extreme circumstances of the MOSFET switch can be used to control 100V / 33A DC circuit, but is recommended not less than the minimum DC voltage 9V. Wiring (To control a 12V LED lights, for example): 1. Connect power for +/- 2. LED lights "+" connect to module "+", LED lights "-" connect to S1, if there are other LED lights, connect to the switch 2 (S2), switch 3 (S3) and switch 4 (S4) in tuns; 3. Connection control side is much simpler, we only need to use a sensor cable, the corresponding control port and Arduino sensor expansion board connected, then you can control the 12V LED lights by Arduino. Package includes: 1 x IRF540 + MOSFET Switch Module Test code 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); } }

bronnen: