Max31856 module with 1 pin to Arduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
viet4777
 
Posts: 2
Joined: Fri Mar 24, 2017 2:38 am

Max31856 module with 1 pin to Arduino

Post by viet4777 »

I read infomation from this link https://learn.adafruit.com/adafruit-max ... g-and-test

Library Reference
You can start out by creating a MAX31856 object with either software SPI (where all four pins can be any I/O) using

Code: Select all

// Use software SPI: CS, DI, DO, CLK
Adafruit_MAX31856 max = Adafruit_MAX31856(10, 11, 12, 13);
Or you can use hardware SPI. With hardware SPI you must use the hardware SPI pins for your Arduino - and each arduino type has different pins! Check the SPI reference to see what pins to use.
In this case, you can use any CS pin, but the other three pins are fixed

Code: Select all

// use hardware SPI, just pass in the CS pin
Adafruit_MAX31856 max = Adafruit_MAX31856(10);
How I can connect MAX31856 (Adafruit MAX31856 Universal Thermocouple Amplifier) to Arduino with 1 pin only as in the code above, in my case (Arduino Pro Mini), pin 10.

I cannot get any information from MAX31856 module.

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Max31856 module with 1 pin to Arduino

Post by Franklin97355 »

How I can connect MAX31856 (Adafruit MAX31856 Universal Thermocouple Amplifier) to Arduino with 1 pin only
You can't. You can connect with software spi as in the first code fragment or use the hardware spi on pins 11, 12, and 13.

User avatar
viet4777
 
Posts: 2
Joined: Fri Mar 24, 2017 2:38 am

Re: Max31856 module with 1 pin to Arduino

Post by viet4777 »

Thank you very much.

I read some information bout I2C and SPI and Now I understand it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”