View Full Version : pin number for data and clock
01-10-2006, 11:52 PM
· I have a gyroscope,"MG1101"·which has conventional 2-wire serial interface bus, one is data line and the other is clock line.
··I am trying to let it communicate it with BSII.
· I was curious to find out the pin number on BSII for data and clock if there exists.
· If anyone is familiar with the idea please reply.
· I would appreciate it.
· Below is a link to the info for the gyroscope I have.
· thank you,
01-11-2006, 12:05 AM
Thats a neat device, unfortunately they are more geared to end products and the MG1101 is an OEM module, Ive searched thier site and couldn't find a detailed spec sheet of the gyro itself. You will have to contact them to ask for the detailed specification sheet which should have how the communication protocol works. I have a suspicion it is one way SPI, but its just a suspicion (it could also be I2C). If it is SPI you would use the PBASIC SHIFTIN command (if it's I2C you would use the I2CIN command if you have a BS module that supports the I2C commands, or use Jon William's code to do I2C on BS modules that don't have I2C builtin commands). Either way you can specify which pin to do the communications on, you are not restricted to a specific set of pins.
That is a neat part.·You might also want to check Spark Fun's website, they have a wide variety of gyro sensors. They even have gyro/accelerometer combo boards. I know you bought this one and would like to use it, but if they are not willing to provide a data sheet, or you decide later on you want something different, you can get one form Spark Fun.
Post Edited (SN96) : 1/10/2006 4:31:38 PM GMT