Program in MATLAB and connect via Bluetooth #206
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
You are welcome to write your own library to communicate with the robot, as the protocol is fully documented here. Alternatively, you are welcome to use the iRobot downloadable Python SDK, which is available here. Please note also that the Create 3 robot uses Bluetooth Low Energy, and not Bluetooth Classic, so it doesn't need to "pair" like a Bluetooth headset or similar device. I don't know anything about programming BLE devices in MATLAB, but it looks possible. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I am now able to find and connect to the robot from MATLAB. I am following this documentation you gave me and so far I am able to read data from the robot (when an event takes place) using the read command in MATLAB. I am having issues sending a command (to request battery level or send a motor speed). I wonder, does the robot need to be set up in a particular mode to receive message (despite it can send)? Do I need to write the crc-8 bit in the message (or can disable it)? Thanks. PS: I sent a request for the downloadable Python SDK, looking forward to it. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
You are welcome to write your own library to communicate with the robot, as the protocol is fully documented here. Alternatively, you are welcome to use the iRobot downloadable Python SDK, which is available here.
Please note also that the Create 3 robot uses Bluetooth Low Energy, and not Bluetooth Classic, so it doesn't need to "pair" like a Bluetooth headset or similar device.
I don't know anything about programming BLE devices in MATLAB, but it looks possible.