LISY300 Gyroscope
naruki
Posts: 4
Got a question here, is the output directly proportional to the rate of change of angle? I read some information here in the forums conflicting with the datasheet.
Edit:
I have another question anyways, about the SPI communication. I've yet to get any readings from the gyroscope, having troubles with the SPI communication.
I'm using the mBed microcontroller so I'm programming in C and I'm using the SPI functions available in the provided mBed libraries. I specified the number of bits to capture as 16 bits, Mode 2 (tried Mode 1 as well) to capture the bits at the falling edge of the clock and set the clock as 1MHz. After setting up, I just have to send a dummy bit (since the gyro doesn't have MOSI communication) and the SPI function will just clock in 16 bits and then store them in a variable. The program keeps capturing zeroes though.
Not wanting to go into the syntax and mBed specific stuff for now, are the settings I used correct, especially the mode?
I've tried reading the sample code and I can understand some parts of it but I've no experience with Basic at all, at least I assumed the sample code is written in Basic.
Edit:
I have another question anyways, about the SPI communication. I've yet to get any readings from the gyroscope, having troubles with the SPI communication.
I'm using the mBed microcontroller so I'm programming in C and I'm using the SPI functions available in the provided mBed libraries. I specified the number of bits to capture as 16 bits, Mode 2 (tried Mode 1 as well) to capture the bits at the falling edge of the clock and set the clock as 1MHz. After setting up, I just have to send a dummy bit (since the gyro doesn't have MOSI communication) and the SPI function will just clock in 16 bits and then store them in a variable. The program keeps capturing zeroes though.
Not wanting to go into the syntax and mBed specific stuff for now, are the settings I used correct, especially the mode?
I've tried reading the sample code and I can understand some parts of it but I've no experience with Basic at all, at least I assumed the sample code is written in Basic.
Comments
Sensitivity:
The LISY300 Gyroscope has a sensitivity of 3.3 mV/°/s. The ADC is 10-bits providing approximately 3.22
mV per step. Each step is approximately 1 degree of change on the gyroscope.
Have you seen this post?
http://forums.parallax.com/showthread.php?127868-Gyro-lisy300
I have another question anyways, about the SPI communication. I've yet to get any readings from the gyroscope, having troubles with the SPI communication.
I'm using the mBed microcontroller so I'm programming in C and I'm using the SPI functions available in the provided mBed libraries. I specified the number of bits to capture as 16 bits, Mode 2 (tried Mode 1 as well) to capture the bits at the falling edge of the clock and set the clock as 1MHz. After setting up, I just have to send a dummy bit (since the gyro doesn't have MOSI communication) and the SPI function will just clock in 16 bits and then store them in a variable. The program keeps capturing zeroes though.
Not wanting to go into the syntax and mBed specific stuff for now, are the settings I used correct, especially the mode?
I've tried reading the sample code and I can understand some parts of it but I've no experience with Basic at all, at least I assumed the sample code is written in Basic.
ps: I can't read schematics or diagrams, only photos (I'm nine years old).