Page 1 of 1

Custom G-code digital pin control

Posted: Thu Oct 23, 2014 1:34 pm
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

Re: Custom G-code digital pin control

Posted: Thu Oct 23, 2014 3:26 pm
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?

Re: Custom G-code digital pin control

Posted: Thu Oct 23, 2014 4:38 pm
by Skupitup
Yeah, its all arduino based, running repetier 0.91. Thanks for the info, Il take a look

Re: Custom G-code digital pin control

Posted: Thu Oct 23, 2014 8:31 pm
by Polygonhell
I believe M42 does it in repetier firmware

The format is M42 P<pin number> S<value>

Re: Custom G-code digital pin control

Posted: Fri Oct 24, 2014 1:51 pm
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