RGBerry · Quick Start Guide

Get your RGBerry running on a CRT

Everything you need to use the RGBerry SCART, SMA and Duo boards with a Raspberry Pi: assembly, the official Phosphor OS, and set-up for ReplayOS, RetroPie, Recalbox and more.

Choose how you want to use it

1What you need

  • Raspberry PiAny model with the 40-pin header: Pi 2, 3, Zero 2 W, 4, 400, 5 or 500. Each OS lists the models it supports.
  • RGBerry boardSCART, SMA or Duo.
  • microSD card8 GB or more; 32 GB for big game collections.
  • The right cableFully wired SCART (SCART, Duo) · SMA-to-BNC (SMA) · SCART-to-BNC for PVMs · VGA (Duo).

2Assembly

RGBerry board mounted on a Raspberry Pi
The board sits on top of the Pi, with its video connector on the same side as the Pi’s ports.
Before you plug it in
  • Switch the Raspberry Pi off.
  • Align all 40 pins. A misaligned header can damage the board or the Pi.
  • SCART and Duo: use a fully wired SCART cable with separate grounds. RGB-only cables without audio or sync won’t work.
Connection examples: RGBerry to a TV, a PVM and an arcade monitor
How to connect each board depending on your CRT.

3Board layout

RGBerry SCART board layout
RGBerry SCART · female SCART
RGBerry SMA board layout
RGBerry SMA · CSYNC, R, G, B + 3.5 mm jack
GPIO pins used by RGBerry
GPIO pins used by the RGBerry boards.

Official OS · Recommended

4Phosphor OS

The operating system we make for the RGBerry. Free, boots straight into its own menu, and ready for your board out of the box: no config.txt, no overlays, no timings. It’s the one we test every board with.

  • Original resolution, per gameEach game switches to its own 15 kHz video mode, with no scaling or borders.
  • Detects your boardDuo and EEPROM boards at boot; older ones once in Settings → Board.
  • Sound on every modelIncluding the Pi 5 / 500, with the audio driver built in.
  • Made for CRTsA 240-line menu, picture centering, test pattern and tate monitors. Also over HDMI.

Raspberry Pi 4 / 400 (recommended), Pi 5 / 500, Pi 3 / 3B+ and Zero 2 W.

Install it in five steps

  1. Download it from phosphor-os.com. No need to unzip.
  2. In Raspberry Pi Imager, choose Choose OS → Use custom and write it to the microSD card. Don’t use the “OS customisation” options.
  3. With the Pi off, plug the RGBerry onto the 40-pin header.
  4. Connect the board to your screen, insert the card and switch on. The first boot takes a few seconds longer.
  5. Copy your games to the SHARE partition, from your PC or over the network. The Phosphor OS guide explains where each system goes.

Get Phosphor OS

Notes for each board

SCARTOlder boards without EEPROM: choose Settings → Board → RGBerry SCART once over HDMI.
SMAUses the 15 kHz arcade monitor profile. Older boards: Settings → Board → RGBerry SMA.
DuoAutomatic. Switch 1: SCART / VGA. Switch 2: 31 / 15 kHz. Change them with the Pi off.

No HDMI screen at hand? Open phosphor-board.txt on the card’s PHOSPHOR partition from your PC and remove the # from the two lines of your board. Full documentation in 5 languages: phosphor-os.com/guide.html.

5Other retro systems

Set them up yourself, or download one of our ready-made images with the RGBerry already configured. ROMs and BIOS files are never included.

SystemRaspberry PiCRT mode switchingReady image
Phosphor OS3, Zero 2 W, 4, 400, 5, 500Per gameIt is the image
ReplayOS5, 500 (4/400 coming)YesPi 5/500
RetroPie2, 3, 4, 400, 5, 500In our imagesPi 2/3 · Pi 4/5
Recalbox4, 400, 5YesPi 4/400 · Pi 5
Batocera4, 400 (5/500 coming)—Pi 4/400
LibreELEC4, 400, 5, 500Media centrePi 4/5
RetroPie CRT Edition2, 3 onlyYesPi 2/3
ReplayOSPi 5 · 500Ready image

A modern OS made for CRTs and the successor of RGB-Pi. Do a fresh installation from replayos.com, then set these options:

Replay Options → Video
Replay Options → Video
Replay Options → Audio
Replay Options → Audio
Replay Options → Addons
Replay Options → Addons

Reboot. That’s all.

ReplayOS 1.8.0 · Pi 5/500

Raspberry Pi 5 / 500 audio: install the RGBerry audio driver.

Raspberry Pi 4 / 400: coming soon.

If you like this OS, please support its developers.

RetroPiePi 2 · 3 · 4 · 400 · 5Ready imagesScript

The best-known retro OS for the Pi. Our images switch resolution for each system and include a CRT theme, so we recommend them.

