I finally 'finished' my first build. I started this nearly 3 years ago: Everything was almost set up but... well I didn't take the time to finish it and I was never entirely satisfied to finally close this project and I ended up forgetting this project in a box.
But these last months I have had a lot of time and I was able to start this project again. My initial goal was to be able to play N64 and PS1 games. At this time, the last available RPi was the 3b+, so this is what I used. I didn't play a lot with it but I try to launch Zelda OOT, the game was running pretty well on it but I had some concerns ( the start menu which took more than 5 seconds to appear for exemple) so I had a lot of doubt about the possibility of playing PS1 games
And when I started this project again last month, I had a RPI4 4gb on hand... And Retropie had just updated for RPi4... I hesitated for a long time considering the difficulty I had in unsolder all the components of the rpi3, but after trying OOT with it and seeing that the start menu was very fluid, I started over!
So this second build is a little bit less... neat... I didn't have the same patience to start over the desolder so I do it faster and didn't try to keep the connector reusable this time. Also, the hot glue gun that I had carefully avoided the first time appeared a little bit...
So here are the pictures: (I haven't yet solder the PAM for now, and the glass screen neither, have to fix that and some other things...)






-L and R trigger and joystick from old slim PSP
-Power switch from PSP -> on-on-(on) switch, I use the last astable 'on' to safe shutdown using SotaSystems script (see link after)
-Digital sound (because it's not easy to add analog potentiometer to control sound level with the PAM8403, explanations later)
-RGB led for charging and low batterie status (logic required with Adafruit 1000C powerBoost)
-3.5 LCD RCA from rear camera
-USB C charging (because USB micro is so 2010...)
Things have changed a lot since I started, today there are a lot of ready-made modules that would greatly simplify construction, but I didn't want to change everything...
First, a huuuuge thanks to Sotasystems (I think he is on this forum, no sure) I mainly follow his project to build mine and this help me a lot!
https://hackaday.io/project/18003/instructions
Same thing for Veteran's builds:
viewtopic.php?f=43&t=3392
For the sound wiring, I try some diagram I found on Veteran's build (those two here). I have some bad result with the second one. In fact, I think you cannot shortcut the two negative wire of R and L channel. those two are meant to be separated (see datasheet, two separated driver for each channel). If I remember well, there is a way to do it properly with a single potentiometer , but I can't find the schematic...
Or use a 2 channel potentiometer, but I don't know if you can find it in wheel format....
So to simplify it, I've just used a digital potentiometer (or encoding wheel), basically, I used the wheel from an old mouse and used this:
https://gist.github.com/savetheclocktow ... tor-volume
I plug my headphone directly at the output of the raspberry (it's made for that) and the PAM8403 is after the headphone connector, only for the speaker. And the volume is controlled directly by the RPI.

For the LED, I wanted to replace the LEDs of the Adafruit module with a single 5mm LED. But If you check the schematic, it is not possible to replace them with a common anode or cathode led. So either use NOT gates to change the logic of the LEDs, or use a RGB LED with separate anode and cathode like this.
(Be carful, it's not because it's a 6 pin LED that it has separate anode and cathode:
http://lednique.com/leds-with-more-than ... in-pinout/ )
I used SMD NOT gates, it really doesn't take up much space:

I have some issues with my screen. First there is a lot of flickering on bright images. I know It's a cheap 12v screen that I use in 5v, but It's almost unplayable... It's a very fast and constant flicker (like 50hz or more) you all have this problem or my screen is very crappy?
I can't find the same control board in the wiki, but it looks a lot like the others:

And the resolution is very very bad! I managed to have something readable on the terminal and on Retropie by following this method and changing the theme.
But the retropie menu and the games are practically illegible:

(a dialog in Zelda OOT)
Do you think I have to change to an HDMI or does mine just suck?