arduino-libraries / ArduinoBLE

ArduinoBLE library for Arduino
GNU Lesser General Public License v2.1
310 stars 205 forks source link

Aduino uno R4 wifi connecting via bluetooth to arduino NANO 33 BLE reading/checking characteristic causes huge delays whilst trying to drive stepper motors #358

Open CG528 opened 6 months ago

CG528 commented 6 months ago

Aduino uno R4 wifi connecting via bluetooth to arduino NANO 33 BLE reading/checking characteristic causes huge delays whilst trying to drive stepper motors.

I have to read the characteristic in case it has been updated but in doing so it causes huge stuttering in the driving of my stepper motors, is there a solution to this or a work around?

Below are the two codes.

https://pastebin.com/Tmr2qTWg

https://pastebin.com/ZQg3HxkB