PDA

View Full Version : why?....



turkuaz
- 16th June 2007, 17:15
I use Pic F877 on my project. ı count rotaion of electrical motor rpm.But when ı started the motor pic reset it itself. WHY?.Pic and motor plugged same electrical wire .
How can ı solve this stuation.
Thanks everyone who help me.

mister_e
- 16th June 2007, 17:21
Could be tons of things, can you post your schematic?

skimask
- 16th June 2007, 18:18
Could be tons of things, can you post your schematic?

In the other thread, he was using RA4 to count the pulses.
And I'd be willing to bet this motor and the PIC are on the same power supply.

BobK
- 17th June 2007, 03:41
Isn't that what he said? He's got both on the same power supply!

BobK

skimask
- 17th June 2007, 04:11
Isn't that what he said? He's got both on the same power supply!

BobK

Well, I guess what I meant was that, not only is the PIC controlling the motor, but it's probably supplying it's power (maybe with a darlington pair, MOSFET, whatever), AND/OR both the PIC and the motor are drawing their power from the same power supply.

turkuaz
- 17th June 2007, 12:53
In the other thread, he was using RA4 to count the pulses.
And I'd be willing to bet this motor and the PIC are on the same power supply.

Yes .You are right. I use RA4 for counting.Is that wrong pin?
I use regulated supply for Pic(5V DC) and motor is connected to same plug (on the wall) but not driven energy from regulated supply that pic use.
some time everything goes good but sometimes occurs this problem.
I use relay to run motor.Pic drive raley than motor running.Motor uses 220Volt AC not pic supply

skimask
- 17th June 2007, 18:41
Yes .You are right. I use RA4 for counting.Is that wrong pin?
I use regulated supply for Pic(5V DC) and motor is connected to same plug (on the wall) but not driven energy from regulated supply that pic use.
some time everything goes good but sometimes occurs this problem.
I use relay to run motor.Pic drive raley than motor running.Motor uses 220Volt AC not pic supply

Got a snubber across the relay coil? Good caps across Vdd and Vss on the PIC? Good pullup on MCLR?
RA4 is only an issue if using it for an output.