RetroPie 4.8.0 · Pi 4/400/5/500RetroPie 4.8.0 · Pi 2/3

Quick install

Install RetroPie from retropie.org.uk, then run in the terminal and reboot:

curl https://www.osaelectronics.com/get/rgberry_retropie.sh | bash

Manual install

Before editing any system file, back up your SD card.

Copy rgb-pi.dtbo to the overlays folder of the SD card, then add these lines at the end of /boot/config.txt.

Pi 2 / 3:

# Audio settings
audio_pwm_mode=2
disable_audio_dither=1
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2

# DPI LCD settings
dtoverlay=rgb-pi
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=6
dpi_group=2
dpi_mode=87
dpi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Pi 4 / 400:

# Replace dtoverlay=vc4-kms-v3d with
dtoverlay=vc4-fkms-v3d

# Total amount of GPU memory
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256

# Audio settings
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
audio_pwm_mode=2
disable_audio_dither=1

# DPI LCD settings
dtoverlay=rgb-pi
hvs_set_dither=0x210
dpi_group=2
dpi_mode=87
dpi_output_format=6
dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
enable_dpi_lcd=1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Raspberry Pi 5 / 500 audio: install the RGBerry audio driver.

If you like this OS, please support its developers.

RecalboxPi 4 · 400 · 5Ready images

Not made only for CRTs, but a very good retro OS with built-in CRT support.

Recalbox 10.1.0 · Pi 5Recalbox 10.1.0 · Pi 4/400

Before editing any system file, back up your SD card.

Install Recalbox from recalbox.com. With the SD card in your PC, add these lines at the end of recalbox-user-config.txt:

#device=rgbpi
dtoverlay=recalboxrgbdual-thirdparty,mode6

audio_pwm_mode=2
disable_audio_dither=1
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2

dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Then create or edit crt/recalbox-crt-config.cfg:

options.es.resolution = 240
adapter.type = rgbpi

Once it boots, you can change the resolution from the Recalbox menu. More in the Recalbox CRT wiki. Before version 8.0.1: see discontinued systems.

If you like this OS, please support its developers.

BatoceraPi 4 · 400Ready image

Batocera 41 · Pi 4/400

Before editing any system file, back up your SD card.

Copy rgb-pi.dtbo to the overlays folder and add or replace these lines in config.txt (Pi 4 / 400):

# Replace dtoverlay=vc4-kms-v3d with
dtoverlay=vc4-fkms-v3d

# Total amount of GPU memory
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256

# Audio settings
dtparam=audio=on
dtoverlay=audremap,pins_18_19

# DPI LCD settings
dtoverlay=rgb-pi
hvs_set_dither=0x210
dpi_group=2
dpi_mode=87
dpi_output_format=6
dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
enable_dpi_lcd=1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Raspberry Pi 5 / 500: in progress.

If you like this OS, please support its developers.

LibreELECPi 4 · 400 · 5 · 500Ready imageKodi

The Kodi media centre, on your CRT.

LibreELEC 12.0.2 · Pi 4/400/5/500

Before editing any system file, back up your SD card.

Copy rgb-pi.dtbo to the overlays folder. With the SD card in your PC, add or replace these lines in distroconfig.txt (not config.txt):

arm_boost=1
arm_64bit=1
kernel=kernel.img
disable_overscan=1
disable_fw_kms_setup=1

# Replace dtoverlay=vc4-kms-v3d with
dtoverlay=vc4-fkms-v3d

# Total amount of GPU memory
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256

# Audio settings
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
audio_pwm_mode=2
disable_audio_dither=1

# DPI LCD settings
dtoverlay=rgb-pi
hvs_set_dither=0x210
dpi_group=2
dpi_mode=87
dpi_output_format=6
dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
enable_dpi_lcd=1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

LibreELEC rewrites this file when it updates: add the lines again after each update.

If you like this OS, please support its developers.

RetroPie CRT EditionPi 2 · 3 onlyReady image

A RetroPie-based system made for CRTs that switches resolution on the fly. Only for Raspberry Pi 2B / 3B / 3A+ / 3B+.

RetroPie CRT Edition · Pi 2/3

  1. Install it from github.com/krahsdevil/Retropie-CRT-Edition.
  2. On first boot, choose option 2 (RGB-Pi). It reboots already set up for the RGBerry.
  3. Missed it? Add these two lines at the end of config.txt and reboot.
dtoverlay=audremap,pins_18_19
dpi_output_format=6

If you like this OS, please support its developers.

6Raspberry Pi OS

For a standard desktop installation. Open the terminal and run, with the Pi connected to the Internet:

curl https://www.osaelectronics.com/get/rgberry_pi.sh | bash

Follow the steps on screen and reboot once.

Raspberry Pi OS Bookworm · 64-bitRaspberry Pi OS Bookworm · 32-bit

Manual set-up (config.txt)BookwormBullseye

