/Control_Robot_with_Joystick_using_PIC16F877

This is a code for a robot with four-wheel control using a joystick and PIC16F877 microcontroller. The code includes functions for controlling the robot's movements in different directions, speed, angle, lift, and shooting.

Primary LanguageCMIT LicenseMIT

Control Robot with Joystick using PIC16F877

Description

This is a code for a robot with four-wheel control using a joystick and PIC16F877 microcontroller.

The code includes functions for controlling the robot's movements in different directions, speed, angle, lift, and shooting. The robot also has a sensor for detecting magazine, and there is a function for delaying the robot if the magazine is detected for ABU Robot Contest Thailand Championship 2017.

Prerequisites

The following hardware is required to run this code:

  • PIC16F877 Microcontroller
  • Joystick
  • Four-wheel robot
  • Magazine sensor

Usage

To use this code, you need to upload it to the PIC16F877 microcontroller. The code is written in C language and can be compiled and uploaded using MPLAB X IDE.

The robot is controlled using a joystick. The following keys control the robot's movements:

  • A: Move forward
  • B: Move backward
  • C: Move left
  • D: Move right
  • H: Roll right
  • G: Roll left
  • K: Shoot
  • I: Magazine
  • L: Increase speed of the roll and shoot
  • J: Decrease speed of the roll and shoot
  • E: Lift up
  • F: Lift down
  • M: Angle up
  • N: Angle down

Example

License

This code is licensed under the MIT License. See the LICENSE file for details.