Nano 33 BLE to Nano 33 BLE

Good morning, I am very new to Arduino and I am about to embark on my first project using a pair of Nano 33 BLE devices and just seeing if any body has tried anything similar or has links to any libraries that would be beneficial to completing the project.

In a nutshell, this is the premise of the project.......

Nano 33 (1) will have an independent 3v3 supply, a 5v regulator and a incremental rotary encoder, using channels A and B to provide directional input. From what I have been reading, this will be my peripheral.

Nano 33 (2) will have a fixed 3v3 supply from my RADAR controller, this needs to be able to receive the encoder data from Nano 33 (1) and send out Logic High signals relevant to Channel A and Channel B to my RADAR controller. These Logic High signals are used to tell the RADAR when to transmit. This will be my central.

I am assuming that this is all possible, as most things are once you have worked them out. I am in two minds about whether to use FIFO registers or if interupts are the best way to deal with things. This needs to be able to be as near instantaneous as I can get it.

No code to post yet, as still reading up on everything, but hoping to get some written tomorrow, even if its just the Nano 33 (1) side.

Many thanks and I look forward to seeing what the subject matter experts have to say.

Welcome to the forum.

This was not a design goal of BLE. BLE was designed for low power and small amounts of data.

I recommend you start with the examples from the ArduinoBLE library and work your way from there.

Thanks for the reply Klaus, this is a low power, low data application, all I am doing is no different than taking a continuous encoder position on one device and sending it to a second device to display on a monitor programme (which multiple BLE devices are more than capable of doing), its just that instead of writing the position I want to use two output pins to toggle logic high / logic low on my controller instead.

How fast is the encoder rotating and the positional output changing?

You can set up the peripheral to notify the central on a change of a characteristic value and have the central subscribe to the notification.
I think it will take some experimentation to determine the time taken for a notify/subscription process to get changing data to a central.

"As near instantaneous as I can get it" is not a reasonable specification.
How fast do you need outputs to change in response to encoder movements?

Send String Data using BLE (Nano 33) - Can't Add Descriptors to BLECharacteristic with Nano 33 BLE - #5 by bsingh0926

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