by i-Bot » Mon Oct 01, 2007 11:16 am
by i-Bot
Mon Oct 01, 2007 11:16 am
The basis of the Lynxmotion product is an adapter cable to connect the PS2 interface to the stamp or Atom.
The same could be done on the C3024, but it would need custom C3024 firmware, and worse take up at least 4 ports for the signals (ATT, CLK, DAT, CMD)
What I did was to use an ATmega168(overkill, but quick for me) between the Wireless PS2 receiver (Madcatz), and the ETX/ERX ports. Since the ETX/ERX have no buffer and there are 19 values which can be read from the controller in DS2 native mode, I send a request byte to describe the register to be read or mode set, then get a byte back with the value. I run the serial at 57.6K, and update the controller information into the Atmega every few milliseconds. I have not spent enough time using it to decide if I need to latch any of the button events in the ATmega due to the low speed of Robobasic.
My current setup is ugly, but it would probably fit into the Madcatz receiver case. This still looks like a backpack on the RoboNova
The basis of the Lynxmotion product is an adapter cable to connect the PS2 interface to the stamp or Atom.
The same could be done on the C3024, but it would need custom C3024 firmware, and worse take up at least 4 ports for the signals (ATT, CLK, DAT, CMD)
What I did was to use an ATmega168(overkill, but quick for me) between the Wireless PS2 receiver (Madcatz), and the ETX/ERX ports. Since the ETX/ERX have no buffer and there are 19 values which can be read from the controller in DS2 native mode, I send a request byte to describe the register to be read or mode set, then get a byte back with the value. I run the serial at 57.6K, and update the controller information into the Atmega every few milliseconds. I have not spent enough time using it to decide if I need to latch any of the button events in the ATmega due to the low speed of Robobasic.
My current setup is ugly, but it would probably fit into the Madcatz receiver case. This still looks like a backpack on the RoboNova