LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gyro senser

Im japanese Student

I want to run this project with a gyro sensor with two axes instead of three, but I get error code -363011. Please tell me where to change.

0 Kudos
Message 1 of 6
(2,504 Views)

Is there any information associated with the error code? Searching in my LabVIEW installation tells me it is undefined, but perhaps the myRIO drivers add some additional error codes.

By information, I mean a string that would appear together with the Error Code if you connected an Error Indicator.

 

The project you attached uses a myRIO together with a particular sensor (L3G4200D, according to the comment on the block diagram). It passes commands and flags that are presumably specific to this device.

If you have some different accelerometer or gyroscope, I suspect you will need to rewrite most of the block diagram constants, and potentially a lot more, depending on the new sensor.

 

So, which sensor are you wanting to use? If possible, please link to a datasheet or manual.

Are you still using a myRIO device?


GCentral
0 Kudos
Message 2 of 6
(2,481 Views)

Use myrio.
The data sheet was in Japanese because it was made in Japan.
I translated it but it is difficult to see.

Download All
0 Kudos
Message 3 of 6
(2,471 Views)

Hi raimu,

 

so all you need is a power supply for that sensor and to read two analog voltages?

Aren't there any myRIO example VIs explaining how to read analog signals?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,465 Views)

Thank you
This is the VI I am currently using

0 Kudos
Message 5 of 6
(2,458 Views)

Hi raimu,

 

I think you should start with a new project, or a project that gives an Analog Input example.

The gyroscope project you attached to your first project won't help you at all for this measurement.

 

As GerdW said, you need to make an analog measurement of the OUT pins from your sensor.

Once you have done that, you can scale the measurement using the information in the datasheet (Sensitivity: 0.67mV / deg / sec)

 

The myRIO has several +5V outputs that perhaps could be used as a power source for this sensor (the sensor does not look like it should draw very large current, and the myRIO has a relatively generous 100mA output current for the 5V supplies (per connector)). If this doesn't provide enough current, you'd need to use a separate power supply.

 

As a side note, I found the following link for an English-language datasheet of sorts: https://www.elecrow.com/download/ENC-03.pdf

It claims to use "low current", but doesn't actually give a value (neither did the original Japanese datasheet).


GCentral
0 Kudos
Message 6 of 6
(2,455 Views)