08-20-2018 02:55 PM - edited 08-20-2018 02:56 PM
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
08-20-2018 03:37 PM
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)?
08-20-2018 03:45 PM - edited 08-20-2018 03:47 PM
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
08-21-2018 09:27 AM - edited 08-21-2018 09:32 AM
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.
08-21-2018 09:41 AM
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
08-22-2018 07:31 PM
Can someone please assist with this problem. I am not sure how to use NI VISA to connect aruino to PC via bluetooth.