silvia-pi icon indicating copy to clipboard operation
silvia-pi copied to clipboard

Light doesn't turn on

Open rwr88 opened this issue 7 years ago • 40 comments

First of all: thank you for this great project!

But i've encountered the following problem: when I turn on the machine, the light doesn't turn on. Only when I turn on the steamfunction, the light turns on. Seems to be affecting only the light, because the boiler is warming up. Is this a problem, or is this just the way it should work?

And as a result of this, is the only way to check if the temperature is okay, is to acces the dashboard?

Speaking of the dashbaord, is the way to acces the webinterface just go to the ip-address of your raspberry pi?

Thanks in advance for helping out

rwr88 avatar Sep 24 '18 08:09 rwr88

There should be an indicator light on the relay, does that turn on and off?

brycesub avatar Sep 24 '18 14:09 brycesub

No, that doesn't turn on

rwr88 avatar Sep 26 '18 18:09 rwr88

I've got the MAX 6675 module in stead of the MAX3185. Does this causes the problem? I can upload pictures if you like?

rwr88 avatar Sep 27 '18 16:09 rwr88

Can you please indicate where we go wrong? You help is much appreciated

rwr88 avatar Oct 07 '18 18:10 rwr88

I still hope you have some time to leave a comment, because this whole project is no on hold cause of the relay that doesn't turn on.

Thanks in advance

rwr88 avatar Oct 27 '18 08:10 rwr88

Can you post a picture showing the relay and the pi clearly showing which pins it's connected to? I can then share some shell commands you can try to see if we can get the lights to turn on and off.

brycesub avatar Oct 28 '18 02:10 brycesub

img_20181028_181103 img_20181028_181103 img_20181028_181052 img_20181028_180954 img_20181028_180944 img_20181028_180924 img_20181028_180916 img_20181028_180859

rwr88 avatar Oct 29 '18 18:10 rwr88

I've connected the pins, hopefully done correctly, exactly as you prescribed it. Perhaps good to mention that I've used a pt100 sensor, and, already stated above, the max6675 amplifier. If you need more info, I can provide that.

rwr88 avatar Oct 29 '18 18:10 rwr88

I’m also having a similar problem. My temp sensor is working but when the temp hits the threshold it doesn’t trigger the relay. At first I thought the relay may be under powered 5v but I tried with a logic converter and still nothing.

I have measured the pins (26) using a multimeter and the voltage never drops to switch off the relay even when the temperature is reached. Any ideas. Thanks very much.

adamhratcliffe avatar Oct 30 '18 09:10 adamhratcliffe

Can you try wiring it as seen here: https://i.imgur.com/TPqJUAM.jpg This image shows the pins that the relay should be connected to, be sure you have the orientation of board correct: https://imgur.com/a/ttWtOmE

This album shows more pictures of how I have mine wired: https://imgur.com/a/3WLVt

brycesub avatar Oct 30 '18 18:10 brycesub

image

Hello, I have wired mine like this. I can get the web server to read my temps on :8080 but the pi doesn't switch off the relay. I have tried using different pins from 26 but still nothing. Will it matter that I am using a MAX6675 Breakout board?

adamhratcliffe avatar Oct 30 '18 19:10 adamhratcliffe

Adam, move the purple wire next to the white wire and give that a try.

brycesub avatar Oct 30 '18 20:10 brycesub

Will I have to change the config to pin 37? Thanks.

On Tue, 30 Oct 2018 at 20:24, Bryce Thomas [email protected] wrote:

Adam, move the purple wire next to the white wire and give that a try.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/brycesub/silvia-pi/issues/21#issuecomment-434456033, or mute the thread https://github.com/notifications/unsubscribe-auth/AoViJfwsJlMPglzBinuY-ZPIA9tpoTz5ks5uqLWDgaJpZM4W2NgM .

adamhratcliffe avatar Oct 30 '18 20:10 adamhratcliffe

Adam, set he_pin = 26 in config.py. There are 2 different numbering schemes for the pinout.

brycesub avatar Oct 31 '18 01:10 brycesub

img_20181031_074745 Hi, As you can see in the enclosed picture, I've followed your circuit diagram, which only denotes gpio numbers and did a conversion so I knew to which numbers on the pi zero w boards it corresponded. Also added outputs, so I'm curious which wires I've connected wrong

