Basic Code to keep the IRF5305 Module always ON with Arduino -IRF5305 Example 1/3

Project Video
Project Details

This article is on how to use the E-Switch module based on IRF5305 MOSFET module. This module can act as a switch and can be controlled as motor speed controller. All aspects of this module has been explained in the provided video at Robojax.com. 3 different codes has been provided for different usage of this. Also we have tested the module to see how much current it can handle under HIGH (24V) and at Low (5V).


Image above shows Mosfet used as switch.


Image above shows MOSFET used to control a load connected at Drain pin.


Image above shows MOSFET used to control a load connected at Source pin.

Schematic diagram of E-Switch based on IRF5305 Mosfet
Schematic diagram of E-Switch based on IRF5305 Mosfet

See This Code turns IRF5305 Module ON and OFF for 3 seconds with Arduino -IRF5305 Example 2
See Using IRF5305 E-Switch Module to control speed of motor with Arduino-IRF5305 Example 3

Project Code

*
 * This is Arduino Sketch for Tutorial video 
 * explaining the 5305 MOSFET used as switch 
 * this sktech turns the MOSFET ON and keeps it ON forever
 * 
 * Written by Ahmad Shamshiri on Sep 12, 2018 in Ajax, Ontario, Canada
 * For Robojax.com
 * Watch instruciton video for this code: https://youtu.be/eAANkWDvusU
 * This code is "AS IS" without warranty or liability. Free to be used as long as you keep this note intact.
 */
int loadPin =9;// load pin

  
void setup() {
  // Robojax.com demo
  pinMode(loadPin,OUTPUT);
  Serial.begin(9600);
  Serial.println("Robojax Demo"); 

}

void loop() {
  // Robojax.com  tutorial

  digitalWrite(loadPin, HIGH);
 while(1);// wait forever


Required File(s)