SlideShare une entreprise Scribd logo
1  sur  10
Microprocessor
Application Lab
Term Project

  -   Ganesh Kumar M (08ME 3305)

  -   Akshay Meena (08ME3304)

  -   Anoop S (08ME3303)

  -   V. Rahul Soni (11ME63R37)

  -   Manoj Kumar Pandit
      (11ME63D02)
Introduction
A traction control system (TCS) is typically secondary function of the Anti-Lock
Braking system on production vehicles, designed to prevent loss of traction of
driven road wheels. When invoked it therefore enhances driver control as throttle
input applied is mis-matched to the road surface conditions being unable to manage
the applied torque.



This project is simplified version of such a system. The vehicle is driven by a DC
motor. On loss of traction, the system tries to regain it by reducing the power to
the DC motor, thus, reducing its speed/torque output. This is similar to the throttle
control in TCS of road vehicles. The front wheel speed is taken as the reference
speed. It is assumed that the front wheel is in pure rolling and there is no
longitudinal slip. The target of the bot is to finish a circuit in the optimal speed.




Project Description and Algorithm
In this project our main aim was to build a simplified traction control system.

   -   First, the front wheel speed is read for reference using a magnetic speed
       sensor.



   -   Using the front wheel speed, we compare it to the speed of the motor. If the
       front wheel speed is more than motor speed, the power to the DC motor is
       reduced to match the reference speed.



   -   The steering is controlled by another DC motor.
List of components:



   Component Name         Quantity           Cost




   Motor 6V 25000 rpm        1                 -




        Motor 6V             1                 -




 USB ATmega328 Arduino       1               750/-



                                             2500/-
     Vehicle Chassis         1
                                     *(inclusive of Motors)



  Magnetic Speed Sensor      1                 -




     Motor Controller        3               300/-
Miscellaneous     -   450/-




         Total             4000/-




ATmega328 Pin layout
The Program (with Feedback system)



#include <avr/io.h>
#define    F_CPU 16000000UL
#include   <avr/io.h>
#include   <avr/interrupt.h>
#include   <inttypes.h>
#include   <avr/delay.h>
#include   <util/delay.h>

int MotorBackBackward = 9;
int MotorBackForward = 10;
int MotorFrontLeft = 5;
int MotorFrontRight = 6;
#define NORMAL 1000
#define TURN   1000
#define forward 5000
int i=0;
uint16_t time=0,task=0;
int16_t defTime=0;
bool edge=true, lastEdge = true;
void InitTimer()
{
        TCCR1A = (1<<COM1B0);
        TCCR1B = (1<<CS10);
        TIMSK1 = (1<<OCIE1B);
}
void InitADC()
{
        ADMUX |= (1<<ADLAR)|(1<<REFS0);
        ADCSRA |= (1<<ADEN)|(1<<ADPS0);
}

void ReadADC()
{
        ADCSRA|=(1<<ADSC);
        while(!(ADCSRA&(1<<ADIF)));
        if(ADC-509)
          {
            edge = true;
          }
          else
          edge = false;
}
ISR(TIMER1_COMPB_vect)
{
  if(lastEdge&&edge)
  {
  }
  else
  {
    lastEdge = edge;
    defTime = time;
    time=0;
  }
  time++;
  task++;
}
void setup()
{
pinMode(MotorBackBackward,OUTPUT);
    pinMode(MotorBackBackward,OUTPUT);
    pinMode(MotorFrontLeft,OUTPUT);
    pinMode(MotorFrontRight,OUTPUT);
    InitTimer();
    InitADC();
    SREG|=(1<<7);
    sei();
    OCR1B = 16000;
    stopAll();
}

void loop()
{
  moveForward(173+2*(30-time/50));
  if(task<forward)
  {
    stopTurn();
  }
  else
  {
    turnLeft();
  }
  if(task>=2*forward)
  task = 0;
  /* moveForward();
  delay(NORMAL);
  stopMove();
  turnLeft();
  delay(1000);
  delay(TURN);
  delay(TURN);
  //turnRight();
  turnRight();
  moveForward();
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  stopMove();
  turnLeft();
  stopTurn();*/
}

/*void moveForwardPWMint value)
{
  analogWrite(MotorBackBackward,0);
  analogWrite(MotorBackForward,value);
}

void moveBackwardPWM(int value)
{
    analogWrite(MotorBackBackward,value);
    analogWrite(MotorBackForward,0);
}
*/
void moveForward(uint8_t pwm)
{
   analogWrite(MotorBackBackward,0);
   analogWrite(MotorBackForward,pwm);
}

