Vibrations / Shocks sensor with bluetooth

Hello everyone,

I am embarking on a small project: recover the vibrations / shocks on a surface in several places (several arduino modules and shock module connected between them) and display them on a led strip.

Why ? I have to adjust the different modules at the same time, and it must be transportable so I opted for several arduino nano 33 BLE. Don't worry about price !

My question is: does bluetooth make it possible to create this mesh? I mean by that, if I connect to 1 module with my phone or master, can this module program the others in turn, transparently? For example, on a "master" module, I would like to program information (sensitivities, time, etc.) and when I press a button on the slave modules, one by one they retrieve the information to be configured.

In addition, for the shock sensor I do not know where to orient myself, I found these:

Bluetooth units connects in pairs. Try Wifi instead.

Ok so either I use wifi?

Either I connect in bluetooth to a unit, which transmits to the others in wifi?

In this case which arduino card to use?

For example, on a "master" module, I would like to program information (sensitivities, time, etc.) and when I press a button on the slave modules, one by one they retrieve the information to be configured.

Since your bluetooth modules handle Blutooth Low-Energy (BLE), this would allow you to have one master and several slave modules which is (almost?) what you want. However, please note that only the master can communicate with his slaves, and a slave cannot connect to more than one master at a time.

So the master would need to be the one you connect your phone to. BLE is very useful for this kind of things, you could also dissociate the phone from the slave modules. This is also less greedy on battery as the name suggests.

Or you can use Wi-Fi as Railroader suggested. But I cannot help you on this.

it's perfect ! This is exactly what I want!

So yes it's bluetooth bluetooth: Arduino nano 33 BLE

I want one of the modules (master) to send the info to the slaves ... The slaves have nothing to return so I don't care!

That's perfect then.
I did not use Arduino nano 33 but the fundamentals should be the same.

I suggest you start reading this to understand how everything works:

It may be superficial but it is a nice place to start. I am available if you have more questions.

Ok I just read it all (I'm familiar with electronics it was fast)

I understand better, but I have read in several places that the nano 33 ble apparently cannot act as a master, do you know whether or not this is possible?

and for the shock / vibration sensor, I want something that returns a value depending on the shock received, do you have any ideas for modules? I will inquire in the meantime

According to the library designed for this kind of boards, it looks like it is possible to use a nano 33 as a master (a.k.a. Client).
However, it looks like using a phone will not be possible since I am pretty sure phones can only be clients, but it has to be dug deeper, and I do not know if it is possible to connect clients together.

Arduino - ArduinoBLE

In my last project on BLE, I used a ESP32 Feather from Adafruit, which I may recommend since the libraries are well documented and seem to be far more complete than the ArduinoBLE library (though more complex). And I know making a master was possible (I did not do it because my phone was the master, but I encountered the specific files).

I saw that adafruit esp32 was still in development, it is not the most suitable I think?

To be honest, I did not have any problem with it concerning BLE. That is up to you anyway.

Hi, @kealmlj

I am embarking on a small project: recover the vibrations / shocks on a surface in several places (several arduino modules and shock module connected between them) and display them on a led strip.

Where are the sensors going to be?
At the slaves?
If so then the slaves will have to send their data BACK to the master when the master polls them.
Am I right in thinking that?

Can you post a basic block diagram of how you envisage your system.
Block for the sensor.
Blocks for the slaves.
Block for the master.
Block for LED Display.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:
PS. I'm asking this so we can all be on the same page.