MAX31855 Python Error

165 views
Skip to first unread message

Ryan Timms

unread,
Jul 16, 2015, 1:37:49 PM7/16/15
to web...@googlegroups.com
Hi all,

First post on forum so apologies if I'm breaking any "rules".

I have been playing with the Adafruit MAX31855 whilst trying to make some macros for a HTML/Java webpage. My script itself runs fine when using python 2.7.3, but when I try to config in the LXTerminal, I get an import error "No module named Adafruit_GPIO.SPI", presumably because of WebIOPi trying to run in python 3.

I found this post from a few years back about changing the default python version, but doing this does not solve the problem.

Any help would be greatly appreciated!

Thanks,
Ryan

Toshi Bass

unread,
Jul 17, 2015, 6:00:02 AM7/17/15
to web...@googlegroups.com, ryanti...@googlemail.com
Hi Ryan

Its not really clear where your at with the MAX31855 so excuse me if the following is not relevant, incidentally I don't have a MAX31855 so no idea if this works, but it looks promising.

Webiopi does not have a driver out of the box for the MAX31855 thermocouple amplifier however, Marc St-Cyr did write a driver here: 


You could try that, if you read the whole post it appears that its best to get the sensor working with the adafruit driver first to confirm that it functions correctly
(which you may have done already) see the file on the post Max31855-Test.py then install Marc's driver files for webiopi
 max31855X.py and __init__.py into the WebIOPi-0-7.0/python/webiopi/devices/sensor

Then reinstall webiopi by entering the following command in the ssh console :      sudo ./setup.sh skip-apt

You should then see the sensor in the devices-monitor

Hope that's helpful to you

Toshi
Reply all
Reply to author
Forward
0 new messages