Chrome Dino Game Player
The Chrome Dino Game Player project is an innovative application that combines hardware and software to spark the joy in robotic projects. There is a 100 RPM BDC Motor with an Encoder is used as an actuator, and an Ambient Light Sensor Module is used as the input sensor, to differentiate the dark colored obstacles from the free road
About Tools and Materials:
SMD USB Gateway (Purchase Here)
Arduino Gateway Module (Purchase Here)
100 RPM BDC Motor with Encoder (Purchase Here)
Ambient Light Sensor Module (Purchase Here)
Step 1: Hardware & Software Overview
Project Key Components
The SMD acts as a bridge between the script and the modules. It is responsible for interpreting the commands sent by the script and translating them into actions that read input from the Ambient Light Sensor Module and actuate the DC motor precisely.
100 RPM BDC Motor with Encoder:
The 100 RPM BDC Motor with Encoder allows the user to press the spacebar when an obstacle is detected. The built-in encoder is the key to control the position of the motor, thus, the user can use the motor to rapidly and repeteadly press the key and get high scores.
The Ambient Light Sensor Module is used to detect the emitted light differences of the dark obstacles and white free road. The module can differentiate thousands of levels of ambient light in terms of lux.
The SMD library is at the heart of the application. It communicates with the SMD using a specific communication protocol, sending commands to read the Ambient Light Sensor Module and actuate the BDC motor.
Project Key Features
Dynamic Obstacle Detection
The Ambient Light Sensor Module that is controlled by the SMD can detect surroundings ambient light intensity several times in a second. It allows to the system to be dynamic and responsive.
Responsive and Real-time Gameplay
The script continuously monitors the ambient light level, it can be printed on the terminal for more precise control editings and monitoring.
Step 2: Assemble
Getting Started
Hardware Setup
Connect the SMD to the PC or Arduino board using USB Gateway Module or Arduino Gateway Module.
Connect the 100 RPM BDC Motor with Encoder to the motor ports of the SMD and the Ambient Light Sensor Module to the SMD using an RJ-45 cable.
Make sure that the SMD is powered and all connections are correct.
Software Integration
Implement the cursor of the BDC motor to the spacebar of the keyboard, test the code if the motor can precisely press and release the spacebar. Change the position values in
set_position
function if key is not pressed and released correctly.
Project Wiring Diagram
Step 3: Run & Test
Run the Application
Execute the script and launch the Chrome Dino Game.
Observe how the DC motor actuates according to the ambient light intensity and make high scores.
Project Codes
Last updated