Dingoonity.org

Other Portable Consoles => Other Game Systems => Topic started by: kfchow on July 22, 2019, 11:50:32 pm

Title: RS90 in a GBA SP shell?
Post by: kfchow on July 22, 2019, 11:50:32 pm
Found this on aliexpress.

https://www.aliexpress.com/item/32992382153.html?spm=a2g0s.8937460.0.0.5c152e0enndXOR

Looks like a RS90 in a GBA SP Shell.  Hopefully moddable as it'll be nice to have the same firmware running.

It'll be nice to play GBA games on the same form factor.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on July 23, 2019, 11:51:46 am
It's the G100 (https://boards.dingoonity.org/other-game-systems/g100-console/), as far as I know, it's very close to the RS-90 (https://boards.dingoonity.org/ingenic-jz4760-devices/game-g100-cheap-gba-sp-clone-issue/msg187866/#msg187866), but with a larger screen (https://boards.dingoonity.org/ingenic-jz4760-devices/game-g100-cheap-gba-sp-clone-issue/msg187856/#msg187856).

One G100 on its way to pcercuei, fingers crossed hoping the device will be hackable.
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on July 23, 2019, 05:52:37 pm
In theory it is hackable, but I can't figure out how to make the LCD work, so unless I get help with that it won't happen.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on July 23, 2019, 06:07:59 pm
Well, lets hope you will then - pretty sure a $25 RS-90 with a larger screen (that can run NES/SNES without scaling) would make a lot of people quite happy.
Title: Re: RS90 in a GBA SP shell?
Post by: kfchow on July 25, 2019, 02:53:32 am
Thanks for the info guys.  I'll grab one anyway since its cheap.
Title: Re: RS90 in a GBA SP shell?
Post by: quadjfet on July 26, 2019, 01:31:13 am
It appears to be using an 8-bit 8080-style MCU interface. Pinout seems to be a direct match to this, or compatible: https://www.aliexpress.com/item/32379373893.html , judging from my probing, see end of post.

This looks pretty tasty, and MIT Licensed: https://github.com/stevstrong/Adafruit_TFTLCD_8bit_STM32/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Counting pins on socket, starting from left
Measurements taken while displaying Mario Kart Super Circuit - single player game start options

Pin 1  - 3.3V constant.
Pin 2  - 0V constant
Pin 3  - 3.3 constant, noisy
Pin 4  - 3.3 constant
Pin 5  - 0V constant
Pin 6  - slow enable-type thing
Pin 7  - fast enable-type thing
Pin 8  - 3.3v
Pin 9  - noisy 0v
Pin 10 - noisy 0v
Pin 11 - noisy 0v
Pin 12 - noisy 0v
Pin 13 - noisy 0v
Pin 14 - noisy 0v
Pin 15 - noisy 0v
Pin 16 - noisy 0v
Pin 17 - data             //8 MHz
Pin 18 - data
Pin 19 - data
Pin 20 - data
Pin 21 - data
Pin 22 - data
Pin 23 - data
Pin 24 - data

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on July 26, 2019, 02:46:13 am
It is a 8-bit 8080 interface, yes. I think it's a ILI9338 (there's the "ILI9338" string in the firmware dump).
Title: Re: RS90 in a GBA SP shell?
Post by: quadjfet on July 30, 2019, 09:48:42 am
The controller has id 0x7789, likely an ST7789V. I can successfully draw to the display with the arduino library "mcufriend".

https://github.com/prenticedavid/MCUFRIEND_kbv

I think the panel is read-only, so you just have to force it. You can't rely on asking the panel what it is and then choosing a driver.

I modified the example "diagnose_TFT_support.ino". I changed the first call to

Code: [Select]
tft.begin(0x7789)
which was all that was required, after some experimenting.
Title: Re: RS90 in a GBA SP shell?
Post by: quadjfet on July 30, 2019, 08:30:20 pm
As discussed on IRC, the lcd in the RS-12 Arcade Mini is electrically and mechanically pin-to-pin compatible and runs with the same 0x7789 codepath from the MCUfriend library.



Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on July 30, 2019, 09:39:43 pm
What I'm missing is the reset line, do you know where it's connected?
Title: Re: RS90 in a GBA SP shell?
Post by: quadjfet on July 31, 2019, 12:27:01 am
It is connected to pin 110 on the JZ4725B package. (At least on the RS-12 Mini I have opened up in front of me.)