Before editing any system file, back up your SD card.

Copy rgb-pi.dtbo to the overlays folder, add the lines for your system and model at the end of config.txt and reboot.

Bookworm · /boot/firmware/config.txt

Pi 2 / 3:

# Audio settings
dtparam=audio=on
dtoverlay=audremap,pins_18_19

# DPI LCD settings
dtoverlay=rgb-pi
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=6
dpi_group=2
dpi_mode=87
dpi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Pi 4 / 400:

# Replace dtoverlay=vc4-kms-v3d with
dtoverlay=vc4-fkms-v3d

# Total amount of GPU memory
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256

# Audio settings
dtparam=audio=on
dtoverlay=audremap,pins_18_19

# DPI LCD settings
dtoverlay=rgb-pi
hvs_set_dither=0x210
dpi_group=2
dpi_mode=87
dpi_output_format=6
dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
enable_dpi_lcd=1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Pi 5 / 500: use the script or the ready-made image, and install the Pi 5 audio driver.

Bullseye and earlier · /boot/config.txt

Pi 2 / 3:

# Audio settings
audio_pwm_mode=2
disable_audio_dither=1
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2

# DPI LCD settings
dtoverlay=rgb-pi
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=6
dpi_group=2
dpi_mode=87
dpi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

Pi 4 / 400:

# Replace dtoverlay=vc4-kms-v3d with
dtoverlay=vc4-fkms-v3d

# Total amount of GPU memory
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256

# Audio settings
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
audio_pwm_mode=2
disable_audio_dither=1

# DPI LCD settings
dtoverlay=rgb-pi
hvs_set_dither=0x210
dpi_group=2
dpi_mode=87
dpi_output_format=6
dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
enable_dpi_lcd=1

# I2C settings
dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

You may need to adjust dpi_timings for your screen: see Resolution setup.

7Raspberry Pi 5 audio

Phosphor OS already includes it. The Pi 5 only outputs its audio block on the pins the RGBerry uses for video, so our rgberry-audio driver generates the board’s audio on GPIO 18/19. On Raspberry Pi OS, RetroPie and ReplayOS, run this on the Pi 5 with an Internet connection:

curl -fsSL https://raw.githubusercontent.com/osaelectronics/rgberry-audio/main/get.sh | sudo bash

Sound then comes out through the SCART cable (SCART, Duo) or the 3.5 mm jack (SMA). The same SD card keeps working on a Pi 2/3/4.

8Advanced

Resolution setup (dpi_timings)If the picture is shifted or cut

Not all CRTs are the same. Adjust the timings in config.txt (/boot/firmware/config.txt on Bookworm) by trial and error. Phosphor OS and the CRT-specific systems do this for you.

Before editing any system file, back up your SD card.

Edit the dpi_timings line (hdmi_timings on some older systems). This one works best on our Sony PVM monitors:

dpi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1

Fields:

<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch>
<v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch>
<v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>

h_active_pixels = width in pixels      v_active_lines = height in lines
*_sync_polarity = invert sync          *_front_porch / *_back_porch = padding
*_sync_pulse    = sync pulse width     frame_rate = refresh rate in Hz
pixel_freq      = pixel clock in Hz (total width × total height × frame rate)
offsets, pixel_rep, interlaced = leave at 0
aspect_ratio    = 1 4:3 · 2 14:9 · 3 16:9 · 4 5:4 · 5 16:10 · 6 15:9 · 7 21:9 · 8 64:27

More: Raspberry Pi video options · timings for each emulator · timing calculator · video timings calculator.

Discontinued systemsRGB-PiRecalbox before 8.0.1

RGB-Pi

Replaced by ReplayOS. It works with the RGBerry with no changes (Pi 2B/3B/3A+/3B+/4B/400): install it from rgb-pi.com.

RGB-Pi · Pi 4/400RGB-Pi · Pi 2/3

Recalbox before 8.0.1

Edit crt-config/rgbpi-config.txt:

#device=rgbpi
audio_pwm_mode=2
disable_audio_dither=1
dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
dtoverlay=rgb-pi
enable_dpi_lcd=1
display_default_lcd=1
dpi_output_format=6
dpi_group=2
dpi_mode=87
hdmi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1

dtparam=i2c_vc=on
dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

and /recalbox-crt-config.txt:

#For rgbpi
adapter.type = rgbpi

