Connect my arduino ble to my phone via bluetooth

Hello, (sorry for bad english)

I make an application in order to connect my arduino to my phone and try to display some data from the accelerometer (arduino 33 ble sense) but when i click on "Scan" nothing is inventor.pdf (210.2 KB)

the numbers 0x180C is what is display on nrf connect when i connect my device

thanks for helping me

can you help me please ??

Can you give more information - Capture your Blocks code and upload your Arduino Sketch as a .txt file.

What is the version of BLE Extension you are using in your Project?

... Ensure that Bluetooth is switched on, Fine Location is switched on.

  1. What is the make and model of the phone?
  2. What is the Bluetooth version of the phone?
  3. What is the Bluetooth version of your Nano - I can't find it in the tech specs.

This is a bit alarming:

The HTS221 humidity and temperature sensor: Due to self-heating, when the board is powered by USB, the HTS221 becomes unreliable and shows an offset in each reading that changes with the external temperature. To obtain reliable measurements, the board shall be powered by the 3v3 pin, this could be done by cutting the +3V3 solder jumper on the bottom and powering the board through the VIN pin.


Here my arduino code and my blocks on MIT.

bluettoth accelerometer.txt (3.2 KB)

Location and bluetooth are both switched on. My phone is a Samsung Galaxy A40.

i can't find the version of BLE Extension and the bluetooth version of my Nano ... where i can find these informations?


Your A40 supports Bluetooth 5.0. I was hoping you would find the BT spec for the Nano either on the chip itself or in the instructions it came with........

You can see the version date of the BLE extension in the Extension box of App Inventor. Click on the tiny question mark. The most recent version is 20200828

So the Nano BT version is 5.

When you post in your Topic in reply to someone, make sure you do that via the (gray) reply button under their post - that way a notification is received which means they may get back to you more quickly :slightly_smiling_face:

Modify your BytesReceived Block as per my earlier post. You probably need to give the scan a bit of time to find devices (one you have the Nano's address, you can change your code to use it directly without scanning).

Here is a sample Project that shows how to give the scan time to complete:

Where dd you find the Arduino Sketch? It has a lot of errors......

I make it by myself with some search on Internet.On my app, I want to display the power of a boxer when he hit the punching bag thanks to the acceleration of my nano

Which blocks am i supposed to change and what is wrong in my arduino code ? can you correct it please ? thanks for helping me

Finally i want to use this nano with a battery and can connect it to my phone as any more common bluetooth devices like headset or speaker...


The main issue in the Sketch is all the Serial Print stuff. Since you are only using one Serial Channel, that data can only go to one device. You certainly don't want anything other than the sensor values going to your App, so either add a software Serial to maintain two channels (one to your App, one to the Arduino Serial Monitor) or simply comment out all the Serial lines except the ones sending the sensor value.

I'm not sure about your Service and Characteristic UUIDs - did they arrive as default values for the Nano?

Where abouts on the punch bag is the Nano going to be?

Concerning the Blocks, incorporate the change I have shown in my earlier post, and work out for yourself how to use the scan Clock Timer Blocks of my example Project in your Project.

We are here to help, but not to do your work for you.

I just take it from nRf connect ... I just want to be able of pairing my phone to the nano without connect it to my computer or an app like nRf connect (i want my own app )

at the bottom of the punching bag

yes but i am a beginner on arduino. Can you just say to me where are the mistakes ?

Can you incorporate all of my pointers first?

Actually - just realised this punch bag Project has been done before. One of the issues was data streaming. Have you measured (timed) how quickly your boxers are hitting the punch bag? Or is it just a single punch to measure?


like this ?

the goal here is to mesurate all of the punchs he give on the punch bag but just know with the acceleration the "power" of each punch (F= weight of the bag x acceleration ) (maybe with a lign in the arduino code) ...
thanks a lot for your help