PDA

View Full Version : electronic problem/question/help me ;)



lerameur
- 30th April 2013, 01:52
Hi,
I produced a variable dutycyle and variable frequency and output on RB0 (HPWM). thi is driving a mosfet driver.
You can view the circuit here:
http://www3.sympatico.ca/captoro/
the problem I am getting is when I supply current to the coil, (which is probably not 10uH because I used the default one in Orcad, I'll need to calculate if you want. It has 300 feet wire wrapped on a 2 inch diameter PVC and 3 inch long) . the problem is when I put on the 36v actually for now 12v for testing purposes, the output pin from the picchip stops randomly for oscillating ....
I mean 1 second on 0.5 second off etc...
When there is no load the pic keeps oscillating !! why is this
thanks for the help
K

HenrikOlsson
- 30th April 2013, 06:18
Hi,
The PIC is probably resetting or locking up due to the EMI/EMF caused by the high speed/high current signals thru the coil and wiring.

I'd clean up the wiring, keeping the high current stuff as far away from the low level stuff as possible. Make sure the coil current has a "clear return path" back to the 36V supply so that it doesn't need to pass thru any of the low level ground path. If they share the same ground (which they seem to) make sure to keep them separated thru out the circuit and only connect them together at one single point. Make sire you have ample decoupling across the supply for the PIC right across the supply pins, not inches away from it.

You may want to put a low(ish) value resistor in the gate path for the MOSFET, (10 to 100ohms perhaps) it'll slow down the turn on/turn off slightly, reducing the EMI.

Make sure you have proper decoupling at the MOSFET driver, datasheet suggests 4.7uF and 100nF - again, right at the supply pins of the device.

Finally, that 7812 regulator won't work properly when driven from a 12V supply. If the supply is indeed 12VDC then I'd skip the regulator.

lerameur
- 30th April 2013, 17:19
alright, I will make a few adjustments and get back to you
thanks

Ken

Archangel
- 9th May 2013, 10:26
100% agree with Henrik, would bypass MCLR with a .01 uF cap too . . .Electricity runs through wires, RF crawls around outside. 1 other thing, make sure chip is not browning out too.