Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CaptainN

Pages: 1
General Hardware Talk / Re: red laser and I2C bus (done)
« on: April 14, 2008, 07:09:44 AM »
Thanks a lot for your help!

Finally I found the problem! I used always 0xB0 as device address but my I2C controller needs the 7 bit address and
automatically shifts it. So by using 0x58 instead of 0xB0 everything works as expected.

Hopefully this will prevent somebody else investing several days of work trying to figure out the error :-)

General Hardware Talk / Re: red laser and I2C bus (done)
« on: April 10, 2008, 04:13:18 AM »
Thanks for the sample code. I start to get some values but they seem to be too random to correspond actually to the medium report 0x33 output format. (Tested with different positions of the led bar). Maybe the initialization is still wrong. Is the camera sending a specific ACK signal I could check?
My Devantec I2C board just gives me a SUCCESS (1) on sending data but of course I don't look for a specific response from the IR sensor.
Furthermore I write the data to the camera using I2C write for devices with 1 byte register, so the first init line looks like this:

(Interface I2C CMD, 1 Byte REG), (I2C Device Addr), (Device Internal REG), (Byte count), (Data)

0x55, 0x0B, 0x30, 0x01, 0x01

The original code was like:

buf[0] = 0x30; buf[1]=0x01;
Report_0x16...(0xB0, 2, buf);

Is there still a mistake in the initalization? Should I look for a camera response (which) after init? Is the IR sensor a device with a 1 byte register or should I send everything just to 0xB0?

If I connect the custom build board with SCL / SDA external to the Wii the IR sensor is just working fine...


General Hardware Talk / Re: red laser and I2C bus (done)
« on: April 08, 2008, 04:46:09 AM »
I still didn't get it work properly with my I2C / USB interface (Devantec). I'll try to initialize the IR sensor like in the routine Wii_IR_init(). Afterwards I send the suggested 0x38, so I'm not sure to which internal address?! I tried 0x00 and 0x30 but nothing works. If I request afterwards 8 bytes of data I get nothing back. Maybe there is a specific address again to read from? Any comments would be welcome!

Pages: 1