Conversation
MAX6675 Raspberry Pi driver.
MAX6675 example.
|
After a couple of whiles i got it running on a RPI3ModelBVer1.2: Use following Program: cs_pin = 8 Thanks Draco for your Work! Greetings, Stephan |
|
Hello guys, @node-alpha @Tuckie @abc2006 @dlleigh Look, there is a short script in the link: https://github.com/Tuckie/max31855/pull/4/files Which is the sample in the documentation for max6675: MAX6675 example cs_pin = 24 This snippet of code above doesn't work, at least, for RPi 3 B v1.2 See: There are two ways of adress pins in the Raspberry Pi. GPIO.Board -> references the physical numbering of the pins In the library max6675.py implementation, you need to pass the BCM pins. The code below works well to me at Rapberry Pi 3B (Thanks @abc2006, your tip helped a lot). #!/usr/bin/python cs_pin = 8 thermocouple = MAX6675(cs_pin, clock_pin, data_pin, units) while(running): @node-alpha , to make the life easier, i'd suggest: In this part: Initialize needed GPIO Please, change this name --> GPIO.setmode(self.board) This causes a lot of confusion, because you did in the init: ==> board = GPIO.BCM It's not cool to keep like that. Because you put together two ways to adress pins at RPi. I hope it helps. Thank you very much for your work. Regards, Henrique |
|
Can we measure negative Temperature |
Added MAX6675 support -- Tested on Raspberry Pi (model B).