Hacking Dino Chrome With Arduino and "NO SERVO"

by CarlosVoltT in Circuits > Arduino

686 Views, 0 Favorites, 0 Comments

Hacking Dino Chrome With Arduino and "NO SERVO"

Imagen1-820x461.png

In this project we will see how to hack the "Google Dino Chrome" game, but with a couple of very interesting variants.The first of them is that we are not going to use a servo motor, as can be seen in many projects of this type.The second variant is that we are going to use a second LDR module.I'm going to explain the source code, the circuit, and also how to build the LDR module, if you didn't have one, with few electronic components.We will need an Arduino Leonardo, (I use an arduino wido, which is a variant of the Leonardo that implements wifi, but basically it is the same as an Arduino Leonardo. Change you can use an Arduino Due or an Arduino Micro, since these three allows us emulate a keyboard with our PC, with the keyboard.hy library and in that way we will avoid using a servo motor, which has several drawbacks:The first, of them is that we must have one.The second, is that it consumes more current for owning a motor Inside it.And third, the response time when physically pressing a key is much longer.Emulating a keyboard with Arduino is much better.We will also use two LDR photo resistors, to avoid cacti and also birds.It would be nice to have a third LDR to detect darkness, at a certain level of the game, for now I do not have it but I leave the challenge for you to modify the project and be able to beat all levels.

To enter google dino chrome you can type the following in the chrome browser: // dino / then enter and then the space bar.

Atention

Remember that for this project we are not going to need the use of a servo, unlike other projects, which come out on the internet.

This helps a lot to make the system much faster when it comes to reacting during the game

Source Code

Descargar –> http://rogerbit.com/wprb/wp-content/uploads/2020/04/dino_servo.zip

Project Circuit

dino_chrome_leonardo-775x1024.jpg

Circuit to Arm the LDR Module

Módulo-LDR.jpg

Arduino Leonardo

Leonardo.jpg

The Arduino LEONARDO is an integrated Arduino USB HID board. Ideal for projects that require the board to behave (act) like a USB human interface device

Arduino Leonardo is a microcontroller board based on the ATmega32u4 ( data sheet ). It has 20 digital input / output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, a power connector, an ICSP header, and a button reset. It contains everything necessary to support the microcontroller; just connect it to a computer with a USB cable or turn it on with an AC to DC adapter or battery to get started. The Leonardo differs from all previous boards in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. This allows the Leonardo to appear on a connected computer as a mouse and keyboard, plus a virtual serial / COM (CDC) port.

About Arduino Wido (Compatible With Arduino Leonardo)

20374715_2037847909574573_8155352289672791358_n-820x615.jpg

Introduction

Wido is an Arduino compatible WIFI IoT Node development board, which integrates with WG1300 WIFI solution. The Wido microcontroller is ATMEL ATmega32U4.

Specification

  • Power supply range: 5v or 7-12v
  • Compatible with Arduino Leonardo
  • Integrates with WG1300 WIFI chip and supports 2.4GHz IEEE 802.11 b / g network
  • WIFi and MicroSD controlled by SPI portOn-board 2.4G PCB antenna
  • Controller pins:WIFI-D7 (IRQ), D5 (VBAT), D10 (CS), D14 (MISO), D15 (SCK), D16 (MOSI) module
  • MicroSD-D4 (CS), D14 (MISO), D15 (SCK), D16 (MOSI)

Request

  • Development of the M2M sensor node
  • Toys
  • Game
  • Smart home device

PinOut

DFR0321_Pinout-1024x659.png

PHOTORESISTOR MODULE KY-018

KY-018.jpg

Description

Arduino KY-018 photoresistor module, used to measure light intensity. You can determine the presence or absence of light. Specifications This module consists of a photoresistor and a 10 kΩ in-line resistor . The resistance of the photoresistor will decrease in the presence of light and will increase in the absence of it. The output is analog and determines the intensity of the light.

  • Operating voltage= 3.3V to 5V
  • Output type= Analogous term

KY-018 connection diagram

Connect the power (center) and ground (-) line to +5 and GND respectively. Connect the signal (S) to pin A2 on the Arduino.

KY-018: Arduino

  • S= Pin A2
  • means, medium= + 5V
  • - = GND

More Info