Zanduino / MAX31855

Read thermocouple temperature using a MAX31855 converter
GNU General Public License v3.0
4 stars 7 forks source link

Add capability for multiple MAX31855 #10

Closed SV-Zanshin closed 3 years ago

SV-Zanshin commented 3 years ago

Describe what the feature request is and if it solves an issue or adds functionality Question asked by @billpurta Currently the library supports only one MAX31855 device although several may be present

Describe the solution you'd like A such support or describe how it can be done with the current library

Describe alternatives you've considered N/A

Additional context N/A

SV-Zanshin commented 3 years ago

I only have one MAX31855 here, but if you modify the "Demo.ino" program to have

MAX31855_Class MAX31855;  ///< Create an instance of MAX31855
MAX31855_Class SecondDevice; ///< Create another instance of MAX31855

In the definitions, and when you call "SecondDevice.begin(SPI_CHIP_SELECT_2)" you need to specify another CS-Pin. I think that should work without any issues at all.

billpurta commented 3 years ago

That worked! Thank you.

Bill

On Tue, Dec 29, 2020 at 3:40 AM Arnd notifications@github.com wrote:

I only have one MAX31855 here, but if you modify the "Demo.ino" program to have

MAX31855_Class MAX31855; ///< Create an instance of MAX31855 MAX31855_Class SecondDevice; ///< Create another instance of MAX31855

In the definitions, and when you call "Second.Device.begin(SPI_CHIP_SELECT_2)" you need to specify another CS-Pin. I think that should work without any issues at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Zanduino/MAX31855/issues/10#issuecomment-752046091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5UWNLVZHGCXZ2DR7P2IDDSXG523ANCNFSM4VM3BCGQ .

SV-Zanshin commented 3 years ago

Excellent - have fun with the devices (and the library, of course).

billpurta commented 3 years ago

Hi Zanduino,

I forwarded on your github site to Kris Winer, owner of Tleracorp, who makes the Grasshopper and other cool Mo+LoRa sensor and tracking boards to share with his community in case others have similar issues. Their website is https://www.tindie.com/products/tleracorp/grasshopper-loralorawan-development-board/ .

I have one last element to get to work on the Grasshopper, a single Neopixel. Seems Adafruit and other libraries all fail to produce any signal output on any I/O lines I try. I did reach out to Kris yesterday on this but it is New Years holiday time as I didn't see anything for this in his forums.

If you know of anyone who has a basic NeoPixel library that might work on this MCU and is willing to let me give it a try I would greatly appreciate it. If any work, I will pass it along to you and the Tlera community as well (love sharing good community work with others).

Thank you and Happy New Year!

Bill

On Tue, Dec 29, 2020 at 2:52 PM bill purta billpurta@gmail.com wrote:

That worked! Thank you.

Bill

On Tue, Dec 29, 2020 at 3:40 AM Arnd notifications@github.com wrote:

I only have one MAX31855 here, but if you modify the "Demo.ino" program to have

MAX31855_Class MAX31855; ///< Create an instance of MAX31855 MAX31855_Class SecondDevice; ///< Create another instance of MAX31855

In the definitions, and when you call "Second.Device.begin(SPI_CHIP_SELECT_2)" you need to specify another CS-Pin. I think that should work without any issues at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Zanduino/MAX31855/issues/10#issuecomment-752046091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5UWNLVZHGCXZ2DR7P2IDDSXG523ANCNFSM4VM3BCGQ .

SV-Zanshin commented 3 years ago

Hello Bill,

While I’d love to assist, I’ve never worked with the NeoPixel library before so I’m afraid I won’t be of any use for that. Right now I’m working on a good Arduino library for the MAX3244 (pulse and blood oxygen sensor)

Have a great New Year!

-Arnd.

