Lucky Resistor
Menu
  • Home
  • Learn
    • Learn C++
    • Product Photography for Electronics
      • Required Equipment and Software
    • Soldering for Show
  • Projects
  • Libraries
  • Applications
  • Shop
  • About
    • About Me
    • Contact
    • Stay Informed
  •  
Menu

Quick 4h Build – PID Fan Controller

Posted on 2020-12-05 by Lucky Resistor

I added a fan and temperature controller to my printer enclosure with this quick 4h build. You may need to adjust things a little bit, but I am sure you can build one for yourself in less than a day.

  • Used Material
  • Step 1: Start Printing the Case
  • Step 2: Wire the Components
  • Step 3: Setup the Firmware
  • Step 4: Assemble Everything
  • Conclusion
  • More Posts

Used Material

  • Adafruit Feather M0 Proto
  • Adafruit Monochrome 1.3″ 128×64 OLED Graphic Display
  • DHT22 Temperature and Humidity Sensor
  • 5V Fan with PWM control (I used Noctua NF-A12x25 5V)
  • Cheap N-Channel Mosfet (e.g. 2N7000)
  • One 1kOhm Resistor for the voltage converter
  • One 10kOhm Resistor for the DHT22
  • 9×M2.5 Screws 10-16mm
  • Wires, Solderiron, etc.

Step 1: Start Printing the Case

Warm up your 3D Printer and start printing the case.

Download STL Files + Fusion360 Design

If you use exactly the components from above, you just download the STL files and print them. For both case parts, the flat side to the printer bed. In case you like to use different parts, use the Fusion360 design and adjust the sockets to your needs.

Step 2: Wire the Components

While the printer is running, solder all wires as shown. Use the prototyping area on the Feather board to set up the MOSFET and resistors.

  • Connecting the MOSFET:
    • The blue wire goes to the base pin.
    • The purple wire goes to the source pin.
    • The black wire goes to the drain pin.
  • Connecting the fan:
    • The yellow wires go to 5V USB power and to the power input.
    • The purple wire goes to the PWM input of the fan.
    • The black wire connects the ground of the fan.

Step 3: Setup the Firmware

Install the latest version of the Arduino Environment on your computer and set up the Adafruit libraries as described on their website. Install the Adafruit Libraries DHT22 and Adafruit_SSD1306.

Download Firmware

Adjust the set temperature cControlTargetTemperature in the firmware, and minimum and maximum fan speed as you like.

Compile and upload the firmware and check if everything works as expected.

Step 4: Assemble Everything

Use the M2.5 screws to fasten all components in the case.

Attach the fan, done!

Conclusion

This was a quick build and this guide is meant as an inspiration to start an own project. If you need a fan controller, grab some components you may already have, print your own case and you will have a nice device which is doing its job in no time. 🎉

If you have any questions, missed information, or simply want to provide feedback, feel free to comment below or contact me on Twitter. 😄

More Posts

The Importance of Wall Profiles in 3D Printing

The Importance of Wall Profiles in 3D Printing

In this post, I write about wall profiles in 3D printing, and I will explain why they are essential to creating stable parts with minimal filament use. Also, I will show common mistakes that result ...
Read More
The 3D Printed Modular Lantern

The 3D Printed Modular Lantern

I designed a very modular 19th-century-style lantern. You can print it in its simplest form as a simple candlelight to put on a table or a shelf. By printing additional elements, you create a wonderful ...
Read More
Stronger 3D Printed Parts with Vertical Perimeter Linking

Stronger 3D Printed Parts with Vertical Perimeter Linking

One issue with fused filament fabrication is the weakness introduced into the parts at the layer boundaries. I had this simple idea of how especially straight sections of 3D prints could be improved on regular ...
Read More
Update to the Storage Boxes System

Update to the Storage Boxes System

Last week I sent all subscribers a small update to my storage boxes system. There are new split boxes for the tall boxes (LR2052-300C-S) and a new extensive PDF catalogue with a great overview, but ...
Read More
Three Ways to Integrate LED Light Into the Modular Lantern

Three Ways to Integrate LED Light Into the Modular Lantern

After creating the modular lantern system, I experimented with different cheap ways to integrate LED lights into it and turn it into a decorative lamp. In this post, I describe the three ways I found ...
Read More
Large Update to the Circle Pattern Generator

Large Update to the Circle Pattern Generator

Today I published a significant update to the circle pattern generator. Version 1.4.1 of the application is available for macOS and Windows for download. This new version adds various shapes, rotations, colours and a generator ...
Read More

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay Updated

Join me on Mastodon!

Top Posts & Pages

  • How and Why to use Namespaces
  • Storage Boxes System for 3D Print
  • Use Enum with More Class!
  • Circle Pattern Generator
  • Real Time Counter and Integer Overflow
  • Circle Pattern Generator
  • Logic Gates Puzzles
  • C++ Templates for Embedded Code
  • C++ Templates for Embedded Code (Part 2)
  • Logic Gates Puzzle 101

Latest Posts

  • The Importance of Wall Profiles in 3D Printing2023-02-12
  • The Hinges and its Secrets for Perfect PETG Print2023-02-07
  • Better Bridging with Slicer Guides2023-02-04
  • Stronger 3D Printed Parts with Vertical Perimeter Linking2023-02-02
  • Logic Gates Puzzle 1012023-02-02
  • Candlelight Emulation – Complexity with Layering2023-02-01
  • Three Ways to Integrate LED Light Into the Modular Lantern2023-01-29
  • The 3D Printed Modular Lantern2023-01-17

Categories

  • 3D Printing
  • Build
  • Common
  • Fail
  • Fun
  • Learn
  • Projects
  • Puzzle
  • Recommendations
  • Request for Comments
  • Review
  • Software
Copyright (c)2022 by Lucky Resistor. All rights reserved.
 

Loading Comments...