Skip to content

Arduino-based autonomous + Bluetooth-controlled robot featuring PID line following, OLED display, HC-05 connectivity, and dual-servo gripper.

License

Notifications You must be signed in to change notification settings

OwenChong888/Tyran-DualMode-Robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tyran โ€” Dual-Mode Autonomous Robot

MIT License Arduino

Tyran โ€” Dual-Mode Autonomous Robot

A versatile Arduino-based mobile robot capable of autonomous navigation (line following + destination searching) and manual Bluetooth control with a servo gripper. Designed for flexibility, expandability, and educational robotics projects.

๐Ÿš€ Features ๐Ÿ”น Autonomous Mode

Line following using 5 channel IR sensors

Destination detection logic

๐Ÿ”น Manual Mode

Bluetooth HC-05 remote control

Servo-controlled gripper (2ร— SG90) for picking and placing

Smooth proportional motor speed control

๐Ÿ”น Display System

OLED screen for:

Real-time status feedback

Current mode

Signals to the user

๐Ÿง  System Overview

Tyran operates in two switches modes:

Mode Description Autonomous Follows line path, searches for specific patterns/destinations, executes defined tasks. Manual Controlled via Bluetooth app; joystick-like movement + gripper control. ๐Ÿ”ง Hardware Used Component Description Arduino UNO Main microcontroller L298N Motor Driver Drives dual DC motors OLED 128ร—64 Display system HC-05 Bluetooth module SG90 Servo ร— 2 Gripper mechanism 18650 Battery ร—5 Power supply 2-Wheel Motor Chassis Base platform IR Sensors Line tracking ๐Ÿช› Pin Connections

(Adjust according to your code โ€” here is a template)

Motor Driver (L298N) Function Arduino Pin ENA 3 IN1 12 IN2 11 IN3 7 IN4 6 ENB 5 Bluetooth HC-05 HC-05 Pin Arduino Pin TX 8 / SoftwareSerial RX RX 9 / SoftwareSerial TX Servos Servo Pin Gripper Servo 1 12 Gripper Servo 2 4 OLED

โ–ถ๏ธ How to Use

  1. Install Required Libraries

SSD1306Ascii

Servo

SoftwareSerial (built-in)

  1. Upload the Code

Open tyran_robot.ino โ†’ Select Arduino UNO โ†’ Upload.

  1. Power the Robot

Use 3 ร— 18650 batteries for motor and arduino Use 2 x 18650 batteries for servo (through a proper holder + 5V regulator if needed).

  1. Control Modes

Button A / Switch โ†’ Autonomous Mode

Button X / Bluetooth โ†’ Manual Mode

Use any Bluetooth controller app to send commands.

๐Ÿ–ฅ๏ธ Environment Setup & Installation

  1. Install Arduino IDE

Download from the official Arduino website. Supports Windows, macOS, and Linux.

  1. Install Required Libraries

Open: Arduino IDE โ†’ Tools โ†’ Manage Libraries

Install:

SSD1306Ascii

Servo

SoftwareSerial is built-in

  1. Select the Correct Board

In Arduino IDE:

Tools โ†’ Board โ†’ Arduino AVR Boards โ†’ Arduino Uno

  1. Select the COM Port

Tools โ†’ Port โ†’ COMx (Arduino Uno)

If not detected, install CH340 driver (for Uno clones).

  1. Upload the Code

Clone/download this repository

Open ./code/tyran_robot.ino

Click:

โœ” Verify

โ†’ Upload

โ–ถ๏ธ How to Use the Robot Autonomous Mode

Switch robot to autonomous

Robot will follow lines using IR sensors

OLED displays mode and debug info

Manual Mode

Pair phone with HC-05 (default PIN: 1234 or 0000)

Open any Bluetooth controller app

Control movement + servo gripper

๐ŸŽฅ Photo

image

About

Arduino-based autonomous + Bluetooth-controlled robot featuring PID line following, OLED display, HC-05 connectivity, and dual-servo gripper.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages