Connecting two arduino nano 33 ble sense without serial monitor

Hello.

The current project is trying to communicate using two arduino nano 33 ble senses. I would like to set one as peripheral and the other as central to operate. At this time, I want to connect only the peripheral to the external sensor and the external power source, and I want to connect the central to the laptop. But when I set it up like that, the two Arduino are not communicating with each other.
In my opinion, both peripheral and central need to connect to the laptop and turn on the serial monitor to communicate. Is there a way to connect the two Arduino without using the serial monitor after connecting the peripheral Arduino to an external power source?

Thank you.

Why should they communicate with each other, and by what method?

For direct communication between two Arduinos, most people use radio or a wired serial connection. Code for that communication must be loaded onto each Arduino.

I am trying to create a portable device and want to connect them wirelessly (via Bluetooth) by utilizing the existing functionalities onboard. I have already uploaded the code for each of them, using "Central->LEDControl" for one device and "Peripheral->BatteryMonitor" for the other.

The pair of library example sketches you want to use are
LedControl for the Central and LED for the peripheral.

To remove the dependency on the Serial monitor, remove this line from both sketches.

while (!Serial);

Thank you so much!! your solution is worked.

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