Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

PMOD Gyro: Change sensitivity (250 dps to 500 dps)

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!

0 Kudos
Message 1 of 4
(3,673 Views)

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 🙂

0 Kudos
Message 2 of 4
(3,654 Views)

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?)

0 Kudos
Message 3 of 4
(3,646 Views)

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

0 Kudos
Message 4 of 4
(3,616 Views)