Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: I2c Ardiuno Bridge to Edit Vsize  (Read 964 times)

0 Members and 1 Guest are viewing this topic.

darknezz19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:December 27, 2023, 02:54:47 am
  • I want to build my own arcade controls!
I2c Ardiuno Bridge to Edit Vsize
« on: December 03, 2022, 12:57:14 pm »
Got an ardiuno and downloaded one of Martin Hejnfelt's i2c projects to enable rgb on certain jungles. The git is below.

https://github.com/skumlos/tb1226en-i2c-bridge

My Jungle is a TA1268N, uses the same write address and read address as his jungle. Edited the code to just look for 09 offsets and edit the hex to change Vsize. Was having trouble getting it to work at first, but for some reason when my logic analyzer is hooked up to the i2c outputs that go to the jungle, it magically starts working. I'm not sure why yet, and need to figure that out. Edited the Vsize value manually and reuploaded to the ardiuno, Vsize was indeed changed. In the end my goal will to be to store an initial Vsize value, and then map a couple momentary switches to increase and decrease the value.

This will be great for GroovyMame setups. As many of your might already know, most all other geometry can be controlled with settings in the driver, except for Vsize. When this is done, which might take a while longer as I'm a green horn with C++, should be seamless to change that setting. No more having to go through the service menu when changing a game.

Big thanks to Martin for making his code open source, couldn't have started this without his initial code.


Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: I2c Ardiuno Bridge to Edit Vsize
« Reply #1 on: December 03, 2022, 03:15:26 pm »
Very cool project. I was thinking about something like that for some time now. I'm my case it would be possible with a digital potentiometer. It would have to be set on a per game basis though.

darknezz19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:December 27, 2023, 02:54:47 am
  • I want to build my own arcade controls!
Re: I2c Ardiuno Bridge to Edit Vsize
« Reply #2 on: December 04, 2022, 11:09:40 pm »
Thanks man. That's a cool idea with the digital pot.

Had some time and think I got it far enough along to show. Other people can edit the code to match their sets jungle chips register offset for Vsize, without too much fuss. I would think.

https://www.youtube.com/shorts/iaNxtEacty4

Here is a fork of Martin's wonderful original code with the Vsize control.

https://github.com/darknezz19/tb1226en-vsize-bridge

R-Typer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 143
  • Last login:April 21, 2024, 04:06:30 pm
  • C64 Rulez!!!!
Re: I2c Ardiuno Bridge to Edit Vsize
« Reply #3 on: December 05, 2022, 11:09:41 am »
Hey, this is great! Will this work on Sony Trinitrons CRTs which have their own mind when positioning geometry is in question?

darknezz19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 15
  • Last login:December 27, 2023, 02:54:47 am
  • I want to build my own arcade controls!
Re: I2c Ardiuno Bridge to Edit Vsize
« Reply #4 on: December 06, 2022, 12:42:46 am »
Should be the same for Sony sets. Comes down to the jungle that is used to find the registry offsets and bits in the data sheet. I read about another guy Jose who RGB hacked a Sony set over I2C, and he had to do some extra trickery to spoof a watchdog routine. Something to that effect. He wrote a blog about it. If I ever mess with a Sony I2C bus, I'll write up about it as well.

https://coredump.io/sony_rgb_mod/