Skip to content

Using basic RTOS concepts like tasks, scheduling algorithms, RTOS customisation and concurrent real-time programming, a RTOS Robot with Bluetooth capabilities was built.

Notifications You must be signed in to change notification settings

R-Ramana/CG2271

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

CG2271 2021 S1

This repository contains all the code used for this iteration of CG2271. Lab and Project code used are located in their respective folders.

Project

The project specifications can be found here.

The project report can be found here.

Click the image below for a short video on our project!

Project Video

The aim of the project is to design a Real-Time Operating System (RTOS) based robotic car that will be controlled through an Android App. The robotic car must be able to fulfil the following features:

  1. Establish a BT connection with the Android App
  2. Receive commands from the Android App and execute the correct response
  3. Move the car in multiple directions.
  4. Control the various LED’s according to the car’s status
  5. Play different sounds/tunes according to the cars status.

Features

BT connectivity

  • Flash Green LED to indicate connection
  • Receive specific data from BT06 then start LED and play tone
  • Create function to receive data from app
  • Call Flash green LED
  • Call play tune

Motor Control

  • Move in all 4 directions
  • Have function for each direction
  • Control all 8 pins for each direction
  • TPM/PWM initialize all 8 pins using library functions
  • Choose which pins belong to which wheel
  • Create function to configure each wheel
  • Create function to configure movement using function for wheels
  • Create function to receive data from app and choose direction

LED Control

  • Green LEDs running mode when moving
  • Green LED all lit when stationary
  • RED LED flashing (1 Hz) when moving
  • RED LED flashing (2 Hz) when stationary
  • GPIO initialize all 11 pins using library functions
  • Abstract GPIO initialization
  • Create function to control GPIO pins
  • Create function for running mode vs all lit mode
  • Create function for 1 Hz and 2 Hz

Audio Control

  • Continuously play song from start to end
  • Play unique tone at the end
  • TPM/PWM initialize 1 pin using library functions
  • Create function to play tune running vs tune end

About

Using basic RTOS concepts like tasks, scheduling algorithms, RTOS customisation and concurrent real-time programming, a RTOS Robot with Bluetooth capabilities was built.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages