Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. shenouda13
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 19
    • Best 1
    • Controversial 0
    • Groups 0

    shenouda13

    @shenouda13

    1
    Reputation
    9
    Profile views
    19
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shenouda13 Unfollow Follow

    Best posts made by shenouda13

    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @jay_s_uk thank you for the response, I would prefer use only the usb port for communication

      posted in General Discussion
      shenouda13undefined
      shenouda13

    Latest posts made by shenouda13

    • RE: send gcode command from tinker-board via SPI without DSF

      @chrishamm I have tried to run the command gpioget gpiochip4 28 and tried also with gpiochip0
      and it gave me this error: gpioget: error reading GPIO values: No such file or directory

      any suggestion?

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: send gcode command from tinker-board via SPI without DSF

      @chrishamm thank you for your reply. Yes I realized installing DSF is the easiest way.
      However I have few questions regarding the connection between the SBC and duet:
      are they 5 wire connection in total? is the connection below right?
      81457a48-f200-4c87-8432-c779a82d6266-image.png

      Also how to identify the GpioChipDevice and TransferReadyPin? I couldn't get any info from gpioinfo and gpioget

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • send gcode command from tinker-board via SPI without DSF

      Is It possible to send gcode command from a tinker board to a Duet board via SPI without installing the DSF on the Debian OS?

      this is the code I am using with Python-periphery library but nothing is happening.

      from periphery import SPI
      spi = SPI("/dev/spidev1.0", 0, 1000000)
      data_out = b'G1 Y180 F5000\n'
      data_in = spi.transfer(data_out)
      spi.close()

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @Falcounet I am calling macros to rotate motors and control sensors.
      the code is something like this:

      def send_command_duet(command):
      with serial.Serial('/dev/ttyACM0') as ser:
      ser.setRTS(True)
      ser.write(b'\n')
      ser.write(command)
      eof = False
      while not eof:
      line = ser.readline()
      if line == b'ok\n':
      eof = True
      print(line)

      while True:
      Capture image
      classify image
      send_command_duet(command) #perform action
      receive signal from duet to go to next iteration

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @Falcounet I am performing some image classification in a loop on the RPi and based on that the duet will perform some actions. But sometimes the mechanism controlled by the duet gets jammed and the python code keeps running. So for each time the Rpi sends a command I would like the duet to be able to send back a signal/command in order for RPi to perform the next image classification.

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @Falcounet Is it possible to communicate back from the Duet to the Raspberry Pi such as if a condition is met stop the python code?
      I would really appreciate your help again

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: run a gcode file on duet3d 5mini+ from rpi python

      @jay_s_uk I believe this is a different question

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • run a gcode file on duet3d 5mini+ from rpi python

      Hi guys,

      I am new to the duet, I have connected a duet3D Mini 5+ to a raspberry pi 4 through usb cable. I am trying to send a command to the duet in python to run a gcode file (macro) on duet3d 5mini+. Any suggestion on how to do that? thanks

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @Falcounet I was able to get the motor to rotate with your code:

      import serial
      with serial.Serial('/dev/ttyACM0') as ser:
      ser.setRTS(True)
      ser.write(b'\n')
      ser.write(bG0 Y30 F50000\n')
      eof = False
      while not eof:
      line = ser.readline()
      if line == b'ok\n':
      eof = True
      print(line)

      thank you very much!!!!!!!!

      posted in General Discussion
      shenouda13undefined
      shenouda13
    • RE: Sending GCode commands to duet3D Mini 5+ using python

      @Falcounet it gives me a wrong wi fi address ----> b'WiFi IP address 255.255.255.255\n' thou..

      Also, right now if I run :

      import serial
      ser = serial.Serial("/dev/ttyACM0", 115200)
      time.sleep(1)
      print('read')
      ser.write(b"G0 Y30 F50000\n")
      print('write')
      time.sleep(2)
      ser.close()

      the code it doesn't get stuck anymore but still cannot get the motor to rotate 😕

      also what does this line mean?

      b'Messages queued 244, send timeouts 242, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 15\n'

      posted in General Discussion
      shenouda13undefined
      shenouda13