rwr88 avatar Oct 31 '18 06:10 rwr88

I can't really see where your white and orange wire go into.. 17? 21?

And I guess that my 11 and 37 are wrong then. But which should be connected to whom?

rwr88 avatar Oct 31 '18 06:10 rwr88

@rwr88 There are 2 different pinout numbering schemes. There's the physical pinout (which you have numbered in your picture), and there's the BCM pinout (how pins are connected to the SoC). I think this is where some of the confusion is coming. The RPis all have the same physical and BCM pinouts, so there shouldn't be a difference between the Pi2 Pi3, and PiZ's.

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.

For your breakout board to Pi: Gnd to Pi Physical Pin 20 (ground) VCC to Pi Physical Pin 17 (3v) SO to Pi Physical Pin 21 (MISO) SCK to Pi Physical Pin 23 (SCLK) CS to Pi Physical Pin 24 (CS0)

brycesub avatar Oct 31 '18 17:10 brycesub

Still didn't manage to pull it off. I think I've connected it all properly. But the relay still doesn't turn on. Thing is, when installing the RPI, the following command did nothing. It just went to the next line. Can this be the reason? Also I can't even access the pi the webserver. The only thing you have to do is go to the IP-adress of your RPI with :8080 behind it, right?

sudo bash -c 'echo "dtparam=spi=on" >> /boot/

rwr88 avatar Nov 05 '18 17:11 rwr88

The full command is: sudo bash -c 'echo "dtparam=spi=on" >> /boot/config.txt' Run that, reboot and then try the setup again: sudo /root/silvia-pi/setup.sh

Then try hitting the raspberry pi http://:8080 from a browser on the same network.

brycesub avatar Nov 05 '18 20:11 brycesub

Yeah! I think I've successfully did the commands via putty. The relay is on.

But still not getting any response for the http://:8080. I'm on the same WiFi network. I've checked the IP-adress with sudo ifconfig... What am I doing wrong?

rwr88 avatar Nov 05 '18 20:11 rwr88

Try this: cd /root/silvia-pi ./silvia-pi.py See if that runs (or doesn't), and then if you could upload the .log files in /root/silvia-pi i can take a look. If you can't hit the web interface it's likely the program isn't running at all which would explain why you aren't seeing the relay turn on at all.

brycesub avatar Nov 05 '18 22:11 brycesub

I will try this tonight. The relay is now continually on. What should be normal behaviour? On and off?

I've encountered another problem - although, perhaps these are connected - that the water that is flowing out of the group head is way to hot. It's steam.

Is this perhaps the same as issue #18? If I could access the webapi I can check if the basic is always 20F off. I haven't used any thermal paste, so maybe this is causes this temperature.

rwr88 avatar Nov 06 '18 06:11 rwr88

Tried this: cd /root/silvia-pi But only got: you're not authorized..

So I thought maybe I didn't clone the code not to the root folder, but when I tried that it stated that the directory already existed and isn't empty .

rwr88 avatar Nov 06 '18 19:11 rwr88

run: sudo su - Then run the commands I pasted previously.

brycesub avatar Nov 06 '18 21:11 brycesub

image

rwr88 avatar Nov 07 '18 18:11 rwr88

It worked with sudo su -, but I don't know how i should upload logfiles. I tried cp -R ./silvia-pi.py /root/silvia-pi, but didn't succeed. Is the screenshot enough, or do I need to upload the logging?

rwr88 avatar Nov 07 '18 18:11 rwr88

"avgtemp=32" i.e. 0C Looks like your thermocouple isn't connected correctly or the thermocouple brekout board isn't connected to the pi properly.

brycesub avatar Nov 07 '18 20:11 brycesub

So, checked everything again, and I think I've made a mistake connecting the RPI. But it seems that the temperature won't reach the desired temperature. The highest temperature i've seen was 156F. In the printscreen you can even see it has declined to 149F. I haven't put any thermal compound on on the boiler/thermocouple, so I will try that tomorrow.

rwr88 avatar Nov 11 '18 19:11 rwr88

image

rwr88 avatar Nov 11 '18 19:11 rwr88

img_20181111_193536 img_20181106_063428

rwr88 avatar Nov 11 '18 19:11 rwr88