chris g
Published

CG34 - The Companion Bot

An AI Companion robot controlled by an Arduino Uno, and your laptop.

IntermediateWork in progress2 hours176
CG34 - The Companion Bot

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
LED (generic)
LED (generic)
Any color you want.
×1
LED Dot Matrix Display, Red
LED Dot Matrix Display, Red
×1
Intel RealSense Camera
Intel RealSense Camera
This is just a placeholder; use any USB camera that can connect to your laptop.
×1
Desktop Microphone, Unidirectional
Desktop Microphone, Unidirectional
Same for this, use any mic that can connect to your laptop
×1
Speaker: 3W, 4 ohms
Speaker: 3W, 4 ohms
Same again, use a small speaker that can connect to your laptop. (but make sure it's small!)
×1

Software apps and online services

Arduino IDE
Arduino IDE
penguinmod
This is what i used to program the AI.

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)
I didn't use one, but if you want your CG34's wires to be more stable, then use this.

Story

Read more

Custom parts and enclosures

Head

The head of your CG34.

Body

The Body of your CG34.

Schematics

Schematics

Code

Code

Arduino
The code for the robot. Upload it to your Uno through Arduino IDE.
// C++ code
//
#include <Servo.h>

Servo servo_7;

void setup()
{
  pinMode(LED_BUILTIN, OUTPUT);
  servo_7.attach(7, 500, 2500);

  digitalWrite(LED_BUILTIN, HIGH);
}

void loop()
{
  servo_7.write(random(0, 180 + 1));
  delay(random(0, 5000 + 1)); // Wait for random(0, 5000 + 1) millisecond(s)
}

Credits

chris g

chris g

1 project • 0 followers

Comments