Martha MigliacioAlex Wong
Published © GPL3+

Using the Pmod TC1 with Arduino Uno

Application notes for Pmod TC1 and Arduino Uno. In this app, the temperature value is displayed on the serial monitor.

EasyProtip1 hour561
Using the Pmod TC1 with Arduino Uno

Things used in this project

Hardware components

Pmod TC1
Digilent Pmod TC1
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Adafruit 8-channel Bi-directional Logic Level Converter - TXB0108
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Pmod TC1 and Arduino Uno Code

Arduino
Using this code will display the temperature on the serial monitor.
/************************************************************************
*
* Test of Pmod TC1
*
*************************************************************************
* Description: Pmod_TC1
* The temperature value is displayed on the serial monitor.
*
* Material
* 1. Arduino Uno
* 2. Pmod TC1 (dowload library
* https://github.com/adafruit/Adafruit-MAX31855-library)
* 3. Adafruit module TXB0108
*
* Wiring
* Module<----------> TXB0108 <-----------> Arduino
* J1 broche 6 3.3 V
* J1 broche 5 GND
* J1 broche 4 13
* J1 broche 3 12
* J1 broche 1 10
************************************************************************/

// Affectation of pins
#define CS 10
#define MISO 12
#define SCLK 13

// Call of libraries
#include <SPI.h>
#include "Adafruit_MAX31855.h"

Adafruit_MAX31855 Temp(SCLK, CS, MISO); // Creation of the object

void setup()
{
 Serial.begin(9600); // initialization of serial communication
 delay(500);
}

void loop()
{
 Serial.print("Temperature en C = ");
 Serial.println(Temp.readCelsius()); // Acquisition of temperature in degrees  Celsius
 Serial.print("Temperature en F = ");
 Serial.println(Temp.readFarenheit()); // Temperature acquisition in degree Fahrenheit
 delay(1000);
}

Credits

Martha Migliacio

Martha Migliacio

5 projects • 3 followers
Alex Wong

Alex Wong

5 projects • 9 followers
I work in Digilent and like creating projects
Thanks to Lextronics.

Comments