Propeller resets...
denno
Posts: 227
in Propeller 1
In another post, I pictured a house thermostat that I built to control my oil fired furness. The prop monitors the temperature in the house, and when the temperature drops below the set temp, the furness turns on until the set temperature is reached. At this point a relay on the board will open a single contact (a SPST relay) and turn off the furness. Now the problem is...at the point of shutdown, the propeller will reset and go back to the COG 0 page, which indicates "POWER FAILURE" and sit there, until I push a reset button to get things going again.
The 12 volt control relay, mentioned above, is controlled by a optoisolator, so the relay is isolated from the Propeller. The contacts of the relay, are opening and closing only 24 volts AC. Which turns on and off the 24 volt relay in the furness. I fear there is some sort of inductive spike taking place in the wires to the relay, which is mounted on the PCB.
I am wondering if anyone else has had this problem with something that they built. I have turned on and off alot of stuff with STAMPS and PROPS, and never had this problem. Also, I should add that I do have alot of filtering capacitors on the supply voltage to the PCB.
Any thoughts...?
The 12 volt control relay, mentioned above, is controlled by a optoisolator, so the relay is isolated from the Propeller. The contacts of the relay, are opening and closing only 24 volts AC. Which turns on and off the 24 volt relay in the furness. I fear there is some sort of inductive spike taking place in the wires to the relay, which is mounted on the PCB.
I am wondering if anyone else has had this problem with something that they built. I have turned on and off alot of stuff with STAMPS and PROPS, and never had this problem. Also, I should add that I do have alot of filtering capacitors on the supply voltage to the PCB.
Any thoughts...?
Comments
PS - the link shows a more complex system than what you need. For your application all that is needed is a current limiting resistor for the MOC3041 led and possibly a resistor on the AC side.
I'm guessing this is your earlier post with the photo?
Do you have a diode across the coils of the relay?
When a relay turns off, the current continues to flow through the coil and builds a large voltage spike. The diode allows some current to flow and reduces the voltage spike. Most (all?) electromechanical relays need this sort of flyback diode.
Edit: The red text "GND" is the low side of the relay coil. It may not be circuit ground. There may be a resistor in series with the coil to limit current.
btw, when I say "photo" I really mean clear and sharp and well lit and from different angles, top, bottom etc.
Had similar problems with my micro hydro power control. This was caused by a ac contactor in generator circuit.
Is there a ac load contactor/relay in your furness, that controls fan/burner? Then this could be the problem. Noise from this one when turning off, will be airborne and influence the Propeller controller.
I resolved this problem with a snubber circuit mounted on the ac contactor coil. Snubber made of 100R resistor and 100n capacitor (400V) in series.
I am beginning to think that I have the twin lead thermostat wires coming into the housing on the wall, and these two wires are close to the PROP and also, close to the wires running from an external programming port. The reset does not happen all the time, which is the puzzling part. I am wondering if there is in fact an inductive spike transmitting away from the 24 volt AC thermostat wires into the wires that normally reset the PROP when programming the PROPELLER. ???????
IF one looks at the PCB, you can see where the thermostat wires come into the terminal strip, then the PCB traces run under the PROPELLER, on there way to the relay. Perhaps the inductive spike is so great, as to generate a pulse that resets the PROP.
So, the next thing I have done is install a spike suppression device across the two screw terminals where the thermostat wires connect inside the furness. I'll let you know
And, thank you Kwinn for your input also.
After a second look It is isolated. Pretty sure you are getting a bounce from the relay. You need to clean up the power going into the prop.
Mike
1 - Tie the reset pin high through a 1k resistor and if it still resets then add a 100nF to ground and repeat.
Still resets?
2 - Power the Prop from a battery, even those USB battery packs are great.
Still resets? Then it's not your power supply or reset line. It could be radiated EM or a poor ground. Can you post the schematic and pcb layout?
btw, the crystal circuit is a very sensitive amplifier and using HC49 crystals with their wide spacing exposing the XI trace just doesn't make any sense in 2020, or even back in 2010. I always use a tiny SMD or even through-hole radial type and keep those lines very short and very tight. The large metal can of the HC49 is also a great antenna (not good). You could try grounding it.
One of the mysteries of the embedded world is why RTC chips are supplied with massive standby batteries when watches run "on standby" for years on tiny ones.
I did put a Transient Suppression Device, not sure that is what it is call, but they are used alot in control boards for lawn water systems. Lots of inductive spiking going on there when the sprinkler water valves get turned on and off. They are also 24 volts. I installed in in/on the furness board where the terminals are for the thermostat wires inside the furness.
I'll let you know if I solved the problem..thanks again for your help..stay safe...
May I ask once again "schematic"?
It seems that adding the Transient Suppression Device has done the trick.
Peter, I will have to photo the schematic and then upload it to my email, and then put it on this laptop, desktop, and then attach it to another thread. My schematics are always drawn by hand on graph paper. However, the PCB from ExpressPCB, is basically the schematic itself, with the silkscreen. When I order my boards, I opt out of the silkscreen, as it is cheaper to buy.
Thanks again to all
I think it didn't help mounting the relay on one side of the pcb and then routing the connection to the heater across the pcb, under the cpu to the connection strip on the other side. Better to put the relay right next to the connection strip well away from the sensitive low viltage stuff.
Dave
The internal reset pullup resistor on the P1 chip is a few hundred kohms, from memory.
The active reset drive with a pull-down resistor ensures that the P2 does not hiccup during ramping on/off or brown-outs.
@Tubular - Why stop at 30k? What's wrong with 3k3 for instance? It's only a 1ma load.