Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled Robotic Arm with Bluetooth and Servo Motors

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Robotic Arm with Bluetooth and Servo Motors

Circuit Documentation

Summary

This circuit is designed to control a series of servos and motors through an Arduino UNO microcontroller, which is also interfaced with an HC-05 Bluetooth module for wireless communication. The circuit includes a motor driver shield (l293d) to manage the power requirements and control signals for the motors. Power distribution is managed with common 5V and GND nets to supply the servos, the Bluetooth module, and the motor driver shield.

Component List

Wiring Details

Arduino UNO

MG996R Servos

HC-05 Bluetooth Module

Hobby Motor Gearmotors

Tower Pro SG90 Servos

l293d Motor Driver Shield

Documented Code

#include <Servo.h>

Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;

void setup() {
  // Attach servos to pins
  servo1.attach(3);
  servo2.attach(5);
  servo3.attach(6);
  servo4.attach(9);
  servo5.attach(10);
  servo6.attach(11);

  // Initialize motor driver pins
  pinMode(2, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);

  // Initialize Bluetooth communication
  Serial.begin(9600);
}

void loop() {
  // Example: Move servos and control motors
  servo1.write(90);
  servo2.write(90);
  servo3.write(90);
  servo4.write(90);
  servo5.write(90);
  servo6.write(90);

  // Example: Control motors
  digitalWrite(2, HIGH);
  digitalWrite(4, LOW);
  digitalWrite(7, HIGH);
  digitalWrite(8, LOW);

  delay(1000);

  digitalWrite(2, LOW);
  digitalWrite(4, HIGH);
  digitalWrite(7, LOW);
  digitalWrite(8, HIGH);

  delay(1000);
}

This code is designed to initialize and control the servos and motors connected to the Arduino UNO. It sets up the servo objects, initializes the motor driver pins, and begins serial communication for the Bluetooth module. In the loop function, it provides an example of how to move the servos to a 90-degree position and how to control the motors by toggling the digital pins connected to the motor driver shield.