rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Enabling a single zone physically enables multiple #111

Closed Shaker666 closed 5 years ago

Shaker666 commented 6 years ago

Since using version 1.0.7, I've got an issue where if I enabled zone 1, both zone 1 and 2 are electrically enabled. Similar behavior is seen enabling all zones up to 8 (I have only a single sprinkler board); each enabled zone enables a pair of outputs.

I diffed the source and it doesn't look like the issue stems from the sprinkler_pi project, but it might be somewhere in the wringPi library or something, instead. I am using a Raspberry Pi 2 with sprinkler_pi version 1.1.4 on it now. I have the original OSPi board v1.0 (which is quite old).

Ideas?

nhorvath commented 6 years ago

Nothing has been changed with regards to output setting in a very long time. It's possible like you said there's something in wiring pi causing your issue and when you updated and recompiled you also updated wiring pi. That said, I'm using a fairly recent version of wiring pi on a pi 2 and don't have any issues, but I'm also using relay mode, not the OSPi.

Is it always the same pair of zones that go on? I would also double check you don't have anything shorting out. If you have a multimeter it would be a good idea to turn zones on and see if more than 1 pin on the pi changes.

On Sun, Mar 25, 2018 at 12:51 PM, Shaker666 notifications@github.com wrote:

Since using version 1.0.7, I've got an issue where if I enabled zone 1, both zone 1 and 2 are electrically enabled. Similar behavior is seen enabling all zones up to 8 (I have only a single sprinkler board); each enabled zone enables a pair of outputs.

I diffed the source and it doesn't look like the issue stems from the sprinkler_pi project, but it might be somewhere in the wringPi library or something, instead. I am using a Raspberry Pi 2 with sprinkler_pi version 1.1.4 on it now. I have the original OSPi board v1.0 (which is quite old).

Ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/111, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKE3JBeyIOHBSMUWEscXWXTCGEXV2tIks5th8sTgaJpZM4S6Njr .

Shaker666 commented 6 years ago

I checked all the outputs with my meter and the way it works is that enabling output n turns on output n and output n+1. Very consistent.

I replaced all of the wiring due to an aggressive packrat gnawing through some of the insulation and had thought that perhaps the issue was related, but unfortunately it's not. So I ran all new wire and used some Techflex F6 sleeving to protect and route everything nicely up and out of a curious packrat's reach (hopefully).

nhorvath commented 6 years ago

When checking with your meter are you checking the zone outputs or the outputs from the pi to the OSPi?

On Sun, Mar 25, 2018 at 3:55 PM, Shaker666 notifications@github.com wrote:

I checked all the outputs with my meter and the way it works is that enabling output n turns on output n and output n+1. Very consistent.

I replaced all of the wiring due to an aggressive packrat gnawing through some of the insulation and had thought that perhaps the issue was related, but unfortunately it's not. So I ran all new wire and used some Techflex F6 sleeving to protect and route everything nicely up and out of a curious packrat's reach (hopefully).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/111#issuecomment-375998439, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKE3DrOJUCwtkY45wFkGmWoDV8XKaUOks5th_ZKgaJpZM4S6Njr .

Shaker666 commented 6 years ago

Oh, sorry I wasn't specific about that... I'm measuring the zone outputs from the OSPi board. I haven't probed the RPi directly... I'm not entirely sure which pins I would need to probe.

BonAppleTea commented 6 years ago

Hey Guys,

I'm having the same problem. I'm using a 16 channel sainsmart relay.

Edit to add some additional information: I have checked output on the GPIO and relays. I have 10 zones with 10 relays connected to GPIO. Regardless of settings in the GUI the only relay that is always off is number 10 and this is subsequently the only relay showing voltage.

Shaker666 commented 6 years ago

I have to admit that I'm not using the original configuration the OSPi board was setup for. There is a possibility that there is an incompatibility between the newer generation RPis (RPi2 and RPi3) and the original OSPi boards as I'm using an RPi2 on mine. However, I'm not entirely sure since I haven't tried reverting back to an RPi1. I was kind of thinking of just shelling out for a new revision of the OSPi board that is known to work with the RPi2.

Thoughts?

nhorvath commented 6 years ago

Most people here (myself included) just use a relay board. You can get them pretty cheap on amazon, ebay and dirt cheap on aliexpress if you're willing to wait. Then you use direct positive or direct negative mode in sprinklers pi depending on if high or low signals trigger your relay board.

On Sun, Apr 22, 2018 at 7:47 PM, Manu Singh notifications@github.com wrote:

I have to admit that I'm not using the original configuration the OSPi board was setup for. There is a possibility that there is an incompatibility between the newer generation RPis (RPi2 and RPi3) and the original OSPi boards as I'm using an RPi2 on mine. However, I'm not entirely sure since I haven't tried reverting back to an RPi1. I was kind of thinking of just shelling out for a new revision of the OSPi board that is known to work with the RPi2.

Thoughts?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/111#issuecomment-383421680, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKE3IxFSflHMLpVgnWKgZP37yusbWcNks5trRZ3gaJpZM4S6Njr .

Shaker666 commented 6 years ago

It looks like the OSPi v1.0 uses I2C interface for controlling the AC outputs. I'm not a fan. Planning to ditch the OSPi at this point. What a waste of $60-70.

I found an 8-channel relay board from Sainsmart for about $10: https://www.sainsmart.com/products/8-channel-5v-relay-module?nosto=customers-also-bought#shopify-product-reviews

It looks like it's controllable directly from the RPi without any level shifters. Would I simply control each field coil using the GPIO outputs on the RPi?