
So, you have already come a long way and collected your own 3d printer. It is time to fight for print quality. In this article we will talk about what model cooling is needed for when printing, what you need to pay attention to when designing a cooling system and how to properly connect a fan using a
SevenSwitch chip and
Teacup firmware.
When printing, the plastic is heated to the melting temperature and is extruded through the nozzle of the print head. In this case, the head literally smoothes the top layer of the model. If the dimensions of this layer are small compared to the size of the head itself, then the head is always above the printed surface. This leads to the fact that already laid plastic begins to melt and spoil the model. Cooling is used to solve this problem.

The easiest way to organize cooling is software. It requires absolutely no changes to the printer. The idea is to temporarily move the print head to the side when printing the layers with small dimensions to let the model cool. In Skeinforge there are
settings that allow to achieve this behavior. In other slicers (for example, Slic3r), there are no such settings yet, so you can simply add a small additional object to print which the printer will have to move the head a sufficient distance.
Unfortunately, software cooling is often not enough, so most advanced 3d printers have a special fan that cools the model being printed. To improve print quality without modifying the printer, you can put a table fan and direct it towards the printed model. The disadvantage of this option is the need to manually turn the fan on and off and the inability to precisely control the power and direction of the blower. A more sophisticated and sophisticated option is to connect the fan to the electronics to control the blowing force and make the duct to form the desired flow direction. Let's talk about it in more detail.
')
There are several pitfalls that you should be aware of when choosing or independently designing an air duct:
- First, if the fan blows straight onto the heater of the printhead, this can lead to the fact that the heater will no longer cope with the heating of the plastic and at the most crucial moment the temperature may not be high enough for printing. Therefore, when choosing a finished or manufacturing your own air duct, try to avoid strong direct blowing of the heater and nozzle. Warming the heater with fiberglass or silicone foam and Kapton tape can help solve this problem.
- Secondly, if the fan blows strongly on the heated table of the 3d printer, then this may lead to the model sticking and / or tearing off during the printing process. To solve this problem, turn off the cooling when printing the first few layers of the model, as well as wisely choose a fan. More in this case does not mean better. If the model has a small base, you can improve its adhesion by generating edges (the skirt module in skeinforge and the brim parameter in slic3r).
- Thirdly, aerodynamics is a complicated thing. Sometimes, visually ideal and logical duct models do not work in practice. Therefore, before installing the printer, test that the air flow is as planned. Ideally, it should blow the plastic well out of the nozzle, but not touch the nozzle itself.

You can install the fan directly on the print carriage or on the printer frame and supply air to the carriage through a flexible hose. Both implementations work equally well, but the second allows you to use a larger fan and make the carriage easier, which reduces the number of vibrations.
I have
Greg's carriage mounted
with mounts for two fans . I could not find a suitable model of the air duct on the thingiverse and decided to make it
myself . For a start, I made simple air ducts that redirect the flow down. This design does not pretend to be ideal, it simply allowed me not to reinvent the fan mount to my carriage. I think
this option should work well.

Now let's talk about connecting the fan. Perhaps in your electronics fan control is already provided. Then you can simply insert the connector in the right place. If not, you will need to use the SevenSwitch chip, whose manufacturing process and the list of necessary details are described in detail in the
RepRap Wiki . If you do not know how to make printed circuit boards, then you can simply solder everything with the help of mounted installation. The principle of connecting the board is extremely simple. 12V power is taken from the standard connector of the computer power supply, the input receives a mass and a logic signal from the microcontroller, the output goes to the fan. If the leg of the microcontroller supports PWM (for the uninitiated, what is PWM can be read
here ), then the fan speed can be controlled. This may be useful. On my printer, I keep the fan turned on at low speeds starting from the second layer, increasing the blowing speed when printing small layers.

Then we will discuss the connection of SevenSwitch to Gen7 electronics with ATMEGA1264P-PU microcontroller on Teacup firmware. Therefore, you can not read if you have another combination of firmware and electronics.
On Gen7 electronics, it is convenient to use the ISP connector, which is marked CONN6 on
the board's circuit. It's simple: mass to mass, control foot on the output DIO6 or DIO7. When using the ATMEGA1264P microcontroller on both of these legs, you can use PWM. I chose DIO7.
Customize the firmware. To do this, we prescribe another "heater" in config.h. You need to add bold lines:
// name port pwm
DEFINE_HEATER (extruder, DIO4, 1)
DEFINE_HEATER (bed, DIO3, 1)
DEFINE_HEATER (fan, DIO7, 1)
#define HEATER_EXTRUDER HEATER_extruder
#define HEATER_BED HEATER_bed
#define HEATER_FAN HEATER_fan
Teacup uses a common h file, for ATMEGA644P and ATMEGA1264P. The 644th mega on the legs of DIO6 and DIO7 does not have PWM, while 1264 has it. Therefore, we prescribe the addresses of the PWM registers for ATMEGA1264P. In the file arduino_644.h change:
#define DIO6_PWM NULL
#define DIO7_PWM NULL
on:
#define DIO6_PWM & OCR3AL
#define DIO7_PWM & OCR3BL
To test the fan, connect to the printer using
Pronterface or another program that allows you to manually send commands to the printer and send successively:
M106 S255 // turn on the fan at full power
M106 S128 // reduce speed
M106 S0 // turn off the fan
If you mix up the polarity when the fan is connected, it will not spin. Therefore, if the fan does not work, try changing the power wires in some places.
It is worth mentioning that there is already a
great article about connecting a fan to Gen7
with pictures in French , but it doesn’t say about changes in firmware for PWM, so I duplicated part of the description here.
Well, the most difficult thing left behind is to turn on the fan control in your favorite model slicer and you're done. For a detailed description of how to do this, I will send you to the documentation on your slicer.