Adil Khan 11 months ago
AdiKhanOfficial #FYP Ideas

Race Car Dashboard

This classic game may make some of us feel childhood nostalgia. The game-play is simple, try to avoid hitting opponent cars and get many score as possible. The car can switch between 5 lanes, and there are 15 different speeds. As speed increases, opponent cars will run faster, making the game more d

Project Title

Race Car Dashboard

Project Area of Specialization

Computer Science

Project Summary

This classic game may make some of us feel childhood nostalgia. The game-play is simple, try to avoid hitting opponent cars and get many score as possible. The car can switch between 5 lanes, and there are 15 different speeds. As speed increases, opponent cars will run faster, making the game more difficult.

Wiring

Stack PHPoC shield on Arduino.

Connect pin GND, VCC, and SIG of rotary angle sensor to GND, 5V and A0 of Arduino, respectively.

Data Flow

Arduino ---> PHPoC Shield ---> Web browser

User interacts with rotary angle sensor. The input signal value of rotary angle sensor is used to switch the car's position.

Arduino reads the value from rotary angle sensor. The input ADC values are divided into 5 different levels. Switching between levels means changing the lane. Simply, if the input signal is switched to another level, Arduino will send the updated level to PHPoC Shield.

When receiving the value, PHPoC WiFi Shield sends it to Web Browser via Websocket. Then, JavaScript function will update the position (lane) of the car. JavaScript program will continuously update position of opponents and game speed as well.

Project Objectives

Function References

  • pinMode()
  • analogRead()
  • digitalWrite()
  • Serial.begin()
  • Serial.println()
  • for loop
  • while loop
  • if else
  • loop()
  • setup()

Project Implementation Method

COMPONENTS AND SUPPLIES

 

Arduino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.. You can tinker with your Uno without worrying too much about doing something wrong, worst case scenario you can replace the chip for a few dollars and start over again.

"Uno" means one in Italian and was chosen to mark the release of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the reference versions of Arduino, now evolved to newer releases. The Uno board is the first in a series of USB Arduino boards, and the reference model for the Arduino platform; for an extensive list of current, past or outdated boards see the Arduino index of boards.

 
 

PHPoC Shield for Arduino connects Arduino to Ethernet or Wi-Fi networks. Attach this board over Arduino and connect a LAN cable. After a simple network setup, Arduino is connected to the Internet. To use a wireless LAN, connect to a WIFI dongle. The network function of this shield is based on the TCP/IP stack using PHPoC interpreter. The shield can be easily accessed by Phpoc Library. Phpoc Library is very similar to the usage of Arduino Ethernet library or WIFI library. Therefore, source codes using existing Ethernet library or WIFI library can be used immediately after modifying just few lines. It will surely reduce trials and errors of users with the previous experience using Ethernet shield or WIFI shield. Furthermore, Phpoc Library has a wider range of applications since it supports a variety of API absent from the existing libraries. Especially using HTML5 websockets, users can create real-time web-based applications very easily.

USB Wifi dongle

A dongle is a small piece of computer hardware that connects to a port on another device to provide it with additional functionality, or enable a pass-through to such a device that adds functionality.

In computing, the term was initially synonymous with software protection dongles—a form of hardware digital rights management where a piece of software will only operate if a specified dongle—which typically contains a license key or some other cryptographic protection mechanism—is plugged into the computer while it is running.

Rotary angle sensor produces analog output between 0 and Vcc (5V DC with Seeeduino) on its D1 connector. The D2 connector is not used. The angular range is 300 degrees with a linear change in value. The resistance value is 10k ohms, perfect for Arduino use. This may also be known as a “potentiometer ”.

 

 

Benefits of the Project

This classic game may make some of us feel childhood nostalgia. The game-play is simple, try to avoid hitting opponent cars and get many score as possible. The car can switch between 5 lanes, and there are 15 different speeds. As speed increases, opponent cars will run faster, making the game more difficult.

Hardware game 

Technical Details of Final Deliverable

Things to Do

  • Set up WiFi connection for PHPoC shield (SSID and password)
  • Upload new UI to PHPoC shield
  • Upload Arduino code
  • Set up WiFi connection for PHPoC Shield
  • Upload new Web User Interface to PHPoC Shield
  • Upload code to PHPoC shield using PHPoC debugger.
  • Upload Arduino Code
  • Install PHPoC Library for Arduino
  • Upload Arduino code to Arduino
  • Click serial button on Arduino IDE to get the IP address.
  • Open web browser, type http:// relace_ip_address_here/remote_racing_game.php
  • Click connect button and enjoy the game.

Final Deliverable of the Project

Hardware System

Core Industry

IT

Other Industries

Core Technology

Internet of Things (IoT)

Other Technologies

Sustainable Development Goals

Good Health and Well-Being for People, Quality Education

Required Resources

Elapsed time in (days or weeks or month or quarter) since start of the project Milestone Deliverable
Month 11 Month1 Month
If you need this project, please contact me on contact@adikhanofficial.com
Real Time Vehicle Crash Avoidance System using VANET

Accident is the major reason of death because there is a more risk to human life on the ro...

1675638330.png
Adil Khan
11 months ago
Social media personality analysis

Social Networking Sites (SNS) influence people?s daily life with a remaining rapidity to b...

1675638330.png
Adil Khan
11 months ago
Development of Virtual Patient Simulator

Virtual Patient Simulators (VPS) is a technology that allow users to immerse into an illus...

1675638330.png
Adil Khan
11 months ago
ENERGY EFFICIENT IN WIRELESS SENSING NETWORK

Due to development of the microcontroller technology and the high speed digital signal pro...

1675638330.png
Adil Khan
11 months ago
Throwable UGV

Throwable Unmanned Ground Vehicle is a self-relying object that is able to tackle situatio...

1675638330.png
Adil Khan
11 months ago