Create 3 with Arduino/ESP32 #315
-
Hi everyone,
Any answers/advice/corrections to our understanding will be greatly appreciated! Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I also am curious about this. In the past I worked with the Create2 and used Arduinos to connect via the DIN connection, but from what I can see, this is a bit different now. I did see in the docs reference to a "beta" feature for serial communication over USB. In simple terms I just want to be able to use the same methods to communicate with a Create3 that was possible with the Create2, or something analogous to this. This is the only reference I can find to talking to external devices via Serial |
Beta Was this translation helpful? Give feedback.
-
Right now, there is no simple UART serial-style control interface for the Create 3 robot. Your options are to use the BLE protocol using the SDK, which is likely the most micro-friendly option, or to use ROS 2 over either USB-over-Ethernet or Wi-Fi. The serial forwarder is just that -- allowing a device connected to the Create 3 robot's USB port to be forwarded over a socket on the Create 3 robot. The use case here would be to interact with a device that only uses UART serial (Arduino, LEGO Spike Prime Hub, etc) from a remote machine. This lesson in our learning library can take you through using that, if interested. Certainly, we're open to a feature request for other interfaces emulated over the USB-C port -- feel free to put them in as issues. I'm trying to chew through the use case that you @vivianweli are going for -- unfortunately, you're right. If you need the serial forwarding for the ESP32, you can't also have the BLE radio, because that single USB port is multiplexed either to the BLE radio or to the USB-C port. One thought is that you could plug a USB hub into the robot's USB-C port. You could then plug a BLE radio dongle and your ESP32 as downstream devices into the hub, but the choice of dongle would be critical to ensure success. You might try the Laird BT851 if you go this route. |
Beta Was this translation helpful? Give feedback.
Right now, there is no simple UART serial-style control interface for the Create 3 robot. Your options are to use the BLE protocol using the SDK, which is likely the most micro-friendly option, or to use ROS 2 over either USB-over-Ethernet or Wi-Fi.
The serial forwarder is just that -- allowing a device connected to the Create 3 robot's USB port to be forwarded over a socket on the Create 3 robot. The use case here would be to interact with a device that only uses UART serial (Arduino, LEGO Spike Prime Hub, etc) from a remote machine. This lesson in our learning library can take you through using that, if interested.
Certainly, we're open to a feature request for other interfaces emulated…