Welcome to Our Community

Some features disabled for guests. Register Today.

Send GCode in realtime to blackbox

Discussion in 'Control Software' started by Krishna Duddumpudi, Jun 21, 2021.

  1. Krishna Duddumpudi

    Builder

    Joined:
    Jun 21, 2021
    Messages:
    2
    Likes Received:
    0
    Hi all,

    Iam considering purchasing a complete ACRO system along with a blackbox controller.

    Is it possible to send G-code over serial to blackbox using open builds Control as the "middle man"?

    The idea is to create a "responsive" pick and place machine for an interactive art project so I would be using something like Unity or Processing to send G-Code or coordinate information.

    Any advice or if you can point me in the direction of a tutorial that would be great!

    Thanks
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,288
    Likes Received:
    1,837
    you dont need a middleman, you only the ability to send strings over serial USB
    read this gnea/grbl for details
     
    Peter Van Der Walt likes this.
  3. Krishna Duddumpudi

    Builder

    Joined:
    Jun 21, 2021
    Messages:
    2
    Likes Received:
    0
    Thank you for the response - this is great!
     
  4. phil_in_a_can

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    6
    Likes Received:
    2
    Hi Krishna,

    Wondering if you had any luck with this? I'm trying to make an XY gantry move in real-time with data from sensors located around a room. Any insight would be appreciated.

    Thanks,
    phil
     
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    The Grbl Interface is nicely documented in the Grbl Wiki. What are using to read the sensors?
     
  6. phil_in_a_can

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    6
    Likes Received:
    2
    I've been using an Arduino Uno Rev 3. Currently I'm running everything from the Uno, I'm just not sure if that is the best solution. I'm thinking about using the Uno just to collect the data and then send grbl to the black box and allow it to control the motion. I've been using some TMC2208 V3.0 as my motor drivers.
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    Yes, so then you'll code a ping pong buffer into one arduino, to send serial commands to the controller running Grbl. See Grbl v1.1 Interface · gnea/grbl Wiki
     
  8. phil_in_a_can

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    6
    Likes Received:
    2
    Excellent! Thanks for pointing me in the right direction.
     
  9. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    PS: Remember to do the wait for the OK so your queues doesn't go out of sync. Its somewhat tricky on an Arduino, but you may be able to find some other Grbl host sketches to extract the feedback parsing and queue management and sending from
     
  10. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,042
    Likes Received:
    4,123
    You do mention "sensors in a room" - so also going to point you to:

    Home Assistant
    which comes with ESPHome — ESPHome built in
    ESPHome running on an ESP32/8266 can read your sensors too, integrate it into hassio (Home Assistant) and esphome can also send/receive Serial data UART Bus

    Depending on your actual use case, a more fully fledges solution like this may ultimately be easier (depending on your Arduino skills) as its super easy to build Automations using Home Assistant
     
  11. phil_in_a_can

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    6
    Likes Received:
    2
    I'm using two VL53l1X "Time of Flight" distance sensors and two IR break beam sensors. The raw data is converted to get distance and speed on x/y axis. The desired out come is to have the carriage move in reaction to people coming in and out of the room and moving through the space.
     
    Giarc and Peter Van Der Walt like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice