+ Reply to Thread
Page 2 of 3
First 1 2 3 Last
Results 16 to 30 of 32

Thread: Use PIC16f877A to turn on relay and magnetic valve.Why MCu hot?

  1. #16
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    Are you sure your supply has enough current drive? Verify your 5v stays 5v.
    Pay it forward.
    www.geoepicenter.com


  2. #17
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    Quote Originally Posted by Sceadwian View Post
    Sounds like you're measuring the voltage drop at the transistor base. Try it without the transistor there, you'll get 5V's.
    It would be .7v at the base as oppossed to 2.5v
    Last edited by Mikebits; 25th March 2009 at 06:49 AM.
    Pay it forward.
    www.geoepicenter.com

  3. #18
    babboy12345 Newbie
    Join Date
    Dec 2008
    Posts
    84

    Default

    before my 5v to MCU circuit,i got put a 10k resistor.Is that my MCU circuit must have more current?? But the way, why my relay and valve still can function,and cause the MCU very fast. If i just turn on relay,but the valve i off it,then my MCU will be fine........Please help me,3 more days i need to demonstration my project.

  4. #19
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    Are you saying you have a 10K resistor from your 5v to your MCU Vcc pin? If so remove it. Really helps to make complete drawings.

    CadSoft Online: EAGLE Layout Editor
    Last edited by Mikebits; 25th March 2009 at 03:41 AM.
    Pay it forward.
    www.geoepicenter.com

  5. #20
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    See why it helps to draw schematics. Can't see how you could heat up a 16F877 with a 10K on VDD though. Do you have decoupling caps? Both VDD & VSS connected? Stable regulated 5V?
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  6. #21
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    Quote Originally Posted by blueroomelectronics View Post
    See why it helps to draw schematics. Can't see how you could heat up a 16F877 with a 10K on VDD though. Do you have decoupling caps? Both VDD & VSS connected? Stable regulated 5V?
    Maybe it is current starved and oscillating? Who knows ???

    Never used a PIC, do they go into wierd conditions with funky power?

    Last CPU I designed with was the mobile pentium. Damn pain in the arse part.
    Last edited by Mikebits; 25th March 2009 at 04:23 AM.
    Pay it forward.
    www.geoepicenter.com

  7. #22
    arunb Newbie
    Join Date
    Oct 2006
    Posts
    176

    Default

    You have not shown how the PIC is connected to the supply, an EXACT schematic is essential if you want to solve the problem.

    thanks
    a

  8. #23
    babboy12345 Newbie
    Join Date
    Dec 2008
    Posts
    84

    Default

    why must put a decoupling caps at both VDD & VSS

  9. #24
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    You did not answer my previous question about the 10k resistor. You do not need decouple caps on your ground pins, You only need decouple caps on your power pins ie. +5v
    I think Blu meant caps connected from power to ground.
    Last edited by Mikebits; 25th March 2009 at 05:33 AM.
    Pay it forward.
    www.geoepicenter.com

  10. #25
    babboy12345 Newbie
    Join Date
    Dec 2008
    Posts
    84

    Default

    now i remove the 10k resistor at the Vin place.Initially i do this is to protect my MCU burned.

  11. #26
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,922
    Blog Entries
    2

    Default

    Quote Originally Posted by babboy12345 View Post
    now i remove the 10k resistor at the Vin place.Initially i do this is to protect my MCU burned.
    So have you tested it yet? What happens now?
    Pay it forward.
    www.geoepicenter.com

  12. #27
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    You need decoupling caps with any digital logic IC. 0.1uF is common. We can't help you until you provide a complete schematic of your design. Photos may help.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  13. #28
    babboy12345 Newbie
    Join Date
    Dec 2008
    Posts
    84

    Default

    i try it whole day,i figure out somethings.That is,my MCU circuit and relay all no probelm,works well.Even i use relay to turn on 240V without load(mean valve),its still work.But if i connrct the 240 to my valve,problems happen.MCU hot and MCU stop function.i am using 220v ac 50hz solenoid valve.is than my valve problems???

  14. #29
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    I'll type slowly.

    You need to draw a COMPLETE schematic of your project. Our crystal balls are on the fritz.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  15. #30
    babboy12345 Newbie
    Join Date
    Dec 2008
    Posts
    84

    Default

    but i dono how to draw it........

+ Reply to Thread
Page 2 of 3
First 1 2 3 Last

Similar Threads

  1. How to use transistor(2N3906) to turn on relay?
    By babboy12345 in forum General Electronics Chat
    Replies: 10
    Latest: 24th March 2009, 05:40 AM
  2. how to set the relay dont turn on all the time?
    By babboy12345 in forum Micro Controllers
    Replies: 22
    Latest: 2nd March 2009, 04:38 PM
  3. valve control of water pump using microcontroller with relay
    By sikhwei in forum Electronic Projects Design/Ideas/Reviews
    Replies: 6
    Latest: 10th October 2008, 05:50 PM
  4. Want to turn on a relay with a old Mac.
    By Roboticinfo in forum Electronic Projects Design/Ideas/Reviews
    Replies: 13
    Latest: 22nd April 2005, 01:49 AM
  5. Want to turn on/off a relay with a old Mac 6.08
    By Roboticinfo in forum Robotics Chat
    Replies: 0
    Latest: 14th April 2005, 06:51 AM

Tags for this Thread