GithubHelp home page GithubHelp logo

msp430-tempcontrol's Introduction

Closed Loop Temperature Control System for MSP430FR6989

This repo contains the source code and application note by Damon Boorstein, Stephen Glass, and Brendan Nugent. The source code can be found in the sub-folder marked code. The application note can be viewed on Google Docs here.

Dependencies

This code requires two header files: one for the MSP430FR6989

#include <msp430fr6989.h>

and one for the LCD Driver.

#include "LCDDriver.h"

Usage

These source files are intended to be debugged in a Code Composer Studio project. Create a new project in Code Composer Studio with FR6989 as the target configuration. Include the three files in the source code folder. Then, simply build and debug to an MSP430FR6989 device.

Function

Check the app. note for a more detailed explanation on the code.

This code:

  • generates a hardware PWM output on its Timer A output pin
  • performs analog-to-digital conversion of temperature input
  • performs analog-to-digital conversion of potentiometer position (voltage division)
  • calculates a duty cycle for PWM based on desired temperature (potentiometer) and current temperature (temperature sensor)

Testing this Code on a Circuit

More elaboration on this code and the hardware side of this milestone can be found in the app. note.

To test this code on a breadboard, build the following circuit:

Testing circuit

Connect the FR6989 Timer A PWM output to the port labeled "Vs". Connect "P8.6" and "P8.7" to their respective pins on the microcontroller. Supply the voltage rails with +5V, and +14V as shown. Ensure common grounds when testing.

msp430-tempcontrol's People

Contributors

stephenglass 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.