- Playing Google Chrome dino game automatically by pynq-z2 board
- Read game frame from HDMI_IN and output to HDMI_OUT
- Using a Arduino Uno as peripheral to generate USB keyboard signal
- PYNQ-z2 board
- Arduino UNO
- wires/connecters
First program Arduino UNO using the code in usb_keyboard.ino
the firmware
folders contains two firmwares for Arduino UNO. Arduino-keyboard-0.3.hex
enables Arduino UNO to work as HID devices, Arduino-usbserial-uno.hex
is the original firmware for Arduino UNO. Here we using Flip to upload the firmware, click the link to download and install.
- Select device as
ATmega16U2
- Open USB port
- Browse and select firmware
- Upload
Once upload, unplug and replug the arduino, it will continus sending signals to press space if the digital pin 0 is high. If it doesn't work, please double-click the .exe file in the drivers
folder to install the driver for arduino.
Find the notebook in jupyter_notebook
folder, make sure the chrome window fill the half-left of the screen.
Video link: https://youtu.be/8jcDL5_CIB0