DIY Easy Cardboard Robot Arduino

Arduino Car

Project overview

Tools:

  • Ruller
  • Scissors
  • Screwdriver
  • Nuts and bolts
  • Rubber bands

Electronics:

  • Arduino board
  • Breadboard
  • Jumper wires
  • Bluetooth module MLT-BT05
  • 4xAA Battery pack
  • 2 x 360deg micro servo

Building time:

45 min

Difficulty:

Chasis: Medium

Electronics: Advanced

Robot info

This project aims to be the simplest Arduino robot chassis possible. With only one folded piece of cardboard and two small cardboard wheels you can build a minimalistic robot rover but it actually can perform quite well in most popular robotics tasks:

  1. 1. Remote control with a bluetooth app
  2. 2. Sumo fights
  3. 3. Avoiding obstacles with a distance sensors
  4. 4. Light following

Presented chassis design is a bare minimum. Fell free to add any modifications to it to add some character or new functionalities.

Robot building manual

https://youtu.be/5ssTNiYDvaA

Robot design plan

Electronics

LOFI Control App

To control the robot use our web app – LOFI Control for Arduino

Arduino code

#include <Servo.h>

Servo myservo;
Servo myservo2;  


int zero1 = 90;
int zero2 = 90;
int move = 0;
int reading = 0;

void setup() {

  Serial.begin(57600);

  myservo.attach(9);
  myservo2.attach(10);

  myservo.write(zero1);
  myservo2.write(zero2);
}

void loop() {
  app(); // interpretation of commands received from the LOFI Control App
}


void forward() {
  myservo.write(180);
  myservo2.write(0);

}

void left() {
  myservo.write(0);
  myservo2.write(0);

}

void back() {
  myservo.write(0);
  myservo2.write(180);
 
}

void right() {
  myservo.write(180);
  myservo2.write(180);

}

void app() {


  if (Serial.available() > 0) {
    move = Serial.read();
  }

  if (move == 1) {
    forward();
  }

  if (move == 2) {
    left();
  }

  if (move == 3) {
    right();
  }

  if (move == 4) {
    back();
  }

  if (move == 5) {
  
  }


  if (move == 0) {
    myservo.write(zero1);
    myservo2.write(zero2);
  }
}