Step by Step port of SDK to Arduino for adtps (losing freeRTOS on the way)

Why arduino? SF has done a lot of complicated work figuring out the pwm and servo settings for Arduino so that with the SDK BLE communication examples gave me what I needed for a robot. So far, I have phone <==> Nano. It’s surprisingly easy to move from SDK to Arduino if you don’t use freeRTOS. Github has the steps…

https://github.com/kerryeven/PortSDKtoArduino

Kerry, this is some exciting news! Getting bi-directional ble data in the Arduino environment is very nice work. What sort of data rate do you think you can achieve in the chip to phone direction?

Going to try this in the next few days.

Regards,

Kevin

I’m just sending single digits to control motors and servos, however, it is instant. For some reason the immediate alert service in example8 was often delayed by seconds or not received. This is working reliably and instantly. I made a little change in that I’m now sending any message out to BLE_example_funcs.cpp, filling an extern string to the .ino file so it works a lot more like a typical Arduino expected by iot geeks. The loop just keeps track of the old variable state and calls a function when it changes. Works great so far…