Dserial 3axis gyroscope control
Posted: Wed Jul 22, 2009 1:25 am
Hello guys,
I am trying to gather 3 axes gyroscope information from a Wii motion plus, via the Dserial².
But this little device works with I²C synchronous communication.
thus, the wii motion plus has 4 wires to connect: - 3.3V
- Ground
- Clock
- Data
The ground and 3.3V connection on the Dserial are obvious, and I was thinking of an UART pin to read the data from the gyro (do you think the fact that I²C is synchronous can cause me problems? ).
My main problem is the clock, how can I connect the wii motion plus to the Dserial clock?
I saw that Dserial² Microcontroller is working at 24 MHz, but on the wiring diagram of the Dserial², the DS clock (which is 33MHz) is connected to the MCU pin 2.
Can I just get a wire from pin 2 of DS card slot to the wii motion +, or can I program a GPIO pin to give me the Dserial² clock?
A similar project has been done using an arduino to read info from the wii motion plus, I am convinced that Dserial can do it too, then send it to a computer via Wifi, and that's it, the DS becoming a 5axis tracker for unmanned ground applications. But let's focus on the basics, the rest is 100% software.
Some help would be appreciated here. Sorry for my poor English, and Thanks in advance for your help.
I am trying to gather 3 axes gyroscope information from a Wii motion plus, via the Dserial².
But this little device works with I²C synchronous communication.
thus, the wii motion plus has 4 wires to connect: - 3.3V
- Ground
- Clock
- Data
The ground and 3.3V connection on the Dserial are obvious, and I was thinking of an UART pin to read the data from the gyro (do you think the fact that I²C is synchronous can cause me problems? ).
My main problem is the clock, how can I connect the wii motion plus to the Dserial clock?
I saw that Dserial² Microcontroller is working at 24 MHz, but on the wiring diagram of the Dserial², the DS clock (which is 33MHz) is connected to the MCU pin 2.
Can I just get a wire from pin 2 of DS card slot to the wii motion +, or can I program a GPIO pin to give me the Dserial² clock?
A similar project has been done using an arduino to read info from the wii motion plus, I am convinced that Dserial can do it too, then send it to a computer via Wifi, and that's it, the DS becoming a 5axis tracker for unmanned ground applications. But let's focus on the basics, the rest is 100% software.
Some help would be appreciated here. Sorry for my poor English, and Thanks in advance for your help.