1 of 38

Emulation with the Raspberry Pi

Rogério Neves

Physics major, master and PhD in Systems Engineering. Researches on computer science, robotics and AI. Since 1982, used and collected from the Apple II+, Commodore 64 and Amigas to modern PC and VR gadgets. (linktr.ee/DaSpider)

Over the years I have tested and compared a multitude of emulators in different computer systems and, recently, the Raspberry Pi became one of the easiest, cheapest, most powerful computers for hosting virtual platforms.

2 of 38

Emulation with the Raspberry Pi

Presenter:

Rogério Neves (DaSpider)

45m + Q&A 15m

NO SIGNAL

3 of 38

EMULATION WITH �THE RASPBERRY Pi

4 of 38

EMULATION WITH THE RASPBERRY PI

Presenter: Rogério Neves�Duration: 45m + 15m Q&A

The Raspberry Pi is one of the easiest, cheapest and most powerful solutions for emulation, as examined and compared here.

virtual platforms.

5 of 38

EMULATION WITH�THE RASPBERRY PI

6 of 38

MY COMPUTERS & CONSOLES

Vintage

  • *Atari 2600 (1980)
  • Apple II+, *IIe, IIc, IIgs
  • Commodore 64
  • Commodore Amiga 500, 600, *1200
  • PCs & Macs

*Actual

  • 2 *PC & 1 *Mac
  • *Android: Phone & tablet
  • *Oculus: Gear VR, Quest 2
  • *Raspberry Pi’s: Zero, 2, 3B+, 4, 400
  • *Arm handhelds: BittBoy. PocketGo

7 of 38

BIOGRAPHY

  • Technology enthusiast since 1980
  • Technician in Electronics since 1993
  • Computational Physicist, University of São Paulo (USP), 2000
  • Master in Electronic Systems Engineering (USP), 2003
  • Ph.D. in Systems Engineering, Yokohama National Univ., 2006
  • Researcher in HPC, Robotics, Artificial Life and AI
  • Professor of Computer Science at CMCC - �Cognition,Mathematics & Computation Center�� Federal University of� ABC, São Paulo, Brazil

8 of 38

RETRO COMPUTING ISSUES

  • Cost of hardware, online scalping
  • Hardware issues, leaked capacitors (recap kids!)
  • Software issues, bad floppies, dead drives
  • Portability, Practicality

9 of 38

tHE Raspberry Pi

  • Single Board Computer
  • Compact, consumes < 3W
  • Mem: 512Mb-8Gb of RAM
  • Storage: SD-Card, USB-Drive (4/400)
  • Arm CPU, VideoCore GPU (SOC)
  • Low cost: ~ $5 to $70

10 of 38

Raspberry Pi Models

Newer first (Date)

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 5 (10/23)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ $15 RPi Zero 2 W (10/21)�▒▒▒ $5 RPi Pico (1/21)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 400 (11/20)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ CM 4/Lite (10/20)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 4B (6/19)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ CM 3+ (1/19)�▒▒▒▒▒▒▒▒▒▒ $10 RPi Zero W (2/17)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 3 Model A+ (11/18)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 3 Model B+ (3/18)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ CM 3 (1/17)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 3 Model B (2/16)�▒▒▒▒▒▒▒▒▒▒ $5 RPi Zero (11/15)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 2 Model B (2/15)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Compute Module 1 (4/14)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 1 Model A/A+ (2/13)�▒▒▒▒▒▒▒▒▒▒▒▒▒▒ RPi 1 Model B/B+ (4/12)

RELATIVE PERFORMANCE

11 of 38

Emulation Stations

Several distributions, variations and bundles based on:

RetroArch.com�EmulationStation.org��

12 of 38

Distros:

Basic distributions�Some emulators�Without ROMS

Ex:

      • RetroPie
      • RecalBox
      • Batocera
      • Lakka
      • ...

Bundles:

Completely configured With ROMS and artwork

Ex:

  • Venon 1TB
  • Eternal
  • Wicked
  • Cobalto 128GB**
  • Hypertocera**
  • RaccoonBox**
  • etc.

