Giter Site home page Giter Site logo

activecooler's Introduction

ActiveCooler

Program that configures MCU's timer registers to sample sensor data and output PWM to an HVAC cooling fan

Hardware

Device: SparkFun Pro Micro 5V/16MHz (Atmega32U4)

Temperature Sensor: DS18B20

Fan: SanAce 92W XF-P05801, DC 24V/1.0A

Voltage Regulator: TRACO THD 12-4812WI, DC 18-75V In, 12V/1000ma Out

Libraries used:

https://github.com/milesburton/Arduino-Temperature-Control-Library

https://github.com/PaulStoffregen/OneWire

Notes

  1. Make sure your Arduino IDE is setup for uploading code to the SparkFun Pro Micro Board:

  2. The code simply uses the linear mapping function map() to map temperatures to motor speeds

    • Motor speeds range from 0-100% duty cycle (0-100)

    • Exposed parameters are defined at the top of the code

      • MOTOR_MIN, MOTOR_MAX

      • TEMP_MIN, TEMP_MAX

  3. Error Catching (In both cases, fan is turned off):

    • When sensor's sense wire is disconnected from MCU

    • When sensor itself is disconnected from ground and power

  4. Exposed a parameter (SAMPLING_PERIOD) for changing sensor update rate (In miliseconds)

Wiring Schematic:

alt text

Perf-Board Assembly:

alt text

activecooler's People

Contributors

bamercury avatar

Watchers

 avatar

Forkers

hixio-mh

activecooler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.