Ishita TripathiHitesh Kukreja
Published

How To Create Navigation Control Robot

This Project is made using TI-RSLK. This robot is controlled through the navigation button using TI-RSLK app.

IntermediateFull instructions provided2 hours1,538
How To Create Navigation Control Robot

Things used in this project

Hardware components

TI Robotics System Learning Kit TI-RSLK
Texas Instruments TI Robotics System Learning Kit TI-RSLK
×1

Software apps and online services

Energia
Texas Instruments Energia

Story

Read more

Schematics

Schematic Diagram

Connection diagram of Bluetooth Module and POLULO BOARD connection with MSP432.

Code

Navigation Control Robot

Processing
The program is written on Energie IDE
#define LS 40    //Left motor

#define RS 39    //Right motor

#define LD 28    //Left motor direction pin

#define RD 29    //Right motor direction pin

 

int speedr = 0, speedl = 0; //sets the speed of motor using PWM

int ldir = 0, rdir = 0;  // 0 forward // 1 backward

void setup() {

  // put your setup code here, to run once:

  Serial.begin(9600);

  Serial1.begin(9600);

  pinMode(LD, OUTPUT);

  pinMode(RD, OUTPUT);

}

 

void loop() {

   char c = 0;

  // put your main code here, to run repeatedly:

  if(Serial1.available()){

    c = Serial1.read();

    Serial.println(c);

  }

  switch(c)

  {

    case 'F' : ldir = rdir = 0;  //Forward Movement

               speedr = 50;

               speedl = 50;

               break;

              

    case 'B' : ldir = rdir = 1;  //Backward Movement

               speedr = 50;

               speedl = 50;

               break;

               

    case 'R' : ldir = 0;  //Move towards left

               speedl = 50;

               speedr = 0;

               break;

              

    case 'L' : rdir = 0;  //Move towards right

               speedl = 0;

               speedr = 50;

               break;

              

     default : speedr = speedl = 0;  //do nothing when no char

               break;

  }

digitalWrite(LD, ldir);

digitalWrite(RD, rdir);

analogWrite(LS, speedl);

analogWrite(RS, speedr);

delay(1000);

}

Credits

Ishita Tripathi

Ishita Tripathi

1 project • 12 followers
Hitesh Kukreja

Hitesh Kukreja

3 projects • 4 followers
Thanks to Texas Instruments and GLA UNIVERSITY.

Comments

Add projectSign up / Login