Muhammad_Munir
Published © GPL3+

Overload Motor Protection System

Arduino-based Overload Motor Protection System with Current Sensor

BeginnerProtip1 hour768
Overload Motor Protection System

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Current Sensor
×1
Relay module
×1
Jumper wires (generic)
Jumper wires (generic)
×1
DC gear Motor
×1
3s Battery Holder
×1
3.7v Batteries cell
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Code

Code

Arduino
#define Relay A1
int analogPin = A0; // Current sensor output


long int sensorValue = 0;  // variable to store the sensor value read


void setup() {
  Serial.begin(9600);           //  setup serial
  pinMode(Relay, OUTPUT);
}

void loop() {

 
    sensorValue = analogRead(analogPin);

    // wait 2 milliseconds before the next loop
    delay(200);


 
  Serial.println("ADC Value: ");
  Serial.println(sensorValue);
// set value on which you want to switch off Motor. normally motor oprate between value 512 to 525.
// I set 530 value on which motor switch off for 5 seconds.
if(sensorValue > 530)
{
   digitalWrite(Relay, LOW);
   delay(5000);
}
else
{
  digitalWrite(Relay, HIGH);
  }

  
}

Credits

Muhammad_Munir

Muhammad_Munir

77 projects • 48 followers
I am Arduino programmer, also expertise in ESP32 and 8266 wifi modules.

Comments