ok, found problem, need to adjust timing now - water timer, no external osc
Hello,
I have a very crude version of a water timer, IE something that barley works for my purposes. Timing is inaccurate due to no external osc, but I did get in my timer chips with built in osc.
basiclly
do
run pattern 0 runs everything, then pauses for 12 hours
run pattern 1 runs only zone 3, then pauses for 12 hours
loop
one oddity, is although my PatternMode var is a bit, SXSim won't let me TOGGLE it. So I did a IF THEN ELSE kludge. I don't know if it would of downloaded with the toggle, but I don't have time right now.
Post Edited (Capdiamont) : 6/19/2008 12:54:23 AM GMT
I have a very crude version of a water timer, IE something that barley works for my purposes. Timing is inaccurate due to no external osc, but I did get in my timer chips with built in osc.
basiclly
do
run pattern 0 runs everything, then pauses for 12 hours
run pattern 1 runs only zone 3, then pauses for 12 hours
loop
one oddity, is although my PatternMode var is a bit, SXSim won't let me TOGGLE it. So I did a IF THEN ELSE kludge. I don't know if it would of downloaded with the toggle, but I don't have time right now.
Post Edited (Capdiamont) : 6/19/2008 12:54:23 AM GMT
Comments
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com
·
Something went wrong, it didn't work. Problem is I'm miles from home to fully troubleshoot it. I'm just sxsiming it for now. Thus the need for the watch variables. I know the 24v power supply will power the valves, and the wiring is good. I jumpered one side of the power supply to each valve zone and they work. Reading specs, they are supposed to be 2 watts at 24vAC.
I used LAA710STR
Description: SOLID STATE DUAL POLE OPTOMOS RELAYS
Brand: CLARE
data sheet http://www.clare.com/home/pdfs.nsf/0/DEDCD3902414AD6185256D3500556911/$file/LAA710_R01_1.pdf
which is able to handle 1 amp up to 60v
What little I can tell, the code looks ok. Might be the the wiring to that part, or that part. I figure pins 2 and 4 go to ground. Pins 1 and three to output pin via 470 ohm resistor. I used 440 ohm(two 220 ohm in series) 1/4 watt. The other side. Pins 6 and 7 are tied together and ran to the supply side of the transformer. Pins 5 and 8 goes out to respective zone valves then returns on common black wire to other side of transformer.
My other thoughts is maybe the part is wired up right, and couldn't handle the startup amp surge, or collapsing voltage from the valve.
It is on Gunther's "todo" list.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
That was on fire when I got here...
www.iElectronicDesigns.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
When all else fails.....procrastinate!
It doesn't matter where the WATCH statements are. They have no effect on the running of the program.
It only matters where the BREAK is.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Uhhhm, that was on fire when I got here...
www.iElectronicDesigns.com
·
Edit:Ok, so shouldn't there be a break in this program? I don't see one.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
When all else fails.....procrastinate!
Post Edited (Shawn Lowe) : 6/18/2008 1:27:24 PM GMT
Both power supplies are plugged in to wall. Check. I have one I use for programming, the other is 24vAC transformer. Will be making it all run off the 24vAC transformer.
Got out cheap multimeter, voltage good, 24vAC. The device can handle 60vAC or DC
Amperage, to low for cheap meter's 10a only range. Thus good.
Brought out better meter, max amperage measured on 2ma scale was 0.036 amps. Well under one amp the device can handle.
Time to open up the casing.
No LED lit on the SX protoboard.
Switch in in "0". Grumble
Moved switch to "1". Soon each zone activates in turn, though with only about 5 to 6 min on time, and shuts off.
Other than on time being off, it works great. Time to wire up the LED's and shove the programming I've done while gone to the SX.
My thinking on the BREAK is that it stops the program and I don't want to stop the program, just watch to make sure the variables are doing what I want them to do. Just poll once in a while.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
When all else fails.....procrastinate!
Dan
Edit: I don't see a POLL command in the help file Dan, am I missing it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
When all else fails.....procrastinate!
Post Edited (Shawn Lowe) : 6/19/2008 6:35:45 PM GMT
That will update your watch variable values in the debug session.
Dan
I'm now thinking that I was seeing my watch variables in Debug, not SXsim.
SXsim, you have to hit run, then you can hit poll to see a snapshot of the state of the simulated sx, IO panel, etc.
I think I have the programming good. Problem was PG&E didn't complete their planned power outage past 9pm last night.