DINO GAME USING LDR

by dhamo1999 in Circuits > Arduino

1470 Views, 1 Favorites, 0 Comments

DINO GAME USING LDR

F17GBIEKUQYEPCP.png

Dinosaur Game, also known as T-Rex Game and Dino Runner, is an
in-built browser game in the Google Chrome web browser. The game was created by Sebastien Gabriel in 2014, and can be accessed by hitting the spacebar when offline on Google Chrome.

A LDR(photoresistor) is a passive component that decreases resistance
with respect to receiving luminosity on the component's sensitive surface. The resistance of a photoresistor decreases with increase in incident light intensity.If some obstacle come towards ldr surface then intensity towards ldr will decreases then arduino control servo to press spacebar.

otherwise spacebar will not be presses so that servo comes to unpressed position.

MATERIALS REQUIRED

Untitled design(44).png

1)ARDUINO (UNO,NANO,MINI,ETC)

2)LDR

3)RESISTOR

4)JUMPERS

5)BREADBOARD

6)ARDUINO CABLE

7)SERVO

SCHEMATICS

Screenshot (363).png

Screenshot (364).png

Downloads

BEFORE SPACE BAR IS PRESSED

Screenshot (362).png
Screenshot (366).png

IF NO OBSTACLE COMES IN FRONT OF LDR SENSOR THEN THE SERVO WON'T ACTIVATE.DINO KEEP ON GOING STRAIGHT.

AFTER SPACEBAR IS PRESSED

Screenshot (361).png
Screenshot (367).png

IF SUDDENLY A LDR GETS DARK COLORED(OBSTACLE) IN FRONT OF IT.A SERVO GETS ACTIVATED AND IT PRESSES SPACEBAR SO THAT THE DINO WILL JUMP HIGH TO AVOID CRASH.