Stephanie Piper
Published © CC BY

Easy DIY Companion Bot Build

Build your own companion bot in this choose your own adventure style guide. Choose a chassis type and make your bot come to life.

IntermediateFull instructions provided15 hours1,771
Easy DIY Companion Bot Build

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Arduino Nano Screw Terminal
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
Standard Servo Motor
×2
LED (generic)
LED (generic)
×2
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1
Slide Switch
Slide Switch
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Chassis STL Files

Here's the 3D printable files to make the chassis types.

Schematics

Circuit Diagram

Wire your bot together with this circuit diagram.

Code

Arduino Code

C/C++
Makes servo motors turn and an LED turn on.
#include <Servo.h>

Servo servo1; 
Servo servo2;


int i = 0;

void setup() {

  pinMode(5, OUTPUT);
  
  servo1.attach(8,880,2120);
  servo2.attach(7,880,2120); 

}

void loop() {
  for (i = 0; i < 10; i++) { 
    servo1.write(i);              
   
      
    delay(10);                      
  }
  for (i = 10; i > 0; i--) { 
    servo1.write(i);                

    delay(10);                      
  }

    for (i = 0; i < 10; i++) { 
            
    servo2.write(i);     
      
    delay(10);                      
  }
  for (i = 10; i > 0; i--) { 
             
    servo2.write(i);     
     
    delay(10);                      
  }
  digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
}

Credits

Stephanie Piper

Stephanie Piper

1 project • 3 followers

Comments