Arduino MKR Vidor 4000 - FPGAArcade Replay - Playing Pong
To finish the FPGAArcade Replay library test with the Arduino MKR Vidor 4000Arduino MKR Vidor 4000, we connected a keyboard and powered the board with a regulated power supply.
When connecting the keyboard and / or the mouse through the USB port using an OTG adapter that does not have a separate power lead, we have to power the board in another way. We're going to power it through the Vin pin.
Keyboard connection
We connect a USB keyboard through a USB OTG adapter The OTG or On The Go adapter (sometimes called an OTG cable, or OTG connector) allows you to connect a full sized USB A cable to your board through the Micro USB port.
https://en.wikipedia.org/wiki/USB_On-The-Go
Power
We power the board through the Vin input pin. This pin can be used to power the board with a regulated 5V source. If the power is fed through this pin, the USB power source is disconnected. This is the only way we can supply 5v (range is 5V to maximum 6V) to the board not using USB. This pin is an INPUT.
Summarizing connections
Keyboard connected via Micro-USB OTG adapter to USB port
Board powered through VIN input pin with 5V DC.
SD Card reader through SPI, CS to pin ~4 (PB10) Arduino MKR Vidor 4000 - FPGAArcade Replay - SD Card Connection
Monitor Display connected to micro HDMI connector.
Installing a new core
Where to find additional cores: https://build.fpgaarcade.com/releases/cores/V4/
We downloaded https://build.fpgaarcade.com/releases/cores/V4/pacman/ latest version
pacman_V4_20210531_2158_af8258b.zip
Unzip the file
Copy content to the SD card and rename the file pacman_pong.ini to replay.ini if you want the game to autostart.
You now can play pong two players using the keyboard:
- 1, 2 keys for player one
- and left, right arrows for player two.
There are no original ROM contents at fpgaarcade.com distributions. You will need the original/alternative ROM files for some games.
Blogs
Arduino MKR Vidor 4000 - FPGAArcade Replay - Playing Pong blog series:
Blog |
---|
Arduino MKR Vidor 4000 - FPGAArcade Replay - SD Card Connection |
Arduino MKR Vidor 4000 - FPGAArcade Replay - Playing Pong |