Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Mastermime on October 28, 2012, 06:19:05 PM

Title: Confused About Axon Pins
Post by: Mastermime on October 28, 2012, 06:19:05 PM
Hello everyone,

I'm a little confused about how much current the Axon pins can supply.  My question is; Can I activate my relay coil (draws about 150ma) with my Axon?  The supplied voltage to the Axon is 12v.  I understand that input/ output pins can only supply >20ma, but since the row of (battery headers) are interconnected, that shouldn't apply here, correct?
Title: Re: Confused About Axon Pins
Post by: lrmall01 on October 28, 2012, 07:23:06 PM
I don't think so - you'll need some type of driver between the micro and the relay coil.
Title: Re: Confused About Axon Pins
Post by: Webbot on October 28, 2012, 08:52:30 PM
It ain't coming from the battery its the signal pin so its being sourced/drained by the chip! Check the datasheet for ATMega640 - its about 20mA max.
The supplied voltage to the regulator may be 20V - but the supplied voltage to the Axon is 5v (assuming you are talking about an Axon or Axon II).
You 100% need external circuitry to activate the relay
Title: Re: Confused About Axon Pins
Post by: Mastermime on October 28, 2012, 10:38:29 PM
Ok a transistor circuit like this should work, right?
(See image below)

Note: I forgot to put 1k resistors between gate and drain in the schematic
Title: Re: Confused About Axon Pins
Post by: lrmall01 on October 29, 2012, 05:54:45 AM
Your example will work if your relay coil is grounded on the other side.  It is more common to sink the current through the low side of the relay though, also nice to throw in a diode for current to bleed off through once the switch is opened (probably not critical though for a hobby project - this helps with electrical noise caused by the stored energy in the coil).

http://www.pcbheaven.com/wikipages/Transistor_Circuits/ (http://www.pcbheaven.com/wikipages/Transistor_Circuits/)
Title: Re: Confused About Axon Pins
Post by: Mastermime on October 29, 2012, 11:55:47 AM
Quote
It is more common to sink the current through the low side of the relay though

I'm not sure what you mean here.  Could you elaborate?
Title: Re: Confused About Axon Pins
Post by: Razor Concepts on October 29, 2012, 01:15:41 PM
Quote
It is more common to sink the current through the low side of the relay though

I'm not sure what you mean here.  Could you elaborate?

Your circuit is "sourcing" current - you are providing a positive voltage, allowing current to flow from the positive to ground.

"sinking" current means providing a connection to the negative voltage, allowing current to flow from the positive (which is already connected to the relay) to the negative voltage (ground)
Title: Re: Confused About Axon Pins
Post by: Mastermime on October 29, 2012, 03:00:22 PM
Ok I think I understand.  I should be applying the concept of electron flow rather than conventional flow.  Could you verify the image to make sure I'm correct
Title: Re: Confused About Axon Pins
Post by: Mastermime on October 30, 2012, 01:55:12 PM
Can somebody confirm that I will be wiring this correctly based on the wiring the image above?
Title: Re: Confused About Axon Pins
Post by: lrmall01 on October 31, 2012, 05:27:12 AM
Yes - that looks correct.

Here is another reference for you.

http://www.free-circuit.com/2011/05/16/relay-control-with-mosfet-irf511-circuit/ (http://www.free-circuit.com/2011/05/16/relay-control-with-mosfet-irf511-circuit/)
Title: Re: Confused About Axon Pins
Post by: Mastermime on October 31, 2012, 08:19:32 AM
Thanks a lot for your help
Title: Re: Confused About Axon Pins
Post by: Soeren on November 02, 2012, 06:47:14 PM
Hi,

A few things to note...
- A TO-220 MOSFET is way overkill. A BC337 is ample for such.
- Remember a fast diode over the relay coil, or the active element will die screaming.
- The schematic you were pointed to (one of the late Tony VanRoon circuits, stolen from his site BTW), does have a (slow) diode in place, but the resistors at the gate are way too large (always scrutinize his circuits and correct accordingly, he was a really great guy, but unfortunately, several of his circuits are flawed and he didn't get enough time on earth to correct them all).