void moveBackward()
{
  digitalWrite(MotorBackBackward,HIGH);
  digitalWrite(MotorBackForward,LOW);
}

void turnRight()
{
  digitalWrite(MotorFrontLeft,HIGH);
  digitalWrite(MotorFrontRight,LOW);
}

void turnLeft()
{
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,HIGH);
}

void stopTurn()
{
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,LOW);
}

void stopMove()
{
  digitalWrite(MotorBackBackward,LOW);
  digitalWrite(MotorBackForward,LOW);
}

void stopAll()
{
  digitalWrite(MotorBackBackward,LOW);
  digitalWrite(MotorBackForward,LOW);
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,LOW);
}

The Program (without Feedback system)


int MotorBackBackward = 9;
int MotorBackForward = 10;
int MotorFrontLeft = 5;
int MotorFrontRight = 6;
#define NORMAL 1000
#define TURN   1000
void setup()
{
  pinMode(MotorBackBackward,OUTPUT);
  pinMode(MotorBackBackward,OUTPUT);
  pinMode(MotorFrontLeft,OUTPUT);
  pinMode(MotorFrontRight,OUTPUT);
  stopAll();
}

void loop()
{
  moveForward();
  delay(NORMAL);
  stopMove();
  turnLeft();
  delay(1000);
  delay(TURN);
  delay(TURN);
  turnRight();
  moveForward();
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  delay(TURN);
  stopMove();
  turnLeft();
  stopTurn();
}

/*void moveForwardPWMint value)
{
  analogWrite(MotorBackBackward,0);
  analogWrite(MotorBackForward,value);
}

void moveBackwardPWM(int value)
{
   analogWrite(MotorBackBackward,value);
   analogWrite(MotorBackForward,0);
}
*/
void moveForward()
{
   digitalWrite(MotorBackBackward,LOW);
   digitalWrite(MotorBackForward,HIGH);
}
void moveBackward()
{
  digitalWrite(MotorBackBackward,HIGH);
  digitalWrite(MotorBackForward,LOW);
}

void turnRight()
{
  digitalWrite(MotorFrontLeft,HIGH);
  digitalWrite(MotorFrontRight,LOW);
}

void turnLeft()
{
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,HIGH);
}

void stopTurn()
{
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,LOW);
}

void stopMove()
{
  digitalWrite(MotorBackBackward,LOW);
  digitalWrite(MotorBackForward,LOW);
}

void stopAll()
{
  digitalWrite(MotorBackBackward,LOW);
  digitalWrite(MotorBackForward,LOW);
  digitalWrite(MotorFrontLeft,LOW);
  digitalWrite(MotorFrontRight,LOW);
}

Contenu connexe

Tendances

JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALVaishnavi Agrawal
 
Construction of Quadcopter
Construction of QuadcopterConstruction of Quadcopter
Construction of QuadcopterMichael Bseliss
 
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FGStepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FGPremier Farnell
 
Speed and Torque Control Challenge of PMSM
Speed and Torque Control Challenge of PMSMSpeed and Torque Control Challenge of PMSM
Speed and Torque Control Challenge of PMSMIJMTST Journal
 
Device Modeling and Simulation of DC Motor using LTspice
Device Modeling and Simulation of  DC Motor using LTspiceDevice Modeling and Simulation of  DC Motor using LTspice
Device Modeling and Simulation of DC Motor using LTspiceTsuyoshi Horigome
 
The Simulation of DC Motor Control Circuit using LTspice
The Simulation of DC Motor Control Circuit using LTspiceThe Simulation of DC Motor Control Circuit using LTspice
The Simulation of DC Motor Control Circuit using LTspiceTsuyoshi Horigome
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)Rohini Haridas
 
1. servo basic
1. servo basic1. servo basic
1. servo basicbenson215
 
Micro stepping mode for stepper motor
Micro stepping mode for stepper motorMicro stepping mode for stepper motor
Micro stepping mode for stepper motorSwathi Venugopal
 
Microstepping of stepper Motor
Microstepping of stepper MotorMicrostepping of stepper Motor
Microstepping of stepper MotorANUP PALARAPWAR
 
Final Animal Loading Device Presentation
Final Animal Loading Device PresentationFinal Animal Loading Device Presentation
Final Animal Loading Device PresentationBolt Zhang
 