** (ArcadePunks)

13 of 38

ArcadePunks

14 of 38

IMAGES

Can be:

-Ready to flash� (clean)�-Ready to use

Clean images need�firmware roms to�be copied, as well�as game files,�disks, roms.

15 of 38

IMAGING PROGRAMS

  • Raspberry Pi Imager
  • Balena Etcher
  • Rufus...

16 of 38

Emulation with the Raspberry Pi

What is needed?

  • Raspberry Pi Zero/2W, 2, 3, 4, 400, 5
  • Power block (5V, 3A)
  • Any USB or BlueTooth game controller
  • SD Card + USB adaptor
  • A PC/Mac to download & burn the image
  • PC/Mac imager program
  • *Video + cable + adaptors

* Composite video needs to be enabled in the Pi4, soldered on the Pi Zero/2W. Pi 400 requires an HDMI adaptor

17 of 38

BUILDING A PROJECT

Raspberry Pi 3 & RetroPie

  • $25 to $40 depending on the specs
  • Emulates most 8/16 bits machines
  • Some 32 bit computers

18 of 38

Raspberry Pi Imager

19 of 38

Raspberry Pi Imager

20 of 38

RETROPIE

21 of 38

THEMES

22 of 38

HIGH END EMULATION - Pi 400

  • $60-100 depending on the bundle
  • Broadcom 4-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.8GHz
  • 4GB LPDDR4-3200
  • Boots from SD-Card, USB-Drive (Flash/HD/SSD) or network
  • Emulates newer platforms like N64, DreamCast�and Playstation

23 of 38

Pi 4/400�IMAGES

Ready to use

Includes

  • Systems
  • Roms
  • Disks
  • HD images
  • etc.

24 of 38

RecalBox

V 7.1.1�128GB Image �Ready to use

25 of 38

RETRO COMPUTING

Distros may offer more than one choice for each platform�Emulator accuracy and functionality varies�The better the emulator, smoother the experience�May require fine-tuning settings�

26 of 38

APPLE ][ GS

Emulator: GSPlus�Speeds (MHz): 1,�2.8, 8, Unlimited�Supports several�peripherals

27 of 38

C64 (Vice)

Accurate�Save/load state�Drive sounds�emulation�or Turbo Speeds

28 of 38

Amiga

Emulators

  • UAE4Arm
  • Amiberry
  • PUAE

�PiMiga (Pi 4/400 bootable image):

  • Thousands of games and programs
  • Support for RTG graphics
  • More compatible than any amiga
  • Faster than any amiga (vampires included)

Ready to use images

  • PiMiga 1.5 (32 bits)
  • *PiMiga 2.0 (64 bits)
  • Amibian (Amiberry 32)

29 of 38

PiMiga

(AmiBerry)��Benchmarks:�SysInfo, AIBB�68060 demos��

30 of 38

Modding

31 of 38

Modding

32 of 38

Modding

33 of 38

Cases

34 of 38

Software vs hardware emulation

MiSTer FPGA

  • Simulation on FPGA
  • Cycle exact
  • Connects original peripherals
  • Expensive
  • Not user friendly
  • Limited expansion�capabilities
  • Not glitch free

Software

  • Affordable / Easy of use
  • Easily exceeds hardware speeds by a lot
  • Emulated expansion capabilities
  • Highly configurable
  • Not always exact
  • Not glitch free

35 of 38

Raspberry PI vs pc for emulation

PC

  • More powerful
  • Widely available
  • Wide range of emulators
  • Emulates even modern systems
  • Higher cost & � High power profile
  • Variable experience� Levels per emulator

Raspberry Pi

  • Low cost/low power profile
  • Good amount of platforms
  • Consistent experience across emulators
  • Easy to set up & use
  • Limited GPU power
  • Limited CPU power
  • Max 8Gb memory

36 of 38

ATTRACT�MODE�(PC)

37 of 38

Emulation Devices

Raspberry Pi cases, Odroid�Android & Linux devices�Portable PCs...

38 of 38

Q & A