tuckie / max31855 Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi driver for MAX31855 Cold-Junction Compensated Thermocouple-to-Digital Converter
License: MIT License
Raspberry Pi driver for MAX31855 Cold-Junction Compensated Thermocouple-to-Digital Converter
License: MIT License
I just posted a comment in the thread on the Raspberry Pi forums outlining this (http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&t=18125) but the readme in V2.0 does not specifically state that the pin number you select must be the GPIO labeling.
I'm struggling with getting the test code to work. I'm just using the initial code which is as follows:
from max31855 import MAX31855, MAX31855Error
cs_pin=24
clock_pin=23
data_pin=22
unit="f"
thermocouple1=MAX31855(cs_pin, clock_pin, data_pin, units)
print(thermocouple.get())
thermocouple.cleanup()
When I run this code on my RPi using Idle I get the following error:
NameError: name 'thermocouple' is not defined...
I looked in MAX31855.py for a function or class defined as 'thermocouple' and do not see one. Can anyone tell me what simple thing I am doing wrong here?
Thanks in advance.
After a fresh install of Raspbian and the required dependencies, user 'pi' does not have access to /dev/spidev0.1, even though it is shown in /dev/.
All references of the print command must have parenthesis added to them, as quick2wire seems to have changed to python3.
Hi
I'm trying to install your max31855's module to use two "k thermocouples" on a Raspberry pi 3 under Raspbian 10.0.
The installation seems to be ok...
When I call it in Python 3 :
>>> import max31855
>>>
I don't have any error message.
Here is the python script that I use to check the sensor :
# from max31855 import MAX31855, MAX31855Error
import max31855
cs_pin=24
clock_pin=23
data_pin=22
unit="f"
thermocouple1=MAX31855(cs_pin, clock_pin, data_pin, units)
print(thermocouple.get())
thermocouple.cleanup()
Any time, I have the same message error :
Traceback (most recent call last):
File "Essai_MAX31855_V1.py", line 8, in <module>
thermocouple1=MAX31855(cs_pin, clock_pin, data_pin, units)
NameError: name 'MAX31855' is not defined
Do you have any idea ?
Thank you :-)
To cope with universal clock pins, the clock needs to be initialised low, otherwise the first bit is lost and all bits are offset by one.
Recommend after initialising self.cs HIGH to add:
# Initialise clock low
GPIO.output(self.clock_pin, GPIO.LOW)
Trying to make the max6675 module work on a Raspberry Pi 1. I needed to add a small sleep between init and get.
time.sleep(0.2)
is sufficient. If I do not sleep, I just read 0 or rather the last value successfully read. Until I first added the sleep I read 0, if I remove it now, I read the last value read.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.