Problem with PIC16F87 - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 44 of 44
  1. #41
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    For most of this testing the RS485 chip hasnt been plugged in and the data wires disconnected. When it has been connected up the RS232 to RS485 convertor has been running from the same power supply.

    Im pretty sure theres no problem with the RS485 part of the circuit. When the chip starts having a fit during pause commands if i pull the 555 out then it suddenly goes back to normal.

    I also tried using the 555 on the breadboard but removing its regulator and connecting the power wires after the regulator on the PCB and that causes problems aswell. It only works when the 555 and PIC have different regulators

  2. #42
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Ive just connected the audio amp circuit up and for some reason that causes the PIC to constantly reset too in the same way the 555 does. The audio circuit has some extra capacitors on so i would have thought that should help.

    I tried connecting the audio circuit on the same regulator as the 555 and everything works. The only thing i noticed is that i had to change the POT to get the IR receivers to pick a signal up.

    So, the 555 and audio circuit both cause problems with the PIC but the IR emitters that use more current than everything else put together have no effect on it. Im really confused

    Edit: I just remembered something else too. When i press the button on my smoke machine the PIC resets. Ive had this problem in the past too. I wonder if this problem could be somehow related. The smoke machine is interfering even though its only connected by the mains wires in the house so it seems things can have an effect on the PIC even when in theory they shouldnt
    Last edited by The Master; - 14th September 2009 at 01:51.

  3. #43
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Not knowing how mains are wired where you are at but I will guess that there is a problem in the way they are wired at your place.

    I had a similar problem at a customers place. A lot of high frequency "stuff" runs (similar to your smoke machine?). After spending time changing the power supply, adding capacitors etc I found the problem was bad or no earth grounds on most of the equipment. Several places the ground wire was connected to the machine but not to a ground rod creating several antennas going several directions.

    I went though and fixed and or added the earth grounds and the problem was solved. The false alarms on their security system even stopped. Not sure about that one, just what I was told.

    Might not be the problem, but just from a safety side it would be worth a look.
    Dave
    Always wear safety glasses while programming.

  4. #44
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I dont think the 555 problem is caused by grounding problems. Its on the same PCB using the same ground as everything else. The smoke machine itself is definately earthed correctly and ive had the same problem in a few different buildings. The PIC also resets if i plug something like a soldering iron or big transformer in and the ignition on our gas cooker causes a reset too. These things have affected every PIC circuit ive made so i guess they are normal but im just wondering if the 555 is creating a similar kind of interference thats so small that it only causes a problem when its connected to the same power rails as the PIC.

Similar Threads

  1. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  2. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. PORTA.PinNo = 1 ' problem
    By frank small in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 14:30

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts