Tachyon is a Remote Controlled Obstacle Avoiding Robot. It is Bluetooth Controlled, i.e. Wireless Controller. It uses TachyonController application as a Bluetooth Controller.
*Note: Address of HC-05 is hard codded in the application, rebuild the application for personal use-cases.
Third party Controllers are Supported as well.
These applications are needed to be configured as per the Constants.h
or vise versa.
- AFMotor.h
- Servo.h
- Arduino UNO
- L293D Motor Shield. (Four motors + 2 servos)
- Servo Motor SG-90
- HC-SR04 Ultrasonic Sensor
- HC-05 Bluetooth Module
- Chassis (4WD)
- 4x Gear Motors + Wheels
Again only Constants.h
file is needed to setup. As per dimentions and turning radius of the vehicle.
You can achive personalisation.
Bluetooth Manager has few functions which are used to communicate between the controller and vehicle.
Next
method returns a character(input) if any or returnsSTATE_NULL
.Send
method is used to send any character to the controller.
Constants.h is a simple config file which can be used to customize robot as per useage
Detection Manager manages the HC-SR04 Sensor. It only has one method GetDistance
which returns the distance in cm.
To manage Motors MotorManager can be used. it uses MOTOR_
constants from Constants.h to setup motors.
It has functions to MoveForward
, MoveBackward
, MoveLeft
, MoveRight
and `Stop which
operates motors at max speed.
This Class manages the servo and keeps track of the currentAngle
of the servo motor.
It has a method RotateTowards
which rotates towards a specific angle with respect to the body,
and not relative to current rotation angle.
Robot controls all the Managers and uses the mentioned Methods as per logic and States.
Robot works on the principle of state machines. The Robot can be either of one state mentioned in Constants.h
.
As per Input th switches between states and works accordingly.
Robot pollsInputs
and assigns the currentState
, as per the inputs and handleInputs
based on the current state.
Also depending upon the currentState
, it automatically switches between states as per requirnment.