Giter Club home page Giter Club logo

max31856's Introduction

This is the GitHub source code repository for the Arduino MAX31856 library and example code for Arduino.

This library offers the following features:
a. Returns both the junction (IC) and thermocouple temperatures
b. Handles negative temperatures
c. Returns thermocouple error codes, like open and voltage too high/low
d. Returns an error if the MAX31856 isn’t communicating (wiring issue?)
e. Automatic initialization of registers after losing power

In this folder are:
1. README - this file
2. MAX31856 folder - the Arduino library and example code for driving the MAX31856

Look for the MAX31856 breakout boards on www.whizoo.com and eBay (madeatrade)
http://stores.ebay.com/madeatrade

Looking to build yourself a reflow oven?  It isn't that difficult to do!  Take a look at the build guide here:
http://www.whizoo.com

Library Implementation Details
==============================
DRDY and FAULT lines are not used in this driver. DRDY is useful for low-power mode so samples are only taken when needed; this driver assumes power isn't an issue.  The FAULT line can be used to generate an interrupt in the host processor when a fault occurs.  This library reads the fault register every time a reading is taken, and will return a fault error if there is one.  The MAX31856 has sophisticated usage scenarios involving FAULT.  For example, low and high temperature limits can be set, and the FAULT line triggers when these temperatures are breached. This is beyond the scope of this sample library.  The assumption is that most applications will be polling for temperature readings - but it is good to know these features are supported by the hardware.

The MAX31856 differs from earlier thermocouple IC's in that it has registers that must be configured before readings can be taken.  This makes it very flexible and powerful, but one concern is power loss to the IC.  The IC should be as close to the cold junction as possible, which might mean there is a cable connecting the breakout board to the host processor.  If this cable is disconnected and reconnected (MAX31856 loses power) then the registers must be reinitialized.  This library detects this condition and will automatically reconfigure the registers.  This simplifies the software running on the host.

A lot of configuration options appear in the .H file.  Of particular note is the line frequency filtering, which defaults to 60Hz (USA and others).  If your line voltage is 50Hz you should set CR0_NOISE_FILTER_50HZ.

This library handles the full range of temperatures, including negative temperatures.


Change History:
25 June 2015        Initial Version
31 July 2015        Fixed spelling and formatting problems


To install the MAX31856 library, please refer to:
http://arduino.cc/en/Guide/Libraries

Peter Easton 2015
Whizoo.com

max31856's People

Watchers

 avatar  avatar

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.