Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Cozmo Clench Bot — Arduino Nano

A manually controlled object manipulation robot with a dual-mode system — drive mode for navigation and arm mode for claw control. Built for robotics competitions at Mymensingh Engineering College. Controlled wirelessly via Bluetooth, with the full circuit assembled on Veroboard through hand soldering.


Features

  • Dual-mode control: Drive Mode (navigation) and Arm Mode (claw & arm control)
  • Toggle between modes wirelessly via Bluetooth command X
  • Two MG995 servo motors — one for claw open/close, one for arm angle
  • 8-directional drive using dual DC motors with PWM speed control
  • 9 speed levels (1–9) adjustable via Bluetooth
  • Wireless control via Arduino Nano + HC-05/HC-06 Bluetooth module

Hardware

Component Details
Microcontroller Arduino Nano
Bluetooth Module HC-05 / HC-06 (Serial at 9600 baud)
Servo — Claw MG995 on Pin 9 (range 0°–150°)
Servo — Arm MG995 on Pin 10 (range 0°–80°)
Motor Driver L298N / relay-compatible (ENA pin 11, ENB pin 3)
Drive Motors DC gear motors (×2)
Circuit Board Custom Veroboard, fully hand-soldered

Pin configuration

Pin Function
D7 IN1 — Left motor
D5 IN2 — Left motor
D6 IN3 — Right motor
D8 IN4 — Right motor
D11 ENA — Left motor speed (PWM)
D3 ENB — Right motor speed (PWM)
D9 Claw servo signal
D10 Arm servo signal

Bluetooth commands

Drive mode (default)

Command Action
F Move forward
B Move backward
L Turn left
R Turn right
G Forward-left diagonal
I Forward-right diagonal
H Backward-left diagonal
J Backward-right diagonal
S Stop
19 Set speed level
X Switch to Arm Mode

Arm mode (toggle with X)

Command Action
L Claw up (closes grip)
R Claw down (opens grip)
F Arm forward (increases angle)
B Arm back (decreases angle)
S Stop / hold position
X Switch back to Drive Mode

How to use

  1. Upload Cosmo_code_adv.ino to Arduino Nano via Arduino IDE
  2. Power on the robot
  3. Pair your phone with the Bluetooth module
  4. Open a Bluetooth Serial Terminal app
  5. Default mode is Drive Mode — use directional commands to navigate
  6. Send X to switch to Arm Mode and control the claw and arm
  7. Send X again to return to Drive Mode

Built with

C++ Arduino


Competition

Built for robotics competitions at Mymensingh Engineering College. Full circuit prototyped and hand-soldered on Veroboard. Both servos are incrementally controlled with a 50ms move delay for smooth, precise operation.


Mymensingh Engineering College — EEE Department

About

Object manipulation robot — Arduino Nano, MG995 servos, Bluetooth control, 4-channel relay motor driver

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages