0

Max31855 with NodeMCU 1.0 ESP-12E
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Tue May 11, 2021 12:47 am

I am attempting to use a K-type thermocouple that I have with the Max31855 however the example code has issues compiling. My concern is that it is the library that isn't compatible, and designing a library is beyond my skills. If you have a different recommendation on how to measure up to 2100F and connect to a ESP-12E, I'm all ears. Thanks

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Re: Max31855 with NodeMCU 1.0 ESP-12E

by adafruit_support_mike on Tue May 11, 2021 10:45 pm

I'm afraid we don't have any code for the basic NodeMCU Espressif devices.

The MAX31855 is a fairly simple SPI device though. If you can find any other SPI code that works for your device, you should be able to port our library over without much trouble:

https://github.com/adafruit/Adafruit-MAX31855-library

adafruit_support_mike
 
Posts: 62799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Wed May 12, 2021 8:15 pm

How would one port a library over to do that? I'm using this particular NodeMcu device due to size and it has an integrated ESP8266.
Any other way I can read very high temperatures on this device?

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Re: Max31855 with NodeMCU 1.0 ESP-12E

by adafruit_support_mike on Wed May 12, 2021 11:28 pm

The library only has a couple hundred lines of code, maybe half of which are comments.

If you can get your board to speak SPI at all, the rest of the code will tell you what messages to send and how to process the results.

adafruit_support_mike
 
Posts: 62799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Thu May 13, 2021 12:09 am

What is SPI? I noticed it in the MAX31885 code as SPI.h which made me think it was a library. Is adafruit support able to help me specifically with this? If not, I'm afraid I will have to return everything I bought.

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Re: Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Thu May 13, 2021 3:37 pm

So I am trying to learn a little about SPI, it would appear that I am to set the MAX31885 as the Master, and the NodeMCU as the slave?

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Re: Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Thu May 13, 2021 4:00 pm

It appears that the "Adafruit_max31855.h" is what needs to be modified, is that correct? If so, what needs to be changed? I would guess the "Arduino.h" on Line 25 would need to be changed to NodeMCU.h equivalent?

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Re: Max31855 with NodeMCU 1.0 ESP-12E

by ab2121212 on Thu May 13, 2021 4:02 pm

@Ladyada are you able to chime in?

ab2121212
 
Posts: 6
Joined: Tue May 11, 2021 12:43 am

Please be positive and constructive with your questions and comments.