6 DOF Robotic Arm - Mechatronics Course Project
6 DOF Robotic Arm - Mechatronics Course Project6 DOF Robotic Arm - Mechatronics Course Project
6 DOF Robotic Arm - Mechatronics Course ProjectAmr Mousa
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Ronza Sameer
 

Tendances (20)

JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
 
V5I2-IJERTV5IS020384
V5I2-IJERTV5IS020384V5I2-IJERTV5IS020384
V5I2-IJERTV5IS020384
 
Construction of Quadcopter
Construction of QuadcopterConstruction of Quadcopter
Construction of Quadcopter
 
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FGStepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FG
 
Speed and Torque Control Challenge of PMSM
Speed and Torque Control Challenge of PMSMSpeed and Torque Control Challenge of PMSM
Speed and Torque Control Challenge of PMSM
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Servo 2.0
Servo 2.0Servo 2.0
Servo 2.0
 
Device Modeling and Simulation of DC Motor using LTspice
Device Modeling and Simulation of  DC Motor using LTspiceDevice Modeling and Simulation of  DC Motor using LTspice
Device Modeling and Simulation of DC Motor using LTspice
 
The Simulation of DC Motor Control Circuit using LTspice
The Simulation of DC Motor Control Circuit using LTspiceThe Simulation of DC Motor Control Circuit using LTspice
The Simulation of DC Motor Control Circuit using LTspice
 
DC Motor Model
DC Motor ModelDC Motor Model
DC Motor Model
 
Stepper motor(encrypted)
Stepper motor(encrypted)Stepper motor(encrypted)
Stepper motor(encrypted)
 
SERVO MOTOR CONTROLLER
SERVO MOTOR CONTROLLERSERVO MOTOR CONTROLLER
SERVO MOTOR CONTROLLER
 
1. servo basic
1. servo basic1. servo basic
1. servo basic
 
Micro stepping mode for stepper motor
Micro stepping mode for stepper motorMicro stepping mode for stepper motor
Micro stepping mode for stepper motor
 
Microstepping of stepper Motor
Microstepping of stepper MotorMicrostepping of stepper Motor
Microstepping of stepper Motor
 
Final Animal Loading Device Presentation
Final Animal Loading Device PresentationFinal Animal Loading Device Presentation
Final Animal Loading Device Presentation
 
6 DOF Robotic Arm - Mechatronics Course Project
6 DOF Robotic Arm - Mechatronics Course Project6 DOF Robotic Arm - Mechatronics Course Project
6 DOF Robotic Arm - Mechatronics Course Project
 
Quad rotor
Quad rotorQuad rotor
Quad rotor
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)
 

En vedette

S kcomms da mediaprofile_2012
S kcomms da mediaprofile_2012S kcomms da mediaprofile_2012
S kcomms da mediaprofile_2012WOOSUNG HAN
 
