Closed atljam closed 7 years ago
A screenshot of your schedule would be helpful.
On Mon, Jun 6, 2016 at 10:14 AM, atljam notifications@github.com wrote:
after installing Sprinklers_Pi on Rasbian Jessie 2016-05-27, on Raspberry Pi 3, using relay Dir Neg setup. I have 8 zones and a master valve. I schedule a simple test of all 8 zones and it repeats the first 4 zones. If I setup zones 1-4 it repeats those zones. If I setup zones 5-8 it repeats those zones. I disabled zones 5-8 and it still repeats zones 1-4 sometimes twice or 3 times. I completed erased all the files and reinstalled the program to no avail. I realize this project is not being maintained but if anyone has an idea please let me know. Works fine on quick schedule with no repeats.
Dan
— 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/62, or mute the thread https://github.com/notifications/unsubscribe/AAKE3NdIYuwtS9qXAUCuj7PDEOHDwXJMks5qJCtGgaJpZM4Iu8Pd .
That looks fine to me... can i get one of the logs page with grouping set to none?
On Mon, Jun 6, 2016 at 11:01 AM, atljam notifications@github.com wrote:
[image: screen shot 2016-06-06 at 10 59 59 am] https://cloud.githubusercontent.com/assets/14863215/15826549/f1bdda3c-2bd5-11e6-96f7-ca52f7ff4dde.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-223985836, or mute the thread https://github.com/notifications/unsubscribe/AAKE3DA0K7-uy8uswX88xJ4CGaSoYo91ks5qJDZDgaJpZM4Iu8Pd .
i was experimenting this morning just running 2 minute schedules it was sch to run at 8:40 but you can see it ran again at 8:48 then at 8:56 so it would cycle through zones 1-4 3 times before stopping
This is really strange... not anything I've seen before. Also strange that the runtime is different for the subsequent runs. Try enabling the Time 2, 3, 4 and giving them a time then disabling them.
On Mon, Jun 6, 2016 at 11:39 AM, atljam notifications@github.com wrote:
i was experimenting this morning just running 2 minute schedules it was sch to run at 8:40 but you can see it ran again at 8:48 then at 8:56 so it would cycle through zones 1-4 3 times before stopping
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-223997827, or mute the thread https://github.com/notifications/unsubscribe/AAKE3Bza6DAmvDIkiLEecJkSNM-FxztAks5qJD8-gaJpZM4Iu8Pd .
ok update, the first 4 zones have MV/Pump on and the next 4 dont, so i experimented and put all 8 zones to pump on and it then went through 1-7 but not 8 and started the cycle again. i'm including a screenshot of the log. i can manually turn on 8. Maybe i need to setup two schedules back to back zones 1-4 then 5-8 but still i dont understand the repeat cycle it keeps doing. and why it never goes to zone 8,
how about my gpio pinnout on the pi 3 i used the pi 2 Model B info to set it up: MV/pump physical pin 11, z1= 12 , z2=13, z3 =15, z4=16, z5=18, z6=22, z7=7, z8=3
I see something really suspicious. The log file is out of order. it goes from 9:00 with zone 7 then there's some logs from 8:17. Do you have ntpdate installed to update the time on the pi? Is it possible you have 2 instances of sprinklers_pi running? Try ps aux | grep sprinkler
For the Pinout make sure your zones match the wiringpi pin numbers from this page: http://projects.drogon.net/raspberry-pi/wiringpi/pins/
On Fri, Jun 10, 2016 at 9:16 AM, atljam notifications@github.com wrote:
ok update, the first 4 zones have MV/Pump on and the next 4 dont, so i experimented and put all 8 zones to pump on and it then went through 1-7 but not 8 and started the cycle again. i'm including a screenshot of the log. i can manually turn on 8. Maybe i need to setup two schedules back to back zones 1-4 then 5-8 but still i dont understand the repeat cycle it keeps doing. and why it never goes to zone 8, how about my gpio pinnout on the pi 3 i used the pi 2 Model B info to set it up: MV/pump physical pin 11, z1= 12 , z2=13, z3 =15, z4=16, z5=18, z6=22, z7=7, z8=3 [image: screen shot 2016-06-10 at 9 05 44 am] https://cloud.githubusercontent.com/assets/14863215/15965326/2ee2e1a6-2eeb-11e6-8ee9-ae8bf19f0846.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225179066, or mute the thread https://github.com/notifications/unsubscribe/AAKE3GBMb5PhTwbkPnr14EDvRbJ_Wpvfks5qKWO2gaJpZM4Iu8Pd .
the page you referenced does not show GPIO 8 location for my board which is Pi3 Model B all the rest of my pinout is exactly correct on the zones 0-7 all work ok but it is the zone 8 that seems to be the problem even though i can manually turn on/off zone 8 valve with no problem using physical pin 3 as Zone 8
only one instance of sprinklers_pi is running pi@raspberrypi:~ $ ps aux | grep sprinkler root 658 0.1 0.2 4528 2132 ? S 09:24 0:02 /usr/local/sbin/sprinklers_pi -L/var/log/sprinklers_pi pi 1099 0.0 0.2 4280 2000 pts/0 S+ 09:47 0:00 grep --color=auto sprinkler
Oh I misread that you are using a Pi 3. I haven't tested any of this with a Pi 3. I thought the pinout of the first 40 pins was identical though so it should be phsical pin 3 (the pin next to pin 1 lengthwise).
On Fri, Jun 10, 2016 at 9:50 AM, atljam notifications@github.com wrote:
the page you referenced does not show GPIO 8 location for my board which is Pi3 Model B all the rest of my pinout is exactly correct on the zones 0-7 all work ok but it is the zone 8 that seems to be the problem even though i can manually turn on/off zone 8 valve with no problem using physical pin 3 as Zone 8
only one instance of sprinklers_pi is running pi@raspberrypi:~ $ ps aux | grep sprinkler root 658 0.1 0.2 4528 2132 ? S 09:24 0:02 /usr/local/sbin/sprinklers_pi -L/var/log/sprinklers_pi pi 1099 0.0 0.2 4280 2000 pts/0 S+ 09:47 0:00 grep --color=auto sprinkler
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225187144, or mute the thread https://github.com/notifications/unsubscribe/AAKE3GwAtc03e3MsA8k5HRmnDbp-5Rw4ks5qKWvAgaJpZM4Iu8Pd .
maybe the problem is wiringpi 8 is not a typical GPIO pin it shows SDA.1 could I change wiring pi pin 8 to a different pin in wiringpi code , I'm using Direct Negative as my type system for my relays. GPIO 0 through 7 area all gpio OUT how about I use GPIO 27 its the only other OUT left, how would I modify the wiringpi code to reference wiringpi 8 to be 27 instead. I'm actually using that pin though for my garage door opener controller app but the sprinkler app is more important to me.
here is my gpio readall printout:
ok i eliminated zone 8, put the MV/pump "on" on zones 1-7 and ran a schedule z1-7 and there was no repeat, it worked normal
pin IN vs OUT doesn't matter... that's all controlled in software. That should just be the current state of the pin. You can just try moving it to the next GPIO pin, 21 so you don't have to mess with your door opener.
On Fri, Jun 10, 2016 at 10:33 AM, atljam notifications@github.com wrote:
maybe the problem is wiringpi 8 is not a typical GPIO pin it shows SDA.1 could I change wiring pi pin 8 to a different pin in wiringpi code , I'm using Direct Negative as my type system for my relays. GPIO 0 through 7 area all gpio OUT how about I use GPIO 27 its the only other OUT left, how would I modify the wiringpi code to reference wiringpi 8 to be 27 instead. I'm actually using that pin though for my garage door opener controller app but the sprinkler app is more important to me.
here is my gpio readall printout: [image: screen shot 2016-06-10 at 10 27 05 am] https://cloud.githubusercontent.com/assets/14863215/15967483/ed475258-2ef5-11e6-8a0d-98a71be75017.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225198674, or mute the thread https://github.com/notifications/unsubscribe/AAKE3CqBppWRfu0ZrNFiznR2jPJR94Tyks5qKXXHgaJpZM4Iu8Pd .
So looks like we found a bug on the pi 3 using non gpio pins for outputs...
On Fri, Jun 10, 2016 at 10:44 AM, atljam notifications@github.com wrote:
ok i eliminated zone 8, put the MV/pump "on" on zones 1-7 and ran a schedule z1-7 and there was no repeat, it worked normal
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225201641, or mute the thread https://github.com/notifications/unsubscribe/AAKE3KcKUs7OtAJMl8H3S5GEF-YRFAJuks5qKXg1gaJpZM4Iu8Pd .
so would I change 8 to 21 in core.cpp (see below) then recompile
uint8_t ZoneToIOMap[] = {22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37};
uint8_t ZoneToIOMap[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
so it would be: uint8_t ZoneToIOMap[] = {0, 1, 2, 3, 4, 5, 6, 7, 21, 9, 10, 11, 12, 13, 14, 15};
Yes, I believe so.
On Fri, Jun 10, 2016 at 11:19 AM, atljam notifications@github.com wrote:
so would I change 8 to 21 in core.cpp (see below) then recompile
ifdef ARDUINO
uint8_t ZoneToIOMap[] = {22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37};
else
uint8_t ZoneToIOMap[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
so it would be: uint8_t ZoneToIOMap[] = {0, 1, 2, 3, 4, 5, 6, 7, 21, 9, 10, 11, 12, 13, 14, 15};
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225211795, or mute the thread https://github.com/notifications/unsubscribe/AAKE3IubVpeCl3gSSMRey7ijL0kBXPHOks5qKYBogaJpZM4Iu8Pd .
after making the change to core.cpp to wiringpi 21 and moving the pinnout on the pi to correspond, the valve works when manually toggling Zone 8 on and off but the schedule only activated zones 1-7. So basically no benefit to moving it to pin 21.
I changed zone 8 to GPIO 27 and now it appears to have fixed it, I moved my garage controller to GPIO 22 and it works too. So not sure if this is a Pi 3 thing or what. wiringPi does not have any info on their site for Pi 3
Really strange, glad to hear you found a workaround.
On Mon, Jun 13, 2016 at 3:04 PM, atljam notifications@github.com wrote:
I changed zone 8 to GPIO 27 and now it appears to have fixed it, I moved my garage controller to GPIO 22 and it works too. So not sure if this is a Pi 3 thing or what. wiringPi does not have any info on their site for Pi 3
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/62#issuecomment-225676986, or mute the thread https://github.com/notifications/unsubscribe/AAKE3OxESihXkjFSklDD5QcgWubgh5z7ks5qLanLgaJpZM4Iu8Pd .
after installing Sprinklers_Pi on Rasbian Jessie 2016-05-27, on Raspberry Pi 3, using relay Dir Neg setup. I have 8 zones and a master valve. I schedule a simple test of all 8 zones and it repeats the first 4 zones. If I setup zones 1-4 it repeats those zones. If I setup zones 5-8 it repeats those zones. I disabled zones 5-8 and it still repeats zones 1-4 sometimes twice or 3 times. I completed erased all the files and reinstalled the program to no avail. I realize this project is not being maintained but if anyone has an idea please let me know. Works fine on quick schedule with no repeats.
Dan