Send accelerometer data from Arduino NanoBLE to an app via bluetooth

Hi guys,

I have an Arduino Nano Ble which has a build in IMU. I want to send the data from the IMU to an app via bluetooth. Do you know how this is done? So basically I want to have the serial plotter on my mobile phone via an app

Yes it can be done. You can hire somebody to do the job for you there is a section on this board for just that. For you to do it, we need a lot of information so we can help. What App, data, format, length, rep rate, etc. Also post a real schematic, not a frizzy thing of your proposed schematic with parts, links, etc.

emre-yilmaz:
Nano Ble which has a build in IMU. I want to send the data from the IMU to an app via bluetooth. Do you know how this is done? So basically I want to have the serial plotter on my mobile phone via an app

Assuming that an IMU is a sensor that can produce numeric variables, all you need to do is serial print those variables via Bluetooth. This is no more difficult than sending data to the serial monitor. You just need to ensure that the phone app is BLE compatible. If your mobile is an iPhone you can be sure the app is kosher. Not all Android apps are. The app should tell you how it wants to receive the data.

Nick_Pyner:
Assuming that an IMU is a sensor that can produce numeric variables, all you need to do is serial print those variables via Bluetooth. This is no more difficult than sending data to the serial monitor. You just need to ensure that the phone app is BLE compatible. If your mobile is an iPhone you can be sure the app is kosher. Not all Android apps are. The app should tell you how it wants to receive the data.

Can you tell me which phrase to use to do that? Is there something like Serial.print for that?

gilshultz:
Yes it can be done. You can hire somebody to do the job for you there is a section on this board for just that. For you to do it, we need a lot of information so we can help. What App, data, format, length, rep rate, etc. Also post a real schematic, not a frizzy thing of your proposed schematic with parts, links, etc.

I only use the Board. The sensor is already integrated in it so I don`t use any external sensor. So I only have numerical values that need to be send to a smartphone

Nick_Pyner:
Assuming that an IMU is a sensor that can produce numeric variables, all you need to do is serial print those variables via Bluetooth. This is no more difficult than sending data to the serial monitor. You just need to ensure that the phone app is BLE compatible. If your mobile is an iPhone you can be sure the app is kosher. Not all Android apps are. The app should tell you how it wants to receive the data.

I am having the following problem: If I use the LED BLE example then the app recognizes that there is a BLE Arduino, but if I do any other sketch it does not recognize it. All I want is to have the serial monitor on my smartphone too because I am trying to simulate an IoT application

emre-yilmaz:
Can you tell me which phrase to use to do that? Is there something like Serial.print for that?

Yes. I don't know anything about the nano BLE, I guess it is on its own dedicated serial port and the command may be
Bluetoothserial.print(ladedah);
This should all be in the Nano datasheets.

emre-yilmaz:
I am having the following problem: If I use the LED BLE example then the app recognizes that there is a BLE Arduino, but if I do any other sketch it does not recognize it. All I want is to have the serial monitor on my smartphone too because I am trying to simulate an IoT application

This sounds like pilot error. The phone cannot see Arduino, It just sees Bluetooth. If it can work with one Arduino programme, it can work with all of them. The most likely reason why it isn't getting anything is because Arduino isn't sending anything. I guess another possibility is the app demands data in a specific format, you're not following the format, so it rejects everything. If you send your junk data to a plain vanilla terminal app, which isn't too fussy about what it receives, you will probably get a result.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.