This repository contains all the code used for this iteration of CG2271. Lab and Project code used are located in their respective folders.
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!
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:
- Establish a BT connection with the Android App
- Receive commands from the Android App and execute the correct response
- Move the car in multiple directions.
- Control the various LED’s according to the car’s status
- Play different sounds/tunes according to the cars status.
- 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
- 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
- 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 2Hz
- 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