FEE PAYMENT TKREC

Thursday, 10 August 2017

Automatic Metal Detector & Remover Using Arduino

Basic Arduino Program


**Automatic Metal Detector & Remover**

Arduino Code:

const int ProximitySensor = 2; // proximity sensor connected to pin 2
const int Motor = 4; // Motor is connected to pin 4
const int Coil = 7; // Magnetic coil is connect to pin 7

int ProximitySensorStatus(digitalRead); // sensor will give digital output.
int MotorStatus(digitalWrite); // motor will takes digital input
int CoilStatus(digitalWrite); // coil will takes digital input

void setup() {
  pinMode(ProximitySensor, INPUT); // proximity sensor connected as input of arduino
  pinMode(Motor, OUTPUT); // motor is connected as out of arduino
  pinMode(Coil, OUTPUT); // Magnetic Coil connected as output of arduino
  // put your setup code here, to run once:

}

void loop() {
  if (ProximitySensorStatus == HIGH); // if the proximity sensor detects the Metal body i.e. High
  {digitalWrite(Motor, LOW); // motor will stop
  digitalWrite(Coil, HIGH); // Magnetic Coil will be get Energised 
  delay(ProximitySensorStatus); // the operation of Stop the Motor & On the coil upto the change in Proximity Sensor value i.e. Sensor value is Low
  }
  
  // put your main code here, to run repeatedly:

}



Proximity Sensor (Inductive type)
Componets :
  1. IR sensor (Inductive Type)
  2. MOTOR
  3. Conveyor belt
  4. ring bearings
  5. electromagnet
  6. Arduino UNO
Ring Bearings

Conveyor Belt set





Arduino UNO







For more Codes 
Contact : Electrical HUb (EEE TKREC)
WhatsApp : 9052525306 & 9052900491

We done All the Electrical & Electronic MINI and MAJOR projects for Engineering students

No comments:

Post a Comment