SlideShare ist ein Scribd-Unternehmen logo
1 von 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);
}

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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)
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie Microprocessor Application Lab Traction Control Project

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
 

Ähnlich wie Microprocessor Application Lab Traction Control Project (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
 

Kürzlich hochgeladen

Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxsaniyaimamuddin
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMVoces Mineras
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCRashishs7044
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditNhtLNguyn9
 
Call Girls Contact Number Andheri 9920874524
Call Girls Contact Number Andheri 9920874524Call Girls Contact Number Andheri 9920874524
Call Girls Contact Number Andheri 9920874524najka9823
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024Adnet Communications
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in PhilippinesDavidSamuel525586
 

Kürzlich hochgeladen (20)

Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
 
Memorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQMMemorándum de Entendimiento (MoU) entre Codelco y SQM
Memorándum de Entendimiento (MoU) entre Codelco y SQM
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal audit
 
Call Girls Contact Number Andheri 9920874524
Call Girls Contact Number Andheri 9920874524Call Girls Contact Number Andheri 9920874524
Call Girls Contact Number Andheri 9920874524
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in Philippines
 

Microprocessor Application Lab Traction Control Project

  • 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); }