93 thoughts on “RGBerry Quick Start Guide”

  1. Jacob says:

    Hi, I am using the RGBerry on my pi 5 but the image has a large amount of interference . I am using replayos with the premade sd card and i am using the power cable that came with my pi and I have tried multiple different tvs with different cables which all seem to have too much interference.

    • Oriol Sanchez says:

      Hello Jacob,

      Do you mind testing another pre-made image and check if you still have problems? All board are tested prior shipping, so I guess is more software related, but just to make sure.

      After that and after your feedback we can continue to see from where the problem comes!

      Oriol.

  2. Oriol Sanchez says:

    Hello everybody.

    Pi 5 audio support is now out! Check out the updated guide. New images added too.

    To add support just run this command on your Pi 5, no more external usb dacs etc needed.

    curl -fsSL https://raw.githubusercontent.com/osaelectronics/rgberry-audio/main/get.sh | sudo bash

    Oriol.

  3. PixelModUK says:

    Hi,

    Attempting setup on a Raspberry Pi 3B+ with OS Lite (64bit, TRIXIE) with B&O Beovision MX 4000. Best I can get is a vertically scrolling up image.

    My timings: dpi_timings=320 1 14 32 36 288 1 3 4 19 0 0 0 50 0 6400000 1

    Any help would be much appreciated,
    Thanks!

    • Oriol Sanchez says:

      Hello,

      B&O are a bitt picky with timmings.. you should keep trying or check if maybe somebody posted or will post here some ttimmings for your model. I still have an LX 600 and it has been quite complicated o get it working properly.

      Let’s see if somebody can help!

      • PixelModUK says:

        Thanks, yes hopefully. I wonder if tweaking settings in the service menu on the TV might help. Just waiting for my remote control to arrive to try.

    • Oriol Sanchez says:

      Hello,

      Yes, it is possible but you need to setup the correct timmings and of course your screen should support it.

      Oriol.

  4. Gremious says:

    Hello, since upgrading my Pi5 to the latest (v10) version of recalbox, it outputs a black screen – It seems some configuration has changed with this update?

    The premade images for the the Pi5 are still on version 9, and I’d really love to use the new features from the version 10 release.

    It would be amazing if you guys could look into this and provide an updated config (or confirm that it works for you so that I know it’s something on my end).

    Thank you!

    • Oriol Sanchez says:

      Hello,

      I will take a look at the new version v10 and make a pre-made image as well as setup insttructions, in case somehing has changed!

      Oriol.

        • Oriol Sanchez says:

          Hello all,

          V10 pre-made images now out! For pi 5 it was “easy” using the advanced menu, and choosing the board “RGB-Pi”over CRT menu. for Pi 4 and 3 it was more tricky, some extra configuration on the config files needed. I have updated the instructions in any case for current installations.

          Could somebody give a try to pre-made images of Recalbox V10 for Pi 5 and Pi 4? And give some feedback? Thanks!

          Oriol.

  5. Chris W says:

    Hi Oriel,

    RGB-Pi OS is now ReplayOS: https://www.replayos.com/download/ and the links in your guide redirect automatically there.

    The original RBG-Pi OS is still available, but it’d be great to know if the new ReplayOS will work with RGBerry. I have an RGBerry on order and will be testing ReplayOS with it on my Pi Zero 2W.

    Thanks

    Chris

      • Chris W says:

        I asked RTA, the creator of the OS, and he said:

        “Assuming it is using same DPI mode configuration as original RGB-Pi, yes, it should work”

          • Chris W says:

            ReplayOS 1.4 is now out. Have you had any chance to test? I’m still yet to have a CRT in the house to test myself; however an old LCD with SCART in doesn’t seem to work for any OS I try. It might be the TV.

            As an aside – is there a case that fits the RGBerry? Thanks!

          • Chris Walker says:

            I have a CRT in the house! Unfortunately ReplayOS is not working ‘out of the box’ with a Pi 3 B and RGBerry.
            There is some documentation implying that GPIO is only available for Pi 5s which is a shame if true.

            Let me know if you want me to do any testing 🙂 Thanks for your efforts!

          • Oriol Sanchez says:

            Working! 🙂

            replay_os_rgberry

            EDIT: Looks like all the time on Pi4/3 after I make the changes, on reboot, everything overwrites my config so black screen in the end.. working on it..

          • Chris W says:

            I was going to ask if Pi3 will work; that is the one i Have. I think officially its only supposed to support Pi5 for GPIO

          • Chris W says:

            Speaking on Discord to RTA (The dev for ReplayOS) he has written a custom driver that uses the RP1 chip on the Pi5, which is why GPIO support is limited to Pi5s. Not sure there is any way around this (without writing a custom driver that doesn’t rely on the chip; something thats out of my skill set)

  6. Vendois Jean-Christian says:

    I’ve tested both (pre-made or installation by myself), i have the same issue on 2 crt. On my Bang & olufsen MX 6000, the yellow tint is not here but i have other screen problems (image is not stable)

    • Oriol Sanchez says:

      Hello,

      I have also a Bang and Olufsen here and timmings needs to be diferent for this model, if not, the image will be distorted as you already saw. On the other hand, looks like the other TVs are not entering in AV RGB mode, this is why you have yellow tint, because they are getting only the Sync signal as video. The RGBerry has a solder jumper on the bottom, try to solder it, this should activate the SCART RGB mode on the TV. If not, you will need to feed 9v to this pin and/or activate the mode on the tv manually!

  7. Callum says:

    Really impressive bit of kit! I have it up and running on a Pi 4 with an old Panasonic TV, looking forward to retro gaming on it.
    I’ve been running into issues with the aspect ratio on Batocera (and also with RetroPie). The DPI timings give a resolution of 480×240, which works great with the screen, but Batocera interprets this as a 2:1 aspect ratio, and forces everything to render this way, so the screen looks squashed horizontally. Is there anyway to keep the resolution of the CRT, but tell Batocera to use a 4:3 aspect ratio? I feel like I’ve tried everything, wondering if anyone else has had the same issue and managed to solve it?

    • Oriol Sanchez says:

      Dear Callum,

      Thank you for your words! Let me give a try using your setup and see what is going on, are you using Pi 5? Because I have no yet made a fully working version for Pi 5.. it gives some problems in terms of sync.. I am still working on it. The correct aspect ratio for 4:3 should be 480×360 but is a wierd resolution.. 480×320 (3:2) could do the job too, if not try to go to 480p, so 640×480, if your CRT can handle it.

      Best,
      Oriol.

      • Callum says:

        Thanks for the quick response! I’m using a Pi 4B. I was starting with the pre-made Batocera image (Pi4/400 – 41 – 20241217), which gave the resolution of 480×240. I couldn’t get a stable image using 480×360, 480×320 or 640×480, but I’m not sure I fully understand the process of calculating the timings yet. The best result I can get is using your example for the pi 2/3: 320 1 10 30 40 240 1 6 5 12 0 0 0 60 0 6400000 1, which gives me the correct aspect ratio and a stable image. I’ll stick with this for now, but I’ll keep playing around with the other timings in case I can push a slightly higher resolution image to this screen.

        • Amir says:

          I had also some issues finding the right resolution for my Batocera too. With the help of Chatgpt I found this setting for m Pal 50Hz TV working good:
          dtoverlay=rgb-pi
          hvs_set_dither=0x210
          dpi_group=2
          dpi_mode=87
          dpi_output_format=6
          dpi_timings=460 1 32 54 84 224 1 10 2 16 0 0 0 50 0 9600000 1
          enable_dpi_lcd=1

          if you are using NTSC 60Hz:
          dtoverlay=rgb-pi
          hvs_set_dither=0x210
          dpi_group=2
          dpi_mode=87
          dpi_output_format=6
          dpi_timings=460 1 32 54 84 224 1 10 2 16 0 0 0 60 0 11520000 1
          enable_dpi_lcd=1

          • Callum says:

            I managed to get similar resolutions working (480×230 displayed well on my CRT) but those caused Batocera to try and render a ~2:1 image on the 4:3 screen, which caused everything to look squashed. Did you find a way to fix that?

            320×240 seems to look fairly good, and Batocera is behaving well. I just wish there was a way to keep the high horizontal resolution but force Batocera to output a 4:3 aspect. I’ll keep trialling 480×360 and 640×480, but I think they’re beyond the horizontal scan rate of my TV. In any case, it’s looking pretty good now, and it’s brilliant to be able to play games the way they were meant to be played!

        • Oriol Sanchez says:

          Hello,

          The board is fully compatible with Pi 5, since a lot ago. Moreover there are listed images compatible also with Pi 5, if nott listed is probably because there is no version for it. Which OS are you looking for?

          Best,
          Oriol.

  8. Tiffany says:

    Hi Oriol, I’m loving my RGBerry scart!

    I did have some questions about 480i output though, forgive me if some of these questions may be a little rudimentary, this is my first raspberry pi project so I’m very new to the world of pi.

    I’ve got everything to work fantastically on my pi 4 running your image of libreelec, the only issue is that the output is set to 240p and since I am merely using this pi as a plex device for my PVM 20L5 to watch 4:3 content, that isn’t the ideal resolution.

    So I would love to get 480i or even 480p output going. Since 480p is 31khz, I’m not sure if a standard scart cable would be able to accomodate that, and I don’t know where I could even acquire one that could if a standard cable didn’t work. But at any rate, I would be more than happy with 480i output if 480p isn’t possible.

    As far as I was aware, the pi 4 could achieve 480i output, I figured I just needed to set the video timings correctly, although I had no idea what to set them to or how to figure out what to set them to. Then I saw Colter’s recent comment about native interlaced video output being added to the pi 5, so I decided to purchase one, but I think I may have received a dud unit so I’m waiting for a new unit.

    I think my main question really is, what is the best/most possible approach for me here to achieve my goal? While I wait for my replacement pi 5, I’m wondering is there a 480i or 480p solution for me on the pi 4 where I won’t need the 5? Or, if I do end up needing the 5 to get 480i, will it be possible to run 480i with libreelec?

    In Colter’s post, he mentioned it only worked for him on pi os, not libreelec. That would also be problematic for me since I’m controlling my setup with a basic remote and I need something that is readable and simple to navigate from a couch distance. If it isn’t possible to find video timings that work with libreelec, is it possible to put a skin over pi os so that when it launches it just shows me a couple icons to choose from for the couple add-ons I use to watch plex and youtube? I know that may be out of the scope of what you’re doing here, so if that’s not something you can answer I understand.

    Thank you!

    • Oriol Sanchez says:

      Hello Tiffany,

      Thank you for your words and feedback! I will post tsoon some new timmings for 480i and maybe 480p, but not all CRTs are able to get this later one, as you mentioned already.

      The Colter approach is a very nice one, also take a look at what Chris posted, if you do not have that overlay on your insttallation, just copy paste it from a fresh install of Bookworm and/or download it from Github! Maybe this can do tthe job for you in the meantime.

      It is possible to make itt work with Pi 4 so no worries on that part, just keep an eye to the guide and comments, I will let you all know when posting new timmings!

      Best,
      Oriol.

      • Tiffany says:

        That’s great news! I’m glad I can keep my pi4 then. I’m eagerly awaiting those new timings! Especially the 480p one! I really appreciate all your hard work!

  9. Colter says:

    I bought the RGBerry to get 480i (interlaced) video on my PVM 14N using a Rpi5.
    Interlaced 480i is most faithful to media playback as well as video game consoles from the early 2000s.

    Luckily, the raspberry pi foundation added native interlaced video output over DPI to the Rpi5 in 2025.
    See here: https://www.raspberrypi.com/news/how-we-added-interlaced-video-to-raspberry-pi-5/
    As far as I can tell, this is ONLY possible for Pi5, using this specific approach.

    For RGBerry on Pi5, this “just works” with some adjusted params (see below).
    After doing a clean install of PiOS-64bit to my Pi5,
    I added the lines to /boot/firmware/config.txt and rebooted.

    I believe this would work for 240p if you were to alter the dtparams and remove the ‘interlaced’ line.
    After this was set up, moonlight and steamlink streaming also “just worked” at 480i. Looks great.

    In case you’re curious, I first tried this approach on a clean LibreELEC install (Pi5), but the interlace timing was off and there were driver conflicts. I think this approach is PiOS only for now.

    [all]
    dtoverlay=vc4-kms-dpi-generic

    # 720 x 480i
    #dtparam=clock-frequency=13500000
    #dtparam=hactive=720,hfp=12,hsync=64,hbp=68
    #dtparam=vactive=480,vfp=11,vsync=5,vbp=39

    # 640 x 480i (based on Batocera)
    dtparam=clock-frequency=13100000
    dtparam=hactive=640,hfp=24,hsync=64,hbp=104
    dtparam=vactive=480,vfp=4,vsync=6,vbp=35

    dtparam=interlaced
    dtparam=hsync-invert,vsync-invert
    dtparam=rgb666-padhi

    • Oriol Sanchez says:

      Thanks Colter, this will be very helpfull for many users! I have not yet tried those new Pi foundation timmings that much as the older ones work great. But anyway good news! I will investigate on my side also and see if this can help to improve things with higher resolutions and on Pi5.

      • Chris says:

        fwiw the vc4-kms-dpi-generic overlay present in Bookworm works with Raspberry Pi 4s to drive a CRT connected to the RGBerry, rather than using vc4-fkms-v3d and rgb-pi. I’m currently using:

        [all]
        dtoverlay=vc4-kms-v3d
        dtoverlay=vc4-kms-dpi-generic
        dtparam=hactive=480,hfp=13,hsync=43,hbp=49
        dtparam=vactive=240,vfp=1,vsync=3,vbp=21
        dtparam=clock-frequency=9600000
        dtparam=hsync-invert,vsync-invert
        dtparam=rgb666-padhi
        dtparam=width-mm=395,height-mm=295

        [HDMI:0]
        hvs_set_dither=0x210
        enable_dpi_lcd=1

        [HDMI:1]
        enable_dpi_lcd=0

        To drive a PVM-20M2MDU connected to the RGBerry and an LCD panel connected to HDMI1 . Pretty sure there are better timing values to use for the 20M2MDU though. I just got bored of the tweak, reboot, tweak, reboot cycle…

        • Oriol Sanchez says:

          Thanks for sharing Chris! Unfrotunately I do the same.. test, reboot, change.. test, reboot.. over and over again. There is no perfect timing for all the CRTs arround and even with timmings calculators, sometimes it does not work.. I am currently working with thattt new overlay and playing arround with timmings.. I will try to share my investigations ASAP!

          Best,
          Oriol.

          • Søren says:

            Thanks for a cool product!
            I am also very interested in a solution for 480i on LibreElec on RPI4 on RGBerry!

            Works very well in 240P, but video would really benefit from the extra resolution.

            I tried Chris’ solution, it didn’t work for me though.
            I might just have done the setup wrong though!

            Regards,
            Søren

  10. Tim says:

    Just got mine in the mail and LibreELEC works great in 240p, however I want to switch it to 480i for some videos. I cant seem to get the timings right for it to display an image.

  11. bart says:

    I have the following settings on raspberry pi 3 running 64 bit bookworm (rel. 2025-5-13)
    rgb-pi.dtbo has been placed in /boot/firmware/overlays
    Unfortunately not getting any image. Not even noise.
    Any ideas?

    [all]
    # DPI LCD settings
    dtoverlay=rgb-pi
    enable_dpi_lcd=1
    display_default_lcd=1
    dpi_output_format=6
    dpi_group=2
    dpi_mode=87
    dpi_timings=450 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
    # I2C settings
    dtparam=i2c_vc=on
    dtoverlay=i2c-gpio,i2c_gpio_sda=27,i2c_gpio_scl=26

    • Oriol Sanchez says:

      Hello Bart,

      Please, use one of the pre-made images first, to check if it is a software or hardware issue. Mostly looks like a softtware issue as all the board are testetd before shipping, but it can also be on the TV/Monitor side.

      So give a try to one of pre-made images first for a better troubleshooting!

      Best,
      Oriol.

    • Fireb1ade says:

      Is it possible anyone is testing Replayos, latest version supports the rgb-pi so I imagine rgberry is compatible with the right settings…?

  12. Amir says:

    Dear Oriol,
    do you know if there is a way to use RGBerry with Batocera? Could you please make an instruction for how to use RGBerry with Batocera? Though Retropie and Recalbox are great, I think Batocera is good mixture of having a lot of controls and being user-friendly.
    It would be so great if you could help me with setting up RGBerry for Batocera.

    cheers
    Amir

    • Oriol Sanchez says:

      Hello Amir,

      I will work on it asap and ttry to provide the details for it’s settup aswell a pre-made image.

      Stay tuned!

      Best,
      Oriol.

        • Oriol Sanchez says:

          Dear Amir,

          Indeed, it works on Pi4/400 quite good, however not yet working as expected on Pi 5.. as many changes need to be done on DPI settings.. I posted the Pi 4 instructions and image, anyway. As soon as it works on Pi 5, I will update it!

          • Amir says:

            Wow! That’s really cool! Thank you so much. Pi4 is just fine for right now. I’ll give it a go and let you know how it went. Thank you and I appreciate your efforts.

            Best regards,
            Amir

    • Oriol Sanchez says:

      Dear Will,

      Thank you very much for sharing this article, very interesting! I was not aware of it. I will take a full read as soon as possible, but so far qith a quick read, it does not affect the way RGBerry works as it has onboard circuity to generate the cloks needed for the CRT.

      Indeed, I have recently updated the guide adding Librelec premade Image, you can download it and give a try, it should work without any problem. I did tests here with Pi 4 and Pi 5 and it worked like a charm! You may need to tweak the resolution setup to adapt it correctly to your TV.

      I hope this helps to you!
      Oriol.

  13. Tom says:

    I think I have a dud device, because I haven’t been able to get this working all day. I initially tried getting it working with Lakka, both with their config.txt and the one found here. I couldn’t get a picture. Then I downloaded two versions of RGBpi, and put one on my SSD, one on a microsd. Neither worked. I tried 3 scart cables, checked the TV was still good with a PS2, and the RGBerry is the only thing that never worked. Finally I checked pins 16 and 18, and there’s no voltage. That settles it for me, it’s a faulty hat, right?

    • Oriol Sanchez says:

      Hello Tom,

      All the devices are tested one by one on a SONY PVM, so it should work! Where did you get it? Which Raspberry Pi model are you using? Please send an email using the contactt form, will be easier for support!

      Best,
      Oriol.

    • Oriol Sanchez says:

      Hola Sebas,

      Some others have reported the same problem, I am working on it to give a fix ASAP. I will update it to 4.8.

      Thank you for your patience!

          • Oriol Sanchez says:

            Guide updated. Retropie 4.8.0 image now available for Pi 4/400 and 3/2, also added manual setup for Retropie. The images are updated with latest kernel and fw as per May 1, 2025. Quick install script WIP, but in the meantime you can do it manually! Please share your feedback after testing!

  14. Emil Bengtsson says:

    Hello,
    I get a yellow tint with both units I ordered. I have no such issue using the same cables with other equipment. How can I fix this?

    Cheers,
    Emil

    • Oriol Sanchez says:

      Hello Emil,

      I am checking some board of the last batch, just in case, but all work good. May I know your system setup? with 64bitts and Pi 5 still not full compatbile (need some manual tweaks). Please contact me via email.

      Thanks!
      Oriol.

        • Oriol Sanchez says:

          Which OS are you using? I have not heard any more issue relaetd since a year ago! Could you try other OS different images? Or the one proviced on this guide, please?

          Thanks!

  15. Sam Bushman says:

    I played with this some to get things working on my Rasoberry Pi 4B. A couple things I’d like to call out to make the nect person’s efforts easier.

    1. It seems this is only supported by 32-bit versions of Pi OS currently.
    2. The script referenced in the quickstart for installing on your existing OS has Windows line endings and won’t work as described. Only after comverting the line endings is the sh script executable.
    3. The script also breaks with the latest version of Pi OS due to the method of architecture detection. I suggest just skipping it and doing a manual install.
    4. comfig.txt is now located at /boot/firmware/config.txt
    5. If performing a manual on the Pi 4, watch out for the first line indicating you should REPLACE an existing value in config.txt. The quick start’s instructions tell you to copy/paste on the end of the file, and that is mostly true, except forcreplacing the one indicated value.

  16. Gremious says:

    Hello,

    Letting you know the script seems to have windows style newline endings, which messes up bash?

    Doing the curl command errors out with `bash: line 22: $’\r’: command not found`, so I did wget on the script, ran it through dos2unix, and then echo -> piped it to bash, which worked fine

    (And by fine i mean it said hardware not supported because it’s a pi 5 I guess)

    • Oriol Sanchez says:

      Hello,

      It works more or less the same way, just different components and audio filtering. Make your personal choice!

      Oriol.

    • Oriol Sanchez says:

      Hello Fabrizio,

      It sounds like probably the cable is bad, and some of the channels is not working correctly, looks like missing blue channel. Give a try to another SCART cable.

      Best,
      Oriol.

      • Fabrizio Bonucci says:

        Hi, I tried 2 different cables. Crt works perfectly with Wii connected via scart. Any suggestions? Any particular scart to use?

  17. Chris says:

    Hi – do we need anything new or different to the above for PI 5, or should this still work ok? Specifically looking at RetroPie at the moment.

    • Oriol Sanchez says:

      Hello Chris,

      Everything will work as usual! I will update the pre-made images with the driver included for Pi 5 in any case, when available.

      Best,
      Oriol.

  18. Blaine says:

    Hey Oriol,
    Thank you SO MUCH! That absolutely worked. I’m working with the same 14″ Sony PVM that you are, so my screen looks identical. I’ll do a little dpi tuning but it already looks so much better than running over HDMI converters. Thank you again! 240p Plex and Steam Indie games now!!!

    • Oriol Sanchez says:

      Hello,

      You are welcome, I am glad it works now for you! Actually the picture is from a PVM 9L3, but I do have also a 14M2, 1450QM, 14N6, 20N6 and so on.. like more than 20 different CRTs in the office. I will spend some time searching for the best timmings for the ones I have over here and post it into the guide, maybe this will be helpful for someone!

      Enjoy your retro configuration!
      Oriol.

  19. Blaine says:

    I’m struggling a bit with setting this up manually. My goal is to have RaspberryOS running on the Pi and outputting to a Sony PVM via SCART. Where I’m at now is that, after configuring the config.txt the Pi will boot up and flash a quick RaspberryOS logo on the CRT for a second then it just goes black. HDMI tuning seems to effect the size of that splash screen but nothing makes it stay on.

    • Oriol Sanchez says:

      Hello!

      The new updates of Pi OS makes everything goes wrong with analog output, I don’t know exactly why. the DPI config should be enough but there are some problems with KMS/DRM.

      I will investigate it in deep and let you know!

      Best,
      Oriol.

    • Oriol Sanchez says:

      Hello again,

      Just made some changes and now works great, remember to put the rgb-pi overlay onto overlays folder! Then use this modified code on config.txt


      # Replace dtoverlay=vc4-kms-v3d with
      dtoverlay=vc4-fkms-v3d

      # Total amount of GPU memory
      gpu_mem_256=128
      gpu_mem_512=256
      gpu_mem_1024=256

      # Audio settings
      dtoverlay=pwm-2chan,pin=18,func=2,pin2=19,func2=2
      audio_pwm_mode=2
      disable_audio_dither=1

      # DPI LCD settings
      dtoverlay=rgb-pi
      hvs_set_dither=0x210
      dpi_group=2
      dpi_mode=87
      dpi_output_format=6
      dpi_timings=480 1 26 50 63 240 1 10 1 15 0 0 0 60 0 9600000 1
      enable_dpi_lcd=1

      # I2C settings
      dtparam=i2c_vc=on
      dtoverlay=i2c-gpio,i2c_gpio_sda=10,i2c_gpio_scl=11

      You will probably need to tweak the dpi_timmings to adapt it to your CRT, but at least it works now:

Leave a Reply

Your email address will not be published. Required fields are marked *