Custom G-code digital pin control

User-Generated tips and tricks for the Rostock Max, Orion, H1.1, or H1 Printers
Post Reply
Skupitup
Plasticator
Posts: 7
Joined: Sun Mar 30, 2014 9:33 pm

Custom G-code digital pin control

Post by Skupitup »

Hey all,

Does anyone know of a method that I could use to control an arbitrary digital pin on my azteeg x3 pro through a g-code function?

I have been doing a lot of experimenting with my kraken quad extruder and multi extruder printing. One thing that I have noticed with multi extrusion is that the hot ends take significantly more time to cool down to a temperature where oozing is not an issue then they do to heat up. With this in mind, I want to have a fan specifically placed and with air routed specifically to cool the heater blocks down durring an extruder change. The idea is that I would have a g-code reference to that fan so that I could control it though the slicers extruder change g-code. Does anyone know of a method that I could use to control an arbitrary digital pin in this fashion? I would like to keep this separate from my layer cooling fan (although I don't even have one currently) as I may want this feature in the future.

Thanks

Mike
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: Custom G-code digital pin control

Post by teoman »

Check out the recent i2c thread where we achieved just that on the rambo.

Read my last post. So depending on the aztek boards processor you may implement it directly or you need to do what Eric and Capt starfish said.

Is it arduino based? Do you have spare pins on the aztek?
When on mobile I am brief and may be perceived as an arsl.
Skupitup
Plasticator
Posts: 7
Joined: Sun Mar 30, 2014 9:33 pm

Re: Custom G-code digital pin control

Post by Skupitup »

Yeah, its all arduino based, running repetier 0.91. Thanks for the info, Il take a look
Polygonhell
ULTIMATE 3D JEDI
Posts: 2417
Joined: Mon Mar 26, 2012 1:44 pm
Location: Redmond WA

Re: Custom G-code digital pin control

Post by Polygonhell »

I believe M42 does it in repetier firmware

The format is M42 P<pin number> S<value>
Skupitup
Plasticator
Posts: 7
Joined: Sun Mar 30, 2014 9:33 pm

Re: Custom G-code digital pin control

Post by Skupitup »

Polygon, Thank you so much, this is exactly what I was looking for, cant believe i didnt know about this!

Teoman, I will defiantly look into what you are doing once I start playing around with heating my build chamber, but for now, M42 works perfectly for what I need
Post Reply

Return to “General Tips 'N Tricks”