Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you explain the link cable? #5

Open
Geezbrekt opened this issue Dec 11, 2015 · 9 comments
Open

Can you explain the link cable? #5

Geezbrekt opened this issue Dec 11, 2015 · 9 comments

Comments

@Geezbrekt
Copy link

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
Copy link
Author

@pepijndevos
Copy link
Owner

                                                                                  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.

@Geezbrekt
Copy link
Author

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

@pepijndevos
Copy link
Owner

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

@tchaly-bethmaure
Copy link

tchaly-bethmaure commented May 31, 2021

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 ?

@pepijndevos
Copy link
Owner

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

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

@tchaly-bethmaure
Copy link

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 ?

@pepijndevos
Copy link
Owner

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.

@tchaly-bethmaure
Copy link

tchaly-bethmaure commented Jun 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants