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
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 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.
Function References
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 ”.
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
Things to Do
| Elapsed time in (days or weeks or month or quarter) since start of the project | Milestone | Deliverable |
|---|---|---|
| Month 1 | 1 Month | 1 Month |
Accident is the major reason of death because there is a more risk to human life on the ro...
Social Networking Sites (SNS) influence people?s daily life with a remaining rapidity to b...
Virtual Patient Simulators (VPS) is a technology that allow users to immerse into an illus...
Due to development of the microcontroller technology and the high speed digital signal pro...
Throwable Unmanned Ground Vehicle is a self-relying object that is able to tackle situatio...