Sorry, I can't find the board you're refering to, could you include a link?awootton wrote:its the Quick2Wire board that I assembled from a kit - which is why I have been a bit suspicious that I might have a dry solder joint
So... where's the MAX31855?awootton wrote:I got it from here:-
http://www.skpang.co.uk/catalog/quick2w ... -1170.html
and the company website:-
http://quick2wire.com/products/quick2wi ... board-kit/
thanks for your input, Andrew
Code: Select all
cs_pin = 24
clock_pin = 23
data_pin = 22
units = "f"
thermocouple = MAX31855(cs_pin, clock_pin, data_pin, units)
So sorry for the confusion on this! I'll update the readme to clarify things.JCanada wrote:What I didn't realize, is that the designated pins (24, 23, and 22) are NOT the pin number on the PI itself, but rather the GPIO pin number!
Code: Select all
from max31855 import MAX31855, MAX31855Error
cs_pin = 24
clock_pin = 23
data_pin = 22
units = "f"
board = GPIO.BOARD
thermocouple = MAX31855(cs_pin, clock_pin, data_pin, units, board)
print(thermocouple.get())
thermocouple.cleanup()
Code: Select all
tc: 68.45 and rj: 71.2625
tc: Error: No Connection and rj: 72.8375
Code: Select all
Thermocouple short to ground
Thermocouple short to VCCThankfully, with v2.0, I've gone away from any hardware SPI. Everything is done with software bit-banging with the GPIO library. (no 'sudo modprobe spi_bcm2708' needed) If you can get an LED blinking with the GPIO library you should be able to get this working as well.MikesPi wrote:I came across this some hours back and thought it was heaven sent! (except.......!)
I had been struggling with using code in the Adafruit library and whilst I have got my MAX31855 functioning and displaying temperature with their sample program it was far from ideal because it is Python2 based and everything I have is Python3. Finding this driver looks brilliant and I have tried to set up and run the sample program here on my Pi2. I am having problems though with the step "sudo modprobe spi_bcm2708" which returns " ERROR: could not insert 'spi_bcm2708': No such device".
I have seen entries on the forum regarding recent changes introduced with the Pi2 involving the different handling of spi, I2c etc which I assume do apply in this instance. So I have done "sudo apt-get update" "sudo apt-get upgrade" and have added dtparam=spi=on to the config.txt as seems recommended but all to no avail, I am still getting this error message.
Any suggestions or pointers? Many thanks.