I could be off by +- 1 pin, since the pitch is so small, but I am fairly certain.


Notes from breadboard testing:

1. Running the MCUfriend sketch, the pin starts out low as the board is in reset. It twiddles a few times as the ESP32 comes out of reset, then stays high for the duration of the sketch.

2. Disconnecting the LCD's Reset pin from the ESP32 while leaving everything else connected, the pin's default state is LOW. The pin will be in the LOW state and module will not init if you leave this pin unconnected. I get the standard blank white screen.

3. Tying the Reset pin to HIGH results in a successful panel init and display.


At least with my current breadboard setup, it does not seem like this pin needs to be actively controlled.
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on August 05, 2019, 03:33:49 pm
Could you check on which JZ4725B pin is the reset line connected on the G100?
I don't have a multimeter so that's very hard for me to figure out.
Title: Re: RS90 in a GBA SP shell?
Post by: quadjfet on August 05, 2019, 07:29:52 pm
See my above post.

 The aliexpress pinout I attacheds further up the thread is an exact match to this panel. Pin 4 on the LCD is the LCD_RESET (active low), it is connected to pin 110 on the JZ4725B package. JZ4725B_DS.pdf refers to this pin as "LCD_DE" . PD21 GPIO group D bit 21 . (page 16)

I'll be on IRC for a little while if you have more questions.
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on August 05, 2019, 10:09:55 pm
Yep, you confirmed that for the RS-12, but it may have been different for the G100.
(but it's the same pin, confirmed on IRC)
Title: Re: RS90 in a GBA SP shell?
Post by: kfchow on August 23, 2019, 09:09:29 am
So i got this and mine doesn't turn on.  It has a red led when charging but the other led (which i assume is green) and the screen itself never turns on:(  Big black nothing.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on September 26, 2019, 09:24:44 pm
Ebay popped one of these with a discount code at me, and as it was less than $25 total, I've grabbed it, so now I'm on this train as well.

I'm guessing nothing interesting happened in the meantime?
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on October 09, 2019, 04:35:52 pm
Ok, got my G100, and the screen is quite nice (but they really could go for micro USB instead of mini USB), really hoping for a cfw now.
Title: Re: RS90 in a GBA SP shell?
Post by: Qinti on October 10, 2019, 04:19:46 pm
Can buttons be remapped? Also, how does this compare to a Bittboy in terms of stability? I am aware a Bittboy has CFW, but other than the shoulder buttons, is there any advantage to having this?

Also, can you comment on the playability of the I closed emulators and if there is any screen tearing?
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on October 10, 2019, 09:24:40 pm
Plays GBA/MD/NES/SNES/MAME fairly decently as far as I can tell, but performance is not going to be top notch, obviously. Compatibility is identical to the RetroMini with its original fw.

Good:
- really nice screen
- a $25 pricetag
- the shell format is quite nice

Bad:
- not possible to remap buttons, this will make a lot of games unplayable
- mini USB charging port
- no GB/GBC support

Overall, I wouldn't recommend it without cfw, which I hope will be available in the nearish future. Until then, the BittBoy is a much better choice, and not that much more expensive ($35 is possible if you wait for a sale).

With cfw, this will become the recommended entry-level device almost for sure.
Title: Re: RS90 in a GBA SP shell?
Post by: Qinti on October 13, 2019, 07:32:09 am
By button mapping, you mean SNES and MD games right? I saw that mapping was a bit funky. How about GBA games? Are the buttons correctly mapped? And if you say performance is like the RS-90, you mean frameskip, right?
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on October 13, 2019, 01:16:33 pm
Yes. The default button mapping is slightly different from the RetroMini, and if it does not allow you to control the game properly out of the box, you are out of luck - the first victim being Chrono Trigger, no button will allow you to access the menu, and as you can't remap, you are done. The few GBA games I've tried seemed fine, but as always, your mileage may vary.

I'd say grab one if you like the format and it's $25 or less, stick it in the drawer and hope for the cfw.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on February 29, 2020, 06:10:48 pm
So.. Any luck with the CFW, @pcercuei?
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on February 29, 2020, 07:53:51 pm
I got stuck at trying to get the LCD to work, and gave up to work on other things.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on March 01, 2020, 09:50:20 am
For now, or forever?
Title: Re: RS90 in a GBA SP shell?
Post by: pcercuei on March 01, 2020, 08:41:12 pm
Unless someone else gets the screen to work, that means most likely forever, sorry.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on March 02, 2020, 03:53:21 pm
Ah well, can't have it all. Not too important I suppose, as currently, a v3.5 BittBoy is cheap enough to make anything else in the $30 price range pretty much irrelevant. Thanks for the effort.

I guess I still would be willing to throw my last remaining unit at whoever would want to have a shot at helping you out (and needs to take the device apart) - if there is someone like that out there, feel free to post here or send me a pm.
Title: Re: RS90 in a GBA SP shell?
Post by: Zereth on March 15, 2020, 09:54:19 am
Look, I'm a noob and this is possibly a dumb question... but I'd rather ask:
Would swapping the display for a known one help?

I mean, we can use the Sony DSC-WX300 screen with both the LDK and the RG300, using the LDK FW. I'm wondering if that approach would be helpful in this case. Don't know how to find out myself, got to ask.
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on March 15, 2020, 09:56:43 pm
Having to buy a new screen would defeat the purpose - buying this handheld would only make sense if it were cheap and hackable. Currently, it's neither - it's only a bit cheaper than the BittBoy, and you are stuck with the default firmware. For $20 or less, and with cfw that would add proper support for all the 4gen consoles, this would be awesome, but no such luck.
Title: Re: RS90 in a GBA SP shell?
Post by: Zereth on March 15, 2020, 10:45:20 pm
It would depend on the purpose. There are not many handhelds with this precise form factor, which is very special for some of us. If I could throw a 480x320 screen inside this and play slow-paced GBA RPGs in 2x zoom this would be awesome. And still cheaper than a Pi Zero W in a GBA SP case, and more convenient too (IMHO). A lot tidier for sure.
Doh, a man can dream  :P

I'll soon be trying screens in an RG300; not like I can try many of them, but I'll take advantage of having to use some 320x240 & 480x320 screens for some other stuff and give them a try for this. I know I'll have to switch FW versions and keep my fingers crossed, but I'll do what I can, learn what I don't know and ask when in doubt.

With this form factor and input options I'd aim to GBA and down. Not to mention the JZ4725B. Maybe it's a too specific use case to get traction, but it sure can get some passion. Already has  ;)

