Jump to content

Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands


Recommended Posts

Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

Dear Ultimaker,

Currently we are thinking of the possibility to add in commands inside the gcode so that we can sending some serial commands to our external device, a voltage tunable USB pneumatic pump, so that it can pumping some liquid to the ultimaker heated bed. May we find out how can we utilize the USB port to achieve our purpose? Is there any firmware we can use?

Ten It

  • Link to post
    Share on other sites

    Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

    Well you could make lines that echo info on the gcode. Or maybe it could be easier to control the led gcode (I think is M42?? Can't remember now) to use more or less led pwm and use that to control your external device?

    Dunno, it depends on how you actually will read what happens on the printer. Check the full gcode table googling Marlin Ultimaker 2 and read all the gcode available. That could be a nice start

  • Link to post
    Share on other sites

    Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

    Well you could make lines that echo info on the gcode. Or maybe it could be easier to control the led gcode (I think is M42?? Can't remember now) to use more or less led pwm and use that to control your external device?

    Dunno, it depends on how you actually will read what happens on the printer. Check the full gcode table googling Marlin Ultimaker 2 and read all the gcode available. That could be a nice start

     

    Hi Neotko,

    Thanks for your reply. do you mean that something like

    M42 Px  Sy?

    do you know the pin id for the USB port? do you have any clue of keywords which i should use to find the pin id for the USB port in ultimaker 2?

    I am new to 3D printing and sorry that if my question is too naive to be posted here.

    Ten It

  • Link to post
    Share on other sites

    Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

    M42 without pointing to a PIN just changes LED PWM.

    M42 S255 turn it on and M42 S0 turn it off.

    I suppose you could do calls to pins directly, but that's beyond what I know.

    The list of pins is on the Marlin firmware, check the file pins.h

    https://github.com/Ultimaker/UM2.1-Firmware/tree/UM2.1_JarJarExtended

  • Link to post
    Share on other sites

    Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

    M42 without pointing to a PIN just changes LED PWM.

    M42 S255 turn it on and M42 S0 turn it off.

    I suppose you could do calls to pins directly, but that's beyond what I know.

    The list of pins is on the Marlin firmware, check the file pins.h

    https://github.com/Ultimaker/UM2.1-Firmware/tree/UM2.1_JarJarExtended

     

    Thanks, Neotko, will try to read and find the things we need. Thank you.

  • Link to post
    Share on other sites

    Posted · Searching for the possibility to use the USB port in Ultimaker 2 Extended + to output serial commands

    Hi,

    I would like to find out the correct command to trigger a digital port (PC7 in the schematic),. Can anybody advise if the following is correct:

    M42 PC7 S255    (Turn ON)

    M42 PC7 S0        (Turn OFF)

    I should get 5V, Is this correct?  Thanks

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
        • 18 replies
    ×
    ×
    • Create New...