Kerja kemahirah hidup form 1(2012
Kerja kemahirah hidup form 1(2012Kerja kemahirah hidup form 1(2012
Kerja kemahirah hidup form 1(2012sitizafirahshah
 
Teaching for the 21st century diapositivas
Teaching for the 21st century diapositivasTeaching for the 21st century diapositivas
Teaching for the 21st century diapositivasSINDYGALVAN03
 
amistades destructivas
amistades destructivasamistades destructivas
amistades destructivasbomba05
 
Daum쇼핑하우 모바일특가 20120222
Daum쇼핑하우 모바일특가 20120222Daum쇼핑하우 모바일특가 20120222
Daum쇼핑하우 모바일특가 20120222WOOSUNG HAN
 
Permendagri no. 42 tahun 2010
Permendagri no. 42 tahun 2010Permendagri no. 42 tahun 2010
Permendagri no. 42 tahun 2010ervinayulianti
 

En vedette (9)

S kcomms da mediaprofile_2012
S kcomms da mediaprofile_2012S kcomms da mediaprofile_2012
S kcomms da mediaprofile_2012
 
Kerja kemahirah hidup form 1(2012
Kerja kemahirah hidup form 1(2012Kerja kemahirah hidup form 1(2012
Kerja kemahirah hidup form 1(2012
 
Presentación2
Presentación2Presentación2
Presentación2
 
Actividad 2 gauss
Actividad 2 gaussActividad 2 gauss
Actividad 2 gauss
 
Teaching for the 21st century diapositivas
Teaching for the 21st century diapositivasTeaching for the 21st century diapositivas
Teaching for the 21st century diapositivas
 
amistades destructivas
amistades destructivasamistades destructivas
amistades destructivas
 
Structure
StructureStructure
Structure
 
Daum쇼핑하우 모바일특가 20120222
Daum쇼핑하우 모바일특가 20120222Daum쇼핑하우 모바일특가 20120222
Daum쇼핑하우 모바일특가 20120222
 
Permendagri no. 42 tahun 2010
Permendagri no. 42 tahun 2010Permendagri no. 42 tahun 2010
Permendagri no. 42 tahun 2010
 

Similaire à Project report

Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...
Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...
Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...IJPEDS-IAES
 
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA IJECEIAES
 
Speed Control of Induction Motor by Using Intelligence Techniques
Speed Control of Induction Motor by Using Intelligence TechniquesSpeed Control of Induction Motor by Using Intelligence Techniques
Speed Control of Induction Motor by Using Intelligence TechniquesIJERA Editor
 
IISC CPDM Task 1 Report
IISC CPDM Task 1 ReportIISC CPDM Task 1 Report
IISC CPDM Task 1 ReportPARNIKA GUPTA
 
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...Ahmed Momtaz Hosny, PhD
 
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALVaishnavi Agrawal
 
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...IRJET Journal
 
Nonlinear integral control for dc motor speed control with unknown and variab...
Nonlinear integral control for dc motor speed control with unknown and variab...Nonlinear integral control for dc motor speed control with unknown and variab...
Nonlinear integral control for dc motor speed control with unknown and variab...Saif al-din ali
 
Nonlinear integral control for dc motor speed control
Nonlinear integral control for dc motor speed controlNonlinear integral control for dc motor speed control
Nonlinear integral control for dc motor speed controlSaif al-din ali
 
D0255033039
D0255033039D0255033039
D0255033039theijes
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Ionela
 
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC cscpconf
 
INDUSTRIAL DRIVES Induction motor drive Performance characteristics Torque s...
INDUSTRIAL DRIVES Induction motor drive Performance characteristics  Torque s...INDUSTRIAL DRIVES Induction motor drive Performance characteristics  Torque s...
INDUSTRIAL DRIVES Induction motor drive Performance characteristics Torque s...8pn74jjkpy
 
Speed Control of PMBLDC Motor using LPC 2148 – A Practical Approach
Speed Control of PMBLDC Motor using  LPC 2148 – A Practical Approach  Speed Control of PMBLDC Motor using  LPC 2148 – A Practical Approach
Speed Control of PMBLDC Motor using LPC 2148 – A Practical Approach IJEEE
 
altivar 11 manual.pdf
altivar 11 manual.pdfaltivar 11 manual.pdf
altivar 11 manual.pdfFlashPT
 
AUTOMATIC WHITEBOARD CLEANER
AUTOMATIC WHITEBOARD CLEANERAUTOMATIC WHITEBOARD CLEANER
AUTOMATIC WHITEBOARD CLEANERFahim Mahmud
 

Similaire à Project report (20)

Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...
Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...
Adaptive Fuzzy Integral Sliding-Mode Regulator for Induction Motor Using Nonl...
 
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA
A Simplified Speed Control Of Induction Motor based on a Low Cost FPGA
 
Presentation200 (1).ppt
Presentation200 (1).pptPresentation200 (1).ppt
Presentation200 (1).ppt
 
Speed Control of Induction Motor by Using Intelligence Techniques
Speed Control of Induction Motor by Using Intelligence TechniquesSpeed Control of Induction Motor by Using Intelligence Techniques
Speed Control of Induction Motor by Using Intelligence Techniques
 
Final pid2
Final pid2Final pid2
Final pid2
 
IISC CPDM Task 1 Report
IISC CPDM Task 1 ReportIISC CPDM Task 1 Report
IISC CPDM Task 1 Report
 
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...
Development of a Customized Autopilot for Unmanned Helicopter Model Using Gen...
 
Control servo motors
Control servo motors  Control servo motors
Control servo motors
 
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWALJOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
JOYSTICK BASED DC MOTOR SPEED CONTROL SYSTEM by VAISHNAVI AGRAWAL
 
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...
IRJET- Implementation of Data Acquisition System (DAQ) in an All Terrain Vehi...
 
Nonlinear integral control for dc motor speed control with unknown and variab...
Nonlinear integral control for dc motor speed control with unknown and variab...Nonlinear integral control for dc motor speed control with unknown and variab...
Nonlinear integral control for dc motor speed control with unknown and variab...
 
Nonlinear integral control for dc motor speed control
Nonlinear integral control for dc motor speed controlNonlinear integral control for dc motor speed control
Nonlinear integral control for dc motor speed control
 
D0255033039
D0255033039D0255033039
D0255033039
 
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
Howto Design a Stepper Motor System Using an 8-bit Freescale microcontroller ...
 
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC
STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC
 
INDUSTRIAL DRIVES Induction motor drive Performance characteristics Torque s...
INDUSTRIAL DRIVES Induction motor drive Performance characteristics  Torque s...INDUSTRIAL DRIVES Induction motor drive Performance characteristics  Torque s...
INDUSTRIAL DRIVES Induction motor drive Performance characteristics Torque s...
 
Speed Control of PMBLDC Motor using LPC 2148 – A Practical Approach
Speed Control of PMBLDC Motor using  LPC 2148 – A Practical Approach  Speed Control of PMBLDC Motor using  LPC 2148 – A Practical Approach
Speed Control of PMBLDC Motor using LPC 2148 – A Practical Approach
 
altivar 11 manual.pdf
altivar 11 manual.pdfaltivar 11 manual.pdf
altivar 11 manual.pdf
 
AUTOMATIC WHITEBOARD CLEANER
AUTOMATIC WHITEBOARD CLEANERAUTOMATIC WHITEBOARD CLEANER
AUTOMATIC WHITEBOARD CLEANER
 
Mpmc b1
Mpmc b1Mpmc b1
Mpmc b1
 

Dernier

Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance managementVaishnaviGunji
 
BeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfBeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfDerekIwanaka1
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizharallensay1
 
Cracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' SlideshareCracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' SlideshareWorkforce Group
 
Buy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified Binance Account
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1kcpayne
 
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...NadhimTaha
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...meghakumariji156
 
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165meghakumariji156
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSpanmisemningshen123
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfbelieveminhh
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxCynthia Clay
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Adnet Communications
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingNauman Safdar
 
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGParadip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGpr788182
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannaBusinessPlans
 

Dernier (20)

Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance management
 
BeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfBeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdf
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Cracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' SlideshareCracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' Slideshare
 
HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024
 
Buy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From Seosmmearth
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
 
Buy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail AccountsBuy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail Accounts
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGParadip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 Updated
 

Project report

  • 1. Microprocessor Application Lab Term Project - Ganesh Kumar M (08ME 3305) - Akshay Meena (08ME3304) - Anoop S (08ME3303) - V. Rahul Soni (11ME63R37) - Manoj Kumar Pandit (11ME63D02)
  • 2. Introduction A traction control system (TCS) is typically secondary function of the Anti-Lock Braking system on production vehicles, designed to prevent loss of traction of driven road wheels. When invoked it therefore enhances driver control as throttle input applied is mis-matched to the road surface conditions being unable to manage the applied torque. This project is simplified version of such a system. The vehicle is driven by a DC motor. On loss of traction, the system tries to regain it by reducing the power to the DC motor, thus, reducing its speed/torque output. This is similar to the throttle control in TCS of road vehicles. The front wheel speed is taken as the reference speed. It is assumed that the front wheel is in pure rolling and there is no longitudinal slip. The target of the bot is to finish a circuit in the optimal speed. Project Description and Algorithm In this project our main aim was to build a simplified traction control system. - First, the front wheel speed is read for reference using a magnetic speed sensor. - Using the front wheel speed, we compare it to the speed of the motor. If the front wheel speed is more than motor speed, the power to the DC motor is reduced to match the reference speed. - The steering is controlled by another DC motor.
  • 3. List of components: Component Name Quantity Cost Motor 6V 25000 rpm 1 - Motor 6V 1 - USB ATmega328 Arduino 1 750/- 2500/- Vehicle Chassis 1 *(inclusive of Motors) Magnetic Speed Sensor 1 - Motor Controller 3 300/-
  • 4. Miscellaneous - 450/- Total 4000/- ATmega328 Pin layout
  • 5. The Program (with Feedback system) #include <avr/io.h>
  • 6. #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <inttypes.h> #include <avr/delay.h> #include <util/delay.h> int MotorBackBackward = 9; int MotorBackForward = 10; int MotorFrontLeft = 5; int MotorFrontRight = 6; #define NORMAL 1000 #define TURN 1000 #define forward 5000 int i=0; uint16_t time=0,task=0; int16_t defTime=0; bool edge=true, lastEdge = true; void InitTimer() { TCCR1A = (1<<COM1B0); TCCR1B = (1<<CS10); TIMSK1 = (1<<OCIE1B); } void InitADC() { ADMUX |= (1<<ADLAR)|(1<<REFS0); ADCSRA |= (1<<ADEN)|(1<<ADPS0); } void ReadADC() { ADCSRA|=(1<<ADSC); while(!(ADCSRA&(1<<ADIF))); if(ADC-509) { edge = true; } else edge = false; } ISR(TIMER1_COMPB_vect) { if(lastEdge&&edge) { } else { lastEdge = edge; defTime = time; time=0; } time++; task++; } void setup() {
  • 7. pinMode(MotorBackBackward,OUTPUT); pinMode(MotorBackBackward,OUTPUT); pinMode(MotorFrontLeft,OUTPUT); pinMode(MotorFrontRight,OUTPUT); InitTimer(); InitADC(); SREG|=(1<<7); sei(); OCR1B = 16000; stopAll(); } void loop() { moveForward(173+2*(30-time/50)); if(task<forward) { stopTurn(); } else { turnLeft(); } if(task>=2*forward) task = 0; /* moveForward(); delay(NORMAL); stopMove(); turnLeft(); delay(1000); delay(TURN); delay(TURN); //turnRight(); turnRight(); moveForward(); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); stopMove(); turnLeft(); stopTurn();*/ } /*void moveForwardPWMint value) { analogWrite(MotorBackBackward,0); analogWrite(MotorBackForward,value); } void moveBackwardPWM(int value)
  • 8. { analogWrite(MotorBackBackward,value); analogWrite(MotorBackForward,0); } */ void moveForward(uint8_t pwm) { analogWrite(MotorBackBackward,0); analogWrite(MotorBackForward,pwm); } void moveBackward() { digitalWrite(MotorBackBackward,HIGH); digitalWrite(MotorBackForward,LOW); } void turnRight() { digitalWrite(MotorFrontLeft,HIGH); digitalWrite(MotorFrontRight,LOW); } void turnLeft() { digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,HIGH); } void stopTurn() { digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,LOW); } void stopMove() { digitalWrite(MotorBackBackward,LOW); digitalWrite(MotorBackForward,LOW); } void stopAll() { digitalWrite(MotorBackBackward,LOW); digitalWrite(MotorBackForward,LOW); digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,LOW); } The Program (without Feedback system) int MotorBackBackward = 9; int MotorBackForward = 10;
  • 9. int MotorFrontLeft = 5; int MotorFrontRight = 6; #define NORMAL 1000 #define TURN 1000 void setup() { pinMode(MotorBackBackward,OUTPUT); pinMode(MotorBackBackward,OUTPUT); pinMode(MotorFrontLeft,OUTPUT); pinMode(MotorFrontRight,OUTPUT); stopAll(); } void loop() { moveForward(); delay(NORMAL); stopMove(); turnLeft(); delay(1000); delay(TURN); delay(TURN); turnRight(); moveForward(); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); delay(TURN); stopMove(); turnLeft(); stopTurn(); } /*void moveForwardPWMint value) { analogWrite(MotorBackBackward,0); analogWrite(MotorBackForward,value); } void moveBackwardPWM(int value) { analogWrite(MotorBackBackward,value); analogWrite(MotorBackForward,0); } */ void moveForward() { digitalWrite(MotorBackBackward,LOW); digitalWrite(MotorBackForward,HIGH); }
  • 10. void moveBackward() { digitalWrite(MotorBackBackward,HIGH); digitalWrite(MotorBackForward,LOW); } void turnRight() { digitalWrite(MotorFrontLeft,HIGH); digitalWrite(MotorFrontRight,LOW); } void turnLeft() { digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,HIGH); } void stopTurn() { digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,LOW); } void stopMove() { digitalWrite(MotorBackBackward,LOW); digitalWrite(MotorBackForward,LOW); } void stopAll() { digitalWrite(MotorBackBackward,LOW); digitalWrite(MotorBackForward,LOW); digitalWrite(MotorFrontLeft,LOW); digitalWrite(MotorFrontRight,LOW); }