kblox Neo+ Robotics Kit

    Table Runner Car

    Introduction

    A table runner car is a type of robot that detects the surface when running on the table and never falls from the table. It’s a Kblox Neo-based robot that uses IR sensor to sense the surface of the table on which it is running and as soon as the IR sensor on the rover crosses the surface it stops detecting any object and the motors of the rover stop keeping it from falling through the surface.

     

    Components required

    • Kblox Neo
    • IR Sensor [Qty-1]
    • Chassis
    • BO motor [Qty-2]
    • Wheels 75mm [Qty-2]
    • Castor wheel
    • Screw-driver
    • Rechargable Battery
    • A to B USB cable
    • Jumper wires

    Code

    #include"kblox.h"
    
    kblox kit;
    void setup() {
    
      Serial.begin(9600);                   //Intialize the serial monitor 
      kit.motor_begin(12, 11, 5, 3);        // define motors pins
      kit.ir_begin(9);                      // define ir sensor pin 
    
    }
    
    void loop() {
      int ir = kit.ir_read();              //Read ir sensor data and stored in variable ir 
      Serial.println(ir);                  //print stored data
    
      if (ir == HIGH) {                   // if ir sensor data is high move bot forward else turn bot left 
        kit.forward();
      }
      else {
        kit.left();
      }
    
    }

    Applications:

    • In space rovers, to prevent the robot falling in craters
    • Warehouse bots, which navigate the warehouse and are suspectable to stairs
    • Follow me robots