steve71 / MAX31865

Raspberry Pi Python interface for the MAX31865. The MAX31865 is an easy-to-use resistance-to-digital converter optimized for platinum resistance temperature detectors (RTDs).
MIT License
48 stars 18 forks source link

2 or more max31865 #1

Open Passecoul opened 7 years ago

Passecoul commented 7 years ago

Hi Steve,

Thanks a lot for your work on this subject ;)

First you say we can connect to any grio with your codes. Does the Python code doesn t need to activ spi mode on the raspberry setup? Or we have active spi ? Cause if we try to connect more than one max31865 ie for instance 4 boards do we have to active other gpio than ce0 and ce1? I m don t Know how to change the code to have 4 boards wirking at the sale Time (i Know how to connect), i have a little idea but i m not sure it ll work (i ve no knowedge programming Python codes)

I you Could Help i ll be really great. Thanks again Steve

Manuel83 commented 7 years ago

I have the same question. I like to connect two sensors. Does that mean that I have just to create 2 instances with different csPIN?

Of course I would need 2 max31865 boards.

Example

# GIPO 8
max1 = max31865.max31865(8,9,10,11)
# GIPO 19
max2 = max31865.max31865(19,9,10,11)

max1.readTemp()
max2.readTemp()
kwed5d commented 7 years ago

Manuel83,

Please see the following, I think it might help. https://www.maximintegrated.com/en/app-notes/index.mvp/id/3947