11-03-2016 07:16 AM
Helloo 🙂
I am using the PMOD gyro example code (https://www.youtube.com/watch?v=o_iuY0M3yDk) and I had the following question:
The gyro doesn't seem to detect very fast changes, so I wanted to change the sensitivity to more dps. Can anyone help me with this? I don't know what I have to change in the VI.
Thanks in advance!
11-04-2016 05:00 AM
Hello Marijn
You can modify this from the VI by changing the CTRL_REG4 = x23/x10
This will change the DPS rate of the L3GD20.
For further reference please refer to the datasheet, especially page 34/44 which explains the individual bits of the register: http://www.st.com/content/ccc/resource/technical/document/datasheet/43/37/e3/06/b0/bf/48/bd/DM000364...
Hope this helps 🙂
11-04-2016 02:54 PM
Thanks a lot! I still have another question:
How do I "read" this registers (in the picture)? The left column is the numer of the register and the right is "data", but what do they mean?
So if I want to change the sensitivity: I have to change CTRL_REG4, I want 500 dps, so I change the data to 01? (or is this binairy?)
11-07-2016 03:45 AM
You are correct, the left column is the register number in hex.
The right column which is the "data", is written in hexadecimal, with each character representing 4 bits. so x00 = 00000000, while 0x10 = 00010000.
In order to get 500 DPS, we see from the data sheet that FS1-FS0 must equal 01. but there is also 2 0's before FS1 (BDU & BLE), hence the whole nybble (4 bits) will equal 0001. Then are the 4 0's from -, 01, 01, and SIM. This leads the full byte being equal to 0x10.
Best regards