Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
3. COMMISSIONING WITH THE ARDUINO
Arduino Mosfet
GND GND (Pin1)
5V VCC (Pin2)
NC NC (Pin3)
Digital Pin 2 Signal (Pin4)
Wiring:
Code example:
If the signal pin is set to high, the output is activated.
In the following code example, the output is activated every 15 seconds for 10 seconds.
Before uploading, make sure that you have set the correct board and port in your Arduino IDE.
Vin
- +
- +
Vout
void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
Serial.println("Output enabled...");
delay(10000);
digitalWrite(2, LOW);
Serial.println("Output disabled...");
delay(5000);
}