Hi,
There are multiple ways that Franklin can control a fan:
1. In a Temp control, select a valid pin for the Fan. This fan will be enabled
when the temperature exceeds the "Fan Temp" setting. Its power is controlled
from the UI. This fan cannot be controlled from G-Code (except by bringing the
temperature into the range where the fan will trigger, but that doesn't count).
2. Add a GPIO and set it to the fan pin, then check the "Fan" box in the Gpio
settings for that row. This will make it respond to the G-Code that is supposed
to control the fan (M106/M107). The power can be controlled using the S
parameter for M106 (values must be in the range 0.0-1.0)
3. Add a GPIO and set it to the fan pin, but don't check the "Fan" box. This
will create a general purpose Gpio pin which can be controlled using G-Code.
Specifically, the M42 command. It requires 2 parameters: P selects the Gpio
number (NOT the pin number; the first Gpio you define is 0, regardless of which
pin it controls). S sets the power; 0 for off, 1 for on, anything in between
for a pwm signal. Note that pins which have hardware pwm have a much more
stable output waveform (in case of a fan that means they turn more smoothly,
which you can hear), but other pins do work as well.
4. Technically, you could also enable the "Spindle" box and otherwise do the
same as with option 2. In that case, the spindle commands (M3 or M4 (there is
no difference in Franklin) to start, M5 to stop). This is obviously a hack,
because the fan is not a spindle, so it may confuse people. I don't recommend
doing this.
5. You may be able to do even dirtier hacks connecting the fan to a motor pin.
Don't do that. ;-)
I think that is an exhaustive list. I recommend you use option 2 for the
primary fan you want to control from G-Code, and option 3 for any other fans
you want to control from G-Code. A fan which prevents damage to the machine
should be using option 1 (or be always on).
Does that answer your question?
Thanks,
Bas
> --
> You received this message because you are subscribed to the Google Groups "MOST Delta Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
most-delta-user...@mtu.edu.
> To view this discussion on the web visit
https://groups.google.com/a/mtu.edu/d/msgid/most-delta-users-l/fa037a8c-b12f-4783-ad8c-7aa994a11245n%40mtu.edu.