Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Dynamic G-Code Modification Based on Sensor Feedback

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    2
    142
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • username19undefined
      username19
      last edited by

      Hi all,

      I'm embarking on an exciting project to create an automated gantry system for palletizing bags in a warehouse. The system uses a CNC kit controlled by a Duet 2 board, a Raspberry Pi for processing, an ultrasonic sensor on the end effector, and a camera to monitor pallet zones. The end effector is a vacuum-based mechanism for picking up bags.

      My challenge lies in dynamically altering the G-code based on real-time sensor feedback to automate the gantry's movements. Here's what I'm aiming to achieve:

      Process camera images with the Raspberry Pi to determine the location of bags and pallets.
      Use ultrasonic sensor data to adjust the Z-axis movement accurately.
      Modify the G-code in real-time based on these inputs for precise positioning and movement of the gantry.
      I would greatly appreciate any advice, resources, or examples of how to dynamically update G-code based on sensor feedback. Specifically, how to interface the Raspberry Pi with the Duet 2 controller for this purpose and any software or scripting recommendations to achieve this level of automation.

      Looking forward to your insights and suggestions.

      Thanks in advance!

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @username19
        last edited by

        @Rackan-Mansour locked this thread as you've posted twice

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined jay_s_uk locked this topic
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA