Sending gcode commands to the duet
Shaqour last edited by
I have duet3d and i wish to send gcode commands to the duet while its connected through the serial port.
I need to send commands using matlab. From my knowladge, i can use it to send data over the serial port. However, i am not sure if the duet can directly accept the gcode commands from matlab when its connected through the usb.
gtj0 last edited by
Yes it can.
Danal last edited by Danal
Connect Matlab's TX wire to Duet 3 6HC io0.in. No specific configuration is required (just don't assign io0 to any other use). If I recall 115200 baud, 8,N,1. If that doesn't' work, try a couple of other typical 'fast' baud rates.
3.3V TTL SERIAL
If those words don't already mean something to you, ask here...
A Former User last edited by
I believe the default configuration for the uart on IO0 is 57k6 and cheksums enabled.
M575 P1 S0to disable cheksums if needed.
shenouda13 last edited by
I am new to the duet. I have connected a duet3D Mini 5+ to a raspberry pi 4 with a usb cable. I am trying to send gcode commands to the duet through the serial package in python. I have a stepper motor connected to the duet. So i am trying to send a command to rotate it. when i run the python script in the image below it just stops at line 6 (ser.write) and it doesn't execute the subsequent lines.
Am I missing something?
I would really appreciate your help on how to do it.
jay_s_uk last edited by
@marco13 you've already started your own topic. please don't spam others (especially old ones)