Jump to content
Ultimaker Community of 3D Printing Experts
wongti

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


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

    • How to 3D print with reinforced engineering materials
      Ultimaker is hosting a webinar where we explain how you can achieve and maintain a high print success rate using these new reinforced engineering materials. Learn from Ultimaker's Product Manager of Materials and top chemical engineer Bart van As how you can take your 3D printing to that next level.
      • 0 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!