MegaDrive++ : new switchless region + IGR mod

I used a Sonic Spinball cart, but the game worked without problems.
When I write "spurious/ghost inputs" I'm referring to the Arduino's debug output.
I see, but did you get that with all games?
I thought the problem was caused by the controller, so I didn't do further/deeper testing.
After a few tries, I found that the reset combo seemed to work reliably enough, so I edited the Arduino source and left only that enabled.

I will take another look at the problem in the near future; Maybe there was some problem with the wiring, but I still think the controller was the problem.
Ok, if anything doesn't work as expected please open an issue on the github page and attach the console log.

This is actually valid for anyone who is having issues :). Thanks.
Alright, just installed a nano with MD++.
First of all, thank you so much for creating this project. I loved reading and browsing the github, wiki and forums. Love the simple yet efficient idea you brought up to the world. Kudos!

Now of course, I have some issues now :p
So the nano is wired, double checked my wires with the diagram + with the multimeter. Everything seems to be fine with the wires (megadrive pal M5).
When I turn on the MD, it is by default in - I think, considering the games I tested) in NTSC/60hz. But even then, games dont really "boot". For ex, Sonic 3 Pal will show the region lock message, but Sonic & Knuckles wont load past the boot screen. Another example would be klax pal. The game boots but has weird flickering issues and displays weirdly.

Pushing the buttons of my 3 or 6 buttons doesnt work (no igr or region change). C is pushed, the red LED lights up. Finally, if I push and hold the reset button of the nano, The console works just like normal, ntsc/60hz. about a second or 2 after I release the button, black screen. Reset button does not work.

Any idea?
(We are trying to solve this issue in the Telegram support channel, hence the lack of replies here. We'll report the solution when we're done.)
I have the exact same issue.
Reset and button combo will not change region.
Pressing "C" will make a LED "RX" on the nano light up.
I started a issue on git hub.
Did you fix this?
Did you check out the FAQ, number 3 in particular?

Also, did you use this particular wiring diagram?
Thanks for the reply.
Yes I added the other file in the same folder as the ino file. I notice the IDE software opens it in a separate tab so I assume that it worked?
This is how I wired it

Code:
                                   +-----+
                      +------------| USB |------------+
                      |            +-----+            |
       (Built-in LED) | [ ]D13/SCK        MISO/D12[ ] |
                      | [ ]3.3V           MOSI/D11[X]~| [LED Blue]
                      | [ ]V.ref     ___    SS/D10[X]~| [LED Green]
            Reset Out | [X]A0       / N \       D9[X]~| [LED Red]
             Reset In | [X]A1      /  A  \      D8[X] | [Single Pin Led]
   JP3/4 (Video Mode) | [X]A2      \  N  /      D7[X] | Pad Port Pin 1 brown
     JP1/2 (Language) | [X]A3       \_0_/       D6[X]~| Pad Port Pin 2 red
            [LCD SDA] | [X]A4/SDA               D5[X]~| Pad Port Pin 3 orange
            [LCD SCL] | [X]A5/SCL               D4[X] | Pad Port Pin 4 yellow
                      | [ ]A6              INT1/D3[X]~| Pad Port Pin 6 grey
                      | [ ]A7              INT0/D2[X] | Pad Port Pin 7 white
                  +5V | [X]5V                  GND[X] | GND
                      | [ ]RST                 RST[ ] |
                      | [ ]GND   5V MOSI GND   TX1[ ] |
                      | [ ]Vin   [ ] [ ] [ ]   RX0[X] | Pad Port Pin 9 black
                      |          [ ] [ ] [ ]          |
                      |          MISO SCK RST         |
                      | NANO-V3                       |
                      +-------------------------------+
IMG_0016[1].JPG IMG_0017[1].JPG IMG_0018[1].JPG md.png

Originally I wired it wrong by following a picture in this forum. Then I noticed the above pinout inside the ino.
I have rechecked how we solved @Espouai's issue in the support chat: he had to cut ALL the JP1/2/3/4 jumpers, he had left two connected. Maybe I need to make that clearer: consoles from different regions will have different ones connected, as those are what set the original language/region, thus they should ALL be cut.

Besides, he had a bad solder joint on one of the controller port wires, so maybe you can check that as well?

Please ignore the RX led that lights up when pressing C, that's an harmless side effect. The led that should light up when you press ANY button is L, if that does not happen you'll need to check your controller port wiring again (or reflash the firmware).
OK. I have now cut all of the jumpers like this

Code:
JP3 o- / -o
JP4 o- / -o
JP2 o- / -o
JP1 o- / -o
I disconnected the Arduino wires that go to the jumpers and found these measurements. Do they look correct?

Code:
JP3 (5v) o - o (0v)
JP4 (5v) o - o (5v)
JP2 (5v) o - o (5v)
JP1 (5v) o - o (0v)
All my controller joints bell out fine

Is it normal for the flashing of the nano to fail a bunch of times? Also the nano gets quite hot. Maybe my nano is defective?
Mmmmh, I'm not sure they look correct, but anyway you shouldn't measure voltage but continuity (actually the lack thereof) between every couple of top/bottom pins. If your multimeter does not have a continuity function, measure resistance, it must be much higher than 0.

The flashing should always be successful, provided that you disconnect the controller before flashing. And the Nano should just get warm, if it gets hot it might be a sign of short, either external or internal (but then I don't think the flashing would ever succeed).
Here is how they measure for continuity with no wires attached to the pads.

Code:
JP3 o-/-o
    |    |
JP4 o-/-o
    -    |
JP2 o-/-o
    |    |
JP1 o-/-o
I don't have any MD board to check now, but I don't think that looks OK. The pads on the right should NOT have continuity between them all.
I wonder if my first attempt to solder in the nano broke something? I was using the wrong diagram.
My flash cart broke and I sold all my games so I cant even test the console.
I will see if I can pick up a game tomorrow to verify the console isn't broken :(

Thanks for your help. I'll post back tomorrow
I think the only way you could break it is if you swapped the 5V and GND wires.

You can try flashing the Blink example on it, it should make the L led blink once a second, and it would indicate that the Nano is fine to a certain degree.
Ok so today I got myself a game and it seems that the nano only works when a game is inserted!
That said it's still not working correctly.
While the LED changes to indicate a different region, sonic seems to be always in NTSC-U
My official broken controller works as expected, but my 8bitdo wireless does not work correctly.
The reset button no longer works as a reset and it also doesn't toggle modes.

Any ideas?
Oh yes, that was something obvious to me... If no game is inserted noone is polling the controller and MD++ has no data to snoop. I'd better emphasize that in the docs, sorry.

Start with a known working game (Sonic 1) and original controller to minimize the variables.

If the region doesn't change, please check the voltage between JP3/4 and ground: it should be 0 or 5V according to the region set. Same for JP1/2.

We'll check the reset button later.
OK never mind. I did say above that my flash cart recently broke and I sold all my games :)
I have enough working buttons on my official controller to test region switching.
My LED is red, green off (2 colour LED).
In every colour I measure 5v from JP3/4

EDIT: I should say that if I manually short JP3/4 to ground I get PAL 50hz as expected. But the nano does not do this.
Well:

Code:
case EUR:
  digitalWrite (VIDEOMODE_PIN, LOW); // PAL 50Hz
If you don't get 0V, then that pin of the Nano might be broken. It might have broken when you connected it to JP3 before you cut all connections. I would suggest getting another Nano for 2€ and replacing it just to make sure.

Original thread: https://assemblergames.com/threads/megadrive-new-switchless-region-igr-mod.61273/