arduino-boy icon indicating copy to clipboard operation
arduino-boy copied to clipboard

Can you explain the link cable?

Open Geezbrekt opened this issue 9 years ago • 9 comments

Can you explain which pins of the link cable to use: Old "8bit" Plug:


| 6 4 2 | 5__3__1/ (at cable) Pin | Name | Colour 1 | VDD35 | N/A 2 | SO | Red 3 | SI | Orange 4 | SD | Brown 5 | SC | Green 6 | GND | Blue

and which pins of the arduino go with which pins of the link cable?

Geezbrekt avatar Dec 11 '15 10:12 Geezbrekt

taken from https://github.com/EstebanFuentealba/Arduino-Spoofing-Gameboy-Pokemon-Trades

Geezbrekt avatar Dec 11 '15 10:12 Geezbrekt

                                                                                  It's basically SPI. So you need to connect SC, SI, and SO to the clock, mosi and miso lines of the Arduino.                                                                                                                                                                                                                                                                                                                                        Sent from my BlackBerry 10 smartphone.                                                                                                                                                                                                                From: GeezbrektSent: vrijdag 11 december 2015 11:32 AMTo: pepijndevos/arduino-boyReply To: pepijndevos/arduino-boySubject: [arduino-boy] Can you explain the link cable? (#5)Can you explain which pins of the link cable to use:

Old "8bit" Plug:

| 6 4 2 | 5__3__1/ (at cable) Pin | Name | Colour 1 | VDD35 | N/A 2 | SO | Red 3 | SI | Orange 4 | SD | Brown 5 | SC | Green 6 | GND | Blue

and which pins of the arduino go with which pins of the link cable?

—Reply to this email directly or view it on GitHub.

pepijndevos avatar Dec 11 '15 11:12 pepijndevos

To which channels of the arduino though? Like port 4,3,2, and gnd were the arduino ports I used with the link cables for trade spoofing, can u go into more detail please

Geezbrekt avatar Dec 11 '15 22:12 Geezbrekt

Actually, any port at all. A quick glance at the code made me remember that I bit-banged the SPI for this project. So 4, 3, 2, gnd will do. Just change the defines at the top to match that https://github.com/pepijndevos/arduino-boy/blob/master/gameboy.ino#L5-L7

pepijndevos avatar Dec 12 '15 08:12 pepijndevos

Hi,

I managed to connect port 4,3,2 on the teensy 2.0 on port 1,3,2.

Serial debug give me this :

hello world
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0 80 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
idle
idle

But when I try to access link trade via Pokemon center It fails, saying it needed to be 2 linked players.

Can you help me ?

tchaly-bethmaure avatar May 31 '21 17:05 tchaly-bethmaure

You need to change the ports. The defaults are for an arduino mega IIRC.

#define MOSI_ 22
#define MISO_ 23
#define SCLK_ 24

pepijndevos avatar Jun 01 '21 12:06 pepijndevos

Well I did connect as you told me but it still don’t work. Same results. Maybe my câble or the chip is malfunctionning ?

tchaly-bethmaure avatar Jun 01 '21 14:06 tchaly-bethmaure

I don't have a crystal ball. All I can tell you is to make sure everything is connected and the the pin you connected the game boy wires to matches the defines. You do not have to use ports 1, 2, 3, but IF YOU DO, then you have to change the defines to 1, 2, 3. The default defines use pins 22, 23, 24. There are a few branches with different configurations, you can give these a go as well.

pepijndevos avatar Jun 02 '21 18:06 pepijndevos

On my teensy 2.0 I have soldered : Black wire on GND (SC) Green wire on PB1 (SLCK) (SO) Orange wire on PB2 (MOSI) (SI) Red wire on PB3 (MISO)

I got 'Idle' on serial output, when I speak to the character (let name it Mr.X) that allow me to trade or battle, nothing happen.

Then I did : Black wire on GND (SD) Brown wire on PB1 (SLCK) (SO) Orange wire on PB2 (MOSI) (SI) Red wire on PB3 (MISO)

With that I got idle, then when I talk to Mr.X some data are received but only 0 values.

hello world
 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0 80 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
idle
idle

Edit : The defined ports on gameboy.ino are : #define MOSI_ 2 #define MISO_ 3 #define SCLK_ 1

tchaly-bethmaure avatar Jun 04 '21 14:06 tchaly-bethmaure