Sending GCode commands with an Arduino via USB

Hi guys,
I’m trying to control my DexArm by sending G Code commands from my Arduino to the arm.
The DexArm has only an USB C input, so I need to send the codes via the USB port of the Arduino or an adapter.

Can you guys help me how to do this?
I’m quite a beginner with Arduino and coding so please ne gentle :wink:

Thank you very much in advance!

Hi @Mmatze and welcome to the forum

I don’t know the DexArm, but the arduino USB port is not a USB host (as most other external devices aren’t)
To connect two USB slaves, you’d need a host to establish connection and later to pass through the data.

I’m not sure what’s the most convenient device for that sole purpose. Maybe @cbenson has some suggestions?

If the DexArm has a serial_to_usb converter onboard, you might be able to make a serial connection by bypassing the chip (eg. FTDI, CH340) . Maybe soldering is required.

//edit Forget what I wrote. There s a Rotrics DIY kit

1 Like

Hi o_lampe,
thank you for your warm welcome and the fast answer :grinning:

I know about the DIY kit, but this is to control modules attached to the arm. I want so control the arm including the attached module :wink:

So, perhaps it would be a solution to use the Arduino for the sensoric part and trigger at certain points a Raspberry Pi with OctoPi installed to send the codes?

I have no hands on experience with it, but on the DIY adapterkit I saw pins labeled Rx and TX. My best guess is, your arduino can talk to the arm through them. (no host required)

1 Like