Introduction: DINO GAME USING LDR

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.

Step 1: MATERIALS REQUIRED

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

2)LDR

3)RESISTOR

4)JUMPERS

5)BREADBOARD

6)ARDUINO CABLE

7)SERVO

Step 2: SCHEMATICS

Step 3:

Step 4: BEFORE SPACE BAR IS PRESSED

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

Step 5: AFTER SPACEBAR IS PRESSED

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.