SlideShare uma empresa Scribd logo
1 de 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);
}

Mais conteúdo relacionado

Mais procurados

Microstepping of stepper Motor
Microstepping of stepper MotorMicrostepping of stepper Motor
Microstepping of stepper Motor
ANUP PALARAPWAR
 
Final Animal Loading Device Presentation
Final Animal Loading Device PresentationFinal Animal Loading Device Presentation
Final Animal Loading Device Presentation
Bolt Zhang
 
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
 

Mais procurados (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)
 

Destaque

Destaque (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
 

Semelhante a Project report

D0255033039
D0255033039D0255033039
D0255033039
theijes
 
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
 

Semelhante a 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
 

Último

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Sheetaleventcompany
 

Último (20)

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 

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