-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No values webinterface #23
Comments
In the config.py check the sample rate. My sensor only works if the rate is
0.2 and above.
Adam.
…On Sun, 20 Jan 2019 at 11:43, rwr88 ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/43532945/51438685-9cfa1380-1caf-11e9-9490-0d432d69b9d2.png>
So, as you can see above, I finally managed to get the webapi going. I
bought a new amplifier (https://www.adafruit.com/product/3328), the
MAX31855, because I've a PT100 sensor I thought it might has something to
do with this.. This has the following outputs:
- GND
- VIN
- 3vs3
- CLK
- SDO
- SDI
- RDY
- CS
I've connected them in the following manner:
- VCC (green wire) to RPI physical pin #17
<#17>
- GND (red wire) to RPI physical pin #25
- SO (yellow wire) to RPI physical pin #21
<#21>
- SCK (blue wire) to RPI physical pin #23
<#23>
- CS (black wire) to RPI physical pin #24
SSR is connected to:
- SSR + (red wire) to RPI physical pin #37
- SSR - (white) to RPI physical pin #39
Also we've measured on the amplifier the values of the PT100 in ohm. This
is functioning properly.
So the question is: why aren't we receiving any values on the webapi? Is
this because the amplifier isn't giving the signal to the RPI?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoViJbNeXbYHGWfEMvIYIlZXkS-45gJtks5vFFZ6gaJpZM4aJmbC>
.
|
Hi Adam, |
Adam, |
Hello.
You press control and W
Thanks,
Adam
… On 20 Jan 2019, at 12:26, rwr88 ***@***.***> wrote:
Adam,
Thanks so much for your help. I feel like a complete noob: but how can I save the change?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#23 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AoViJbKkELP9epa7r2vDddcFgqxl-0AQks5vFGCRgaJpZM4aJmbC>.
|
So, i've tried a bunch of stuff.. but when I exit and do another SSH session, the config is still 0.1.. |
Right so it definitely isn’t saving.
At the bottom the the nano window it should say which buttons to
Press to save. It should give you a prompt as you exit to save or not.
…On Sun, 20 Jan 2019 at 12:41, rwr88 ***@***.***> wrote:
So, i've tried a bunch of stuff.. but when I exit and do another SSH
session, the config is still 0.1..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoViJREVkBX-blYQIsfMp62k2nDdE5jgks5vFGPlgaJpZM4aJmbC>
.
|
Adam, (or Bryce) |
Hello.
The heating element issue may be down to the config pin you have selected
for the heating element. In the config.py file change the he pin to 37 (I
will check when home) and change the heating element refresh rate to 0.2 I
really don't know why it wouldn't be saving. Have you tried using an
alternative text editor or if possible editing the files directly on the PI
or are you running headless?
…On Tue, 22 Jan 2019 at 11:53, rwr88 ***@***.***> wrote:
Adam, (or Bryce)
Do you know how I can make adjustments to the config? Or better: how I can
save those changes?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoViJaDIdbcx-o6wAYrOnt_qvR1PoQeNks5vFvvEgaJpZM4aJmbC>
.
|
Ah, changing it to 37 might do the trick. So, am I running headless.. can you perhaps show me how it looks like if you're changing something I'm the config? |
I can do but you'll have to wait for a few hours until I am home. Have you
managed to find a way to save it control and x doesnt work?
…On Tue, 22 Jan 2019 at 15:36, rwr88 ***@***.***> wrote:
Ah, changing it to 37 might do the trick. So, am I running headless.. can
you perhaps show me how it looks like if you're changing something I'm the
config?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoViJRy3JynB6Io-zC5UZRjPeuKOJnS-ks5vFy_lgaJpZM4aJmbC>
.
|
Yeah, you're right..it was ctrl x.. now I've saved both changes |
Excellent, any luck with it working now?
…On Tue, 22 Jan 2019 at 16:12, rwr88 ***@***.***> wrote:
Yeah, you're right..it was ctrl x.. now I've saved both changes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoViJSGdaBe7astKxxky8qELJi4Sc9eqks5vFzhcgaJpZM4aJmbC>
.
|
No, it did switch off.. but not on the right temperature. And so I did a check: I lowered the goal temperature to even 100F... But it didn't switch at the that temperature... So perhaps the switch was triggered by the overheat safety. So I thought perhaps the pi should reboot, so I unplugged it and did a restart.. but that blew it completely. I can't even connect to it headless right now... |
So, did the whole install again. Conclusion: Once again: it switched off, but not with the right temperature. When I fill in, in Putty, /cd/root/silvia-pi ./sivia-pi.py The values that are returned are: tempf: 32.... The webinterface also shows this.. What you said earlier about the config: Bryce said the following regarding this: "he_pin = 26 in the config.py refers to the BCM pin # used to turn on/off the relay. In my setup I use BCM pin 26 which corresponds to physical pin 37. The ground for my relay is physical pin 39" I've wired the SSR+ to 37, SSR- to 39. 37 is equivalent to BCM pin 26... so that should be correct When I had the problem earlier, when the temperature stated 32F... Bryce said the following: But I just don't know where the fault lies.. |
@adamhratcliffe or @brycesub don't you guys have any clue what the problem is here? Could it be that the soldering of the amplifier of rpi is incorrect? Or have I bought the wrong amplifier? Does it only works with the bryce mentioned in the hardware section? Or have wired it wrong? See the pictures below.. |
Hey @rwr88, don't know if you ever found your solution. I've had problems with the pi 0 and max 31865 The full story: I'll be receiving a MAX31856 any day now, since the 31865 has gone kaput and is intermittently oscillating between -256C and 900C. Will update my code shortly. |
Hi @obiben i didn't found any solution. i even tried switching to the MAX31855, because i thought this might won't work with the PT100 1/3 din i've bought. So, i would like to try again with the 31865 and the class your using to read temps. But how do achieve this? Is it just to replace the following: sudo git clone https://github.com/brycesub/silvia-pi.git /root/silvia-pi With: sudo git clone https://github.com/obiben/silvia-pi.git /root/silvia-pi Because i'm not using a touchscreen display.. |
Well you can start by just trying out the max31865.py class on its own. See if it prints temperatures for you. You can get it from the link above and change the pins to your pins numbers in this section:
run the script using |
Sorry, i'm not a developer of anykind, so I need a bit more info than this. So, I need to:
VCC (green wire) to RPI physical pin #17
Thank you very much for helping me. Really appreciating it! |
Hi @obiben, could you please help me? See above for the questions Thanks in advance! |
Your 6 steps were correct. If you want things to be simpler you could just set yourself up directly on your raspberry pi with a screen, keyboard and mouse until you're ready to put everything in a coffee machine. Running the script in the command line is what I was telling you to do indeed. In a terminal, in the same folder as the file, if you type in This wont make your coffee machine work but is a first step in verifying your sensor works, then you can see if you have to change that or if there's a problem somewhere else. |
hi @obiben
sudo apt-get -y update
CsPin = 24 Like Brycesub, I don't use SDI so I was a bit confused which pin I should use as MOSI. The Max31865 has the following pins: The ones in bold I use.
After this, I received the following error: Could not find a version that satisfies the requirement Adafruit-GPIO==1.0.3 (from -r /root/silvia-p i/requirements.txt (line 1)) (from versions: ) The thing I find odd is, that - if i understand this correctly - it should install the stuff in the folder 'silvia-pi'. But when i'm in the root folder, and do the 'ls' statement, i don't see this folder.. Do you know where it's gone wrong? |
You're trying to install my fork of this repo which is wildly different from the one here. All I advised you to do was to run the one python script to verify your sensor works. The error you are getting is from the install script. The specific command it fails at is the pip install -r requirements.txt where it installs python packages into your python folders. I think the adafruit library needs to be installed via github, and is just in my requirements file because I didn't maintain the installation script, as per the A google search of this error would serve you well. In fact if you want to do this to your coffee machine it's my opinion you need to be willing to google your ass off any time there is a problem. As for the pins, I don't know what to tell you. I'm not a master of this breakout or the code that makes it chooch. Again, be prepared to google the errors you get and fix them on your own. No one knows these things before they learn them ;) There could be a hundred more things to do to make this work and I wont be holding your hand all the way, just wanted to give you the one tip! Good luck! |
So, as you can see above, I finally managed to get the webapi going. I bought a new amplifier (https://www.adafruit.com/product/3328), the MAX31855, because I've a PT100 sensor I thought it might has something to do with this.. This has the following outputs:
I've connected them in the following manner:
SSR is connected to:
Also we've measured on the amplifier the values of the PT100 in ohm. This is functioning properly.
So the question is: why aren't we receiving any values on the webapi? Is this because the amplifier isn't giving the signal to the RPI?
The text was updated successfully, but these errors were encountered: