LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting Gyroscope with LabVIEW via Bluetooth issue

Hi, 

 

I am measuring the angular position of a rotating platform using an arduino UNO and MPU6050 (gyroscope + accelerometer). I have managed to connect my gyroscope to LabVIEW using Linx software through a USB. However, for my project I have realised I need to measure the angular position wirelessely. I have purchased a bluetooth SMiRF Silver modem and a bluetooth adaptor and I haved paired them successfully but when I now connect my bluetooth to LabView it does not work. Any advice on how to solve this will be much appreciated!!

 

Many Thanks,

 

Okor29

0 Kudos
Message 1 of 6
(3,014 Views)

Can you elaborate on how it doesn't work and what you've tried so far to get it to work? If you have LabVIEW code, can you attach it (the actual code, not a screenshot)?

0 Kudos
Message 2 of 6
(3,006 Views)

When i go on Tools -> makerHub -> Linx -> Linx Firmware wizard and try to set up my connection. I select the COM port my bluetooth adaptor is located and follow the steps to finalise the connection but when I run it, it does not seem to be connected. I think I have not connected to the bluetooth device properly by adding the neccesary stuff to my block diagram but I am not not too sure how to put it together. Also, I do not know how to display labview code, apologies. Thank you for the quick response. 

 

Okor29 

0 Kudos
Message 3 of 6
(3,004 Views)

While I ave never used the SMiRF devices I have used HC-05 and HC-06 bluetooth modules with Arduino and LabVIEW.

 

In general once setup in Windows and properly paired these devices should install a virtual serial port and the fact that they are bluetooth becomes irrelevant .

 

Communicating through them is the same as communicating with any device on a serial port.

 

Check your serial settings. Since LINX doesn't use the VISA serial setup I am guessing that you have to set your serial port settings (baud, bits, parity, etc.) in NI-MAX.

 

***It just dawned on me that when I was working with the HC series I had to set the baud rate on the HC modules themselves. I don't know if the SMiRF are the same or not. Now I think this only affects the module to module rate and is different than the serial port data rate.***

 

Now I have to say I was not using LINX, but I doubt that LINX is the issue here. Anyway it seem to me that you are only trying to get sensor data out. It would be trivial to write a simple Arduino sketch that just spits out the sensor data and read that with LabVIEW, no need for LINX at all.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(2,967 Views)

Thank you, one of the steps I am meant to take is to open my application containing the LabVIEW Interface for Arduino code and Confirm that the baud rate input to the Init.vi matches the DEFAULTBAUDRATE in the Arduino Firmware. So I have been trying to change the serial settings as you said but not sure where it is?

 

I see, so you are saying if I am just reading sensor data, there is no need for LINX. Your right I have got accelerometer blocks when I should actually be using the gyroscope blocks to get gyroscope data out. My project is based on measuring the angular position using a gyroscope and one method is to use labview but if there is any easier options I am open to do them instead. 

 

Many thanks, 

okor29 

 

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

Can someone please assist with this problem. I am not sure how to use NI VISA to connect aruino to PC via bluetooth. 

0 Kudos
Message 6 of 6
(2,936 Views)