From: billpurta notifications@github.com Sent: 31 December 2020 20:47 To: Zanduino/MAX31855 MAX31855@noreply.github.com Cc: Arnd zanshin_github@sv-zanshin.com; State change state_change@noreply.github.com Subject: Re: [Zanduino/MAX31855] Add capability for multiple MAX31855 (#10)

Hi Zanduino,

I forwarded on your github site to Kris Winer, owner of Tleracorp, who makes the Grasshopper and other cool Mo+LoRa sensor and tracking boards to share with his community in case others have similar issues. Their website is https://www.tindie.com/products/tleracorp/grasshopper-loralorawan-development-board/ .

I have one last element to get to work on the Grasshopper, a single Neopixel. Seems Adafruit and other libraries all fail to produce any signal output on any I/O lines I try. I did reach out to Kris yesterday on this but it is New Years holiday time as I didn't see anything for this in his forums.

If you know of anyone who has a basic NeoPixel library that might work on this MCU and is willing to let me give it a try I would greatly appreciate it. If any work, I will pass it along to you and the Tlera community as well (love sharing good community work with others).

Thank you and Happy New Year!

Bill

On Tue, Dec 29, 2020 at 2:52 PM bill purta <billpurta@gmail.com mailto:billpurta@gmail.com > wrote:

That worked! Thank you.

Bill

On Tue, Dec 29, 2020 at 3:40 AM Arnd <notifications@github.com mailto:notifications@github.com > wrote:

I only have one MAX31855 here, but if you modify the "Demo.ino" program to have

MAX31855_Class MAX31855; ///< Create an instance of MAX31855 MAX31855_Class SecondDevice; ///< Create another instance of MAX31855

In the definitions, and when you call "Second.Device.begin(SPI_CHIP_SELECT_2)" you need to specify another CS-Pin. I think that should work without any issues at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Zanduino/MAX31855/issues/10#issuecomment-752046091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5UWNLVZHGCXZ2DR7P2IDDSXG523ANCNFSM4VM3BCGQ .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Zanduino/MAX31855/issues/10#issuecomment-753047937 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFT5DRAWLPB7NZGC26UE6RDSXTIM7ANCNFSM4VM3BCGQ . https://github.com/notifications/beacon/AFT5DRDUZCHYWY3DU53KZULSXTIM7A5CNFSM4VM3BCG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFTRJTAI.gif

billpurta commented 3 years ago

Hi Zanduino,

I understand and appreciate your help with the MAX31855 very much.

Be healthy and safe.

Bill

On Thu, Dec 31, 2020 at 11:54 AM Arnd notifications@github.com wrote:

Hello Bill,

While I’d love to assist, I’ve never worked with the NeoPixel library before so I’m afraid I won’t be of any use for that. Right now I’m working on a good Arduino library for the MAX3244 (pulse and blood oxygen sensor)

Have a great New Year!

-Arnd.

From: billpurta notifications@github.com Sent: 31 December 2020 20:47 To: Zanduino/MAX31855 MAX31855@noreply.github.com Cc: Arnd zanshin_github@sv-zanshin.com; State change < state_change@noreply.github.com> Subject: Re: [Zanduino/MAX31855] Add capability for multiple MAX31855 (#10)

Hi Zanduino,

I forwarded on your github site to Kris Winer, owner of Tleracorp, who makes the Grasshopper and other cool Mo+LoRa sensor and tracking boards to share with his community in case others have similar issues. Their website is

https://www.tindie.com/products/tleracorp/grasshopper-loralorawan-development-board/ .

I have one last element to get to work on the Grasshopper, a single Neopixel. Seems Adafruit and other libraries all fail to produce any signal output on any I/O lines I try. I did reach out to Kris yesterday on this but it is New Years holiday time as I didn't see anything for this in his forums.

If you know of anyone who has a basic NeoPixel library that might work on this MCU and is willing to let me give it a try I would greatly appreciate it. If any work, I will pass it along to you and the Tlera community as well (love sharing good community work with others).

Thank you and Happy New Year!

Bill

On Tue, Dec 29, 2020 at 2:52 PM bill purta <billpurta@gmail.com <mailto: billpurta@gmail.com> > wrote:

That worked! Thank you.

Bill

On Tue, Dec 29, 2020 at 3:40 AM Arnd <notifications@github.com <mailto: notifications@github.com> > wrote:

I only have one MAX31855 here, but if you modify the "Demo.ino" program to have

MAX31855_Class MAX31855; ///< Create an instance of MAX31855 MAX31855_Class SecondDevice; ///< Create another instance of MAX31855

In the definitions, and when you call "Second.Device.begin(SPI_CHIP_SELECT_2)" you need to specify another CS-Pin. I think that should work without any issues at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/Zanduino/MAX31855/issues/10#issuecomment-752046091 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AH5UWNLVZHGCXZ2DR7P2IDDSXG523ANCNFSM4VM3BCGQ

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/Zanduino/MAX31855/issues/10#issuecomment-753047937> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AFT5DRAWLPB7NZGC26UE6RDSXTIM7ANCNFSM4VM3BCGQ> . < https://github.com/notifications/beacon/AFT5DRDUZCHYWY3DU53KZULSXTIM7A5CNFSM4VM3BCG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFTRJTAI.gif>

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Zanduino/MAX31855/issues/10#issuecomment-753057842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5UWNPPB6NT3BTE6343CBDSXTJHDANCNFSM4VM3BCGQ .

SimonRafferty commented 9 months ago

I'm not sure the above works.

MAX31855_Class MAX31855_1; ///< Create an instance of MAX31855
MAX31855_Class MAX31855_2;  ///< Create an instance of MAX31855
MAX31855_Class MAX31855_3;  ///< Create an instance of MAX31855`
  if(MAX31855_1.begin(SPI_CHIP_SELECT_1)) {
    Serial.println("Thermocouple 1 Connected");
  } else {
    Serial.println("Thermocouple 1 FAILED");
  }

  if(MAX31855_2.begin(SPI_CHIP_SELECT_2)) {
    Serial.println("Thermocouple 2 Connected");
  } else {
    Serial.println("Thermocouple 2 FAILED");
  }

  if(MAX31855_3.begin(SPI_CHIP_SELECT_3)) {
    Serial.println("Thermocouple 3 Connected");
  } else {
    Serial.println("Thermocouple 3 FAILED");
  }

Returns:

Thermocouple 1 Connected Thermocouple 2 FAILED Thermocouple 3 FAILED

Whichever I try to connect to first will succeed - but the second & third always fail.