Go to Post - oh dear - Will it be January soon? - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-04-2009, 07:32
colo colo is offline
Registered User
no team
 
Join Date: Apr 2009
Location: malta
Posts: 3
colo is an unknown quantity at this point
a problem with Microcontroller

Hello to everybody ...

I have a very big problem in Microcontroller , and here is the problem ...

First I used PIC16F877A and PIC16F917 , it works fine for along time

but when I connects them to DC Motors throudh H-bridge or transistors

it will work fine for a short time and then the PIC damage

I do not know what is really happen , it is absolutely not fried

because the pic programmed and read the program correctly

everything is fine on the pic , except it did not execute the program at all

what is really the problem ?
  #2   Spotlight this post!  
Unread 23-04-2009, 07:44
Foster Foster is online now
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: a problem with Microcontroller

It's really hard to say exactly. It sounds like you are designing and building your own system. So without seeing the schematics of what you've build it's hard to do remote diagnostics.

Things that can easily burn up parts of the PIC chip are overloads on the ports. The output ports to the HBridges can easily be over-driven (put out more current) than they are rated for. This will cause just that port to fail.

Your HBridge is also prone to excessive current flow which may damage the control parts or one leg of the bridge. It's also possible that back EMF (caused when your DC motor becomes a DC generator) feeds into the HBridge backwards and destroys the drive transistors.

Off the top of my head that's the two places I'd look (after low battery and loose connections)

Good luck!
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #3   Spotlight this post!  
Unread 23-04-2009, 08:11
colo colo is offline
Registered User
no team
 
Join Date: Apr 2009
Location: malta
Posts: 3
colo is an unknown quantity at this point
Re: a problem with Microcontroller

First of all , I used the circuit shown in the link :

http://www.dprg.org/tutorials/1998-04a/hb6.png

when my PIC fails ( which mean programmed but not execute ) , I turned to H-Bridge ( SN754410NE ) , and the same problem becomes

I made a program that make all pins to output , but nothing happens

It programmed with no errors at all using winpic and IC-prog , but when connect it to run the program it did not work at all

I did not think it is dc motor driver because I used transistors and H-bridge

but what is really happend , I still have no idea !
  #4   Spotlight this post!  
Unread 23-04-2009, 09:53
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: a problem with Microcontroller

I would agree that what you are describing sounds like back-EMF is damaging the microcontroller. The inline resistors will help protect against this some, but it's still possible that enough current could pass back through them to damage the control logic (can't be exactly sure without knowing the value of the resistors and what their current rating is). What I've seen a lot of people do when constructing circuits like this is to use opto-isolators between the microcontroller and the motor drivers, which is a pretty standard way of eliminating back-EMF.

Like was mentioned, I would suspect that after the circuit stops working, that the program is actually still running but since the port circuitry is damaged you won't see any output. If you're certain that the code is not actually running, it's possible that instead of the microcontroller, some of the power/clock circuitry could have been damaged. Usually the PIC Programmers supply their own power and clock signals, so this would account for it working while programming, but not otherwise.

Good luck,
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #5   Spotlight this post!  
Unread 23-04-2009, 13:43
colo colo is offline
Registered User
no team
 
Join Date: Apr 2009
Location: malta
Posts: 3
colo is an unknown quantity at this point
Re: a problem with Microcontroller

If it is back-emf problem , could I use diodes to protect my Microcontroller from it ? and if yes , where to put the diodes in transistor , is it on Base ?

By the way , the value of resistors is 500 ohm , and the transistor is TIP-31
  #6   Spotlight this post!  
Unread 23-04-2009, 14:03
emersont49 emersont49 is offline
Mentor
#1098
 
Join Date: Sep 2004
Location: Fenton, Missouri
Posts: 34
emersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of light
Re: a problem with Microcontroller

Try this:

http://www.st.com/stonline/products/...re/ds/5279.pdf

It is a dip with 7 darlington array drivers. I've used them to successfuly isolate circuits from I/O.
__________________
Tim Emerson
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Victor turning on and off under load, with non-IFI microcontroller pludodog Electrical 17 28-09-2009 08:07
[FTC]: Problem with Code or Problem with Bluetooth? VeedotJaydot FIRST Tech Challenge 3 27-01-2009 18:22
Problem with Lofting cooker52 Inventor 14 04-11-2007 15:00
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 06-02-2003 21:10
Problem with OI / RC Jay Lundy Technical Discussion 2 29-03-2002 23:07


All times are GMT -5. The time now is 07:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi