Giter Club home page Giter Club logo

max31855's People

Contributors

dlleigh avatar tuckie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

max31855's Issues

Struggling with code implementation...

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.

Permissions to /dev/spidev0.1

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/.

Python3 Support

All references of the print command must have parenthesis added to them, as quick2wire seems to have changed to python3.

Installing max31855 in python 3

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 :-)

Initialise clock

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)

Needs sleep before read

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.