I'll try fitting this device into my budget. Money-wise, it's not expensive. Time-wise... my time budget is complicated, to say the least, and I'll have to learn a lot. But I've got a multimeter!  ;D
Title: Re: RS90 in a GBA SP shell?
Post by: v47 on March 16, 2020, 09:30:38 am
Well, if you've got something that could help pcercuei in any way, then by all means, go for it - I agree that having cfw available for this device would still be really nice.
Title: Re: RS90 in a GBA SP shell?
Post by: Zereth on March 16, 2020, 01:23:36 pm
What I've got is a lot of curiosity and very strong feelings about this form factor. I don't own this particular device yet; it's two weeks until payday, give it another month to be delivered (unless that nasty covid gets in the way, which is possible). By then I'll already have those extra screens, but there's also that other, unrelated stuff I have to work on (with those screens). Plus, I have to do a lot of writing and also research, interesting times ahead. But for me this flame is lit, I just need to keep it burning; I'd appreciate any additional info anyone can throw my way.

Of course, I'll keep you posted. But (as I said) it'll take some time on my end...

Cheers!
Title: Re: RS90 in a GBA SP shell?
Post by: Zereth on March 19, 2020, 11:32:46 am
Pin 1  - 3.3V constant.
Pin 2  - 0V constant
Pin 3  - 3.3 constant, noisy
Pin 4  - 3.3 constant
Pin 5  - 0V constant
Pin 6  - slow enable-type thing
Pin 7  - fast enable-type thing
Pin 8  - 3.3v
Pin 9  - noisy 0v
Pin 10 - noisy 0v
Pin 11 - noisy 0v
Pin 12 - noisy 0v
Pin 13 - noisy 0v
Pin 14 - noisy 0v
Pin 15 - noisy 0v
Pin 16 - noisy 0v
Pin 17 - data             //8 MHz
Pin 18 - data
Pin 19 - data
Pin 20 - data
Pin 21 - data
Pin 22 - data
Pin 23 - data
Pin 24 - data

Looking at those pins I'd swear that's an ILI9341 (https://github.com/adafruit/Adafruit_ILI9341).

Edit: it does seem to match this (https://www.aliexpress.com/item/33001674166.html).

Edit 2: I'm referring to the pins, not the screen itself, I know this one is smaller. Just in case.