Communicating from Arduino to DS via slot 2
Posted: Mon Feb 03, 2014 9:40 pm
I want to have my Arduino send values to my DS through slot 2; much like how the DS Paddle, Guitar Grip or the Trainer Toolkit work.
I opened the DS dust cover, drilled some holes and tried soldering some wires based on the little information available on the internet.
http://s2.postimg.org/63ri4f0cp/HNI_0023.jpg
Specifically this page:
http://files.darkfader.net/gba/files/cartridge.txt
I then did a small test by connecting the VCC and GND to an LED, and sure enough:
http://s27.postimg.org/rwrx6sksj/HNI_0020.jpg
So now the tricky part... receiving data.
I soldered wires to ~RD and AD1, though I'm not sure that these are the ones I need, and I will probably need more.
I connected AD1 to a 10k OHM resistor and then to GND of the Arduino. I connected ~RD to A0 of the Arduino.
My DS now recognises the GBA Slot as an Option Pak:
http://s2.postimg.org/o24pl95mx/HNI_0024.jpg
I then uploaded this sketch to my Arduino:
It should be writing a number which increases every 10'th of a second to the DS.
I then tried reading values in RAM from 0x08000000 and onward on the DS, looking hopefully for a steadily increasing value, but alas I of course couldn't find anything.
http://s2.postimg.org/6dcytmtvt/HNI_0025.jpg
I suspect that I have soldered the wrong wires, or need more connections to communicate anything at all.
I know this isn't really libnds, but hopefully someone knows which connections I need to make and can give some addresses in RAM which could be where to look.
Thanks.
I opened the DS dust cover, drilled some holes and tried soldering some wires based on the little information available on the internet.
http://s2.postimg.org/63ri4f0cp/HNI_0023.jpg
Specifically this page:
http://files.darkfader.net/gba/files/cartridge.txt
I then did a small test by connecting the VCC and GND to an LED, and sure enough:
http://s27.postimg.org/rwrx6sksj/HNI_0020.jpg
So now the tricky part... receiving data.
I soldered wires to ~RD and AD1, though I'm not sure that these are the ones I need, and I will probably need more.
I connected AD1 to a 10k OHM resistor and then to GND of the Arduino. I connected ~RD to A0 of the Arduino.
My DS now recognises the GBA Slot as an Option Pak:
http://s2.postimg.org/o24pl95mx/HNI_0024.jpg
I then uploaded this sketch to my Arduino:
Code: Select all
const int analogOutPin = A0;
void setup() {
Serial.begin(9600);
}
int i = 0;
void loop() {
i++;
analogWrite(analogOutPin, i);
delay(100);
}
I then tried reading values in RAM from 0x08000000 and onward on the DS, looking hopefully for a steadily increasing value, but alas I of course couldn't find anything.
http://s2.postimg.org/6dcytmtvt/HNI_0025.jpg
I suspect that I have soldered the wrong wires, or need more connections to communicate anything at all.
I know this isn't really libnds, but hopefully someone knows which connections I need to make and can give some addresses in RAM which could be where to look.
Thanks.