Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Need Help with a circuit

Need Help with a circuit

2004-08-12 by kc9dag

I have designed a circuit that works fine when I run it on the 
STK500, but when I tried to move the circuit to its own board (this 
is the first time I have done an avr w/o using the STK500) it does 
not work.  I was wondering if someone would mind looking at the 
schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and 
telling me what I am doing wrong?  The circuit basicly waits for a 
laser beam to be broken (detected by the photodiode) and then 
activates a relay in a set time pattern.  When I try the soldered 
circuit, the relay never activates regardless of the laser (again it 
worked fine when it was hooked up to the stk500, only using an led 
instead of the relay.)
Thanks,
Daniel
KC9DAG

Re: Need Help with a circuit

2004-08-12 by kc9dag

> I think the problem is there are not enough current to 
> drive the relay. 

oops, posted the wrong schematic... mine was still wrong, but I did 
have the transistor...  The one I ment to post is 
http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the 
NPN, but I hooked up the transistor the way it is shown on page 3-2 
of the STK500 manual...
so after everyones advice I have changed the schematic to 
http://www.dpicts.com/Tiny15L-LaserDetector-fixed.jpg    I didn't 
add the diode as someone suggested b/c I am actually using a solid-
state relay (an Laa110)...  If someone could confirm my corrected 
schematic I would be very greatfull.  
Thanks again,
Daniel
KC9DAG

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Dave VanHorn

At 09:07 PM 8/11/2004, kc9dag wrote:

>I have designed a circuit that works fine when I run it on the 
>STK500, but when I tried to move the circuit to its own board (this 
>is the first time I have done an avr w/o using the STK500) it does 
>not work.  I was wondering if someone would mind looking at the 
>schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and 
>telling me what I am doing wrong?  The circuit basicly waits for a 
>laser beam to be broken (detected by the photodiode) and then 
>activates a relay in a set time pattern.  When I try the soldered 
>circuit, the relay never activates regardless of the laser (again it 
>worked fine when it was hooked up to the stk500, only using an led 
>instead of the relay.)

Relay activation current is too high. 
Relays don't usually have a pull-in current of a few mA. Them that do, are LARGE, and PRICEY.

You also have no suppression diode across the coil, so when you turn the coil off, you'll stand a good chance of frying the tiny.

Add an NPN transistor. E to ground, C to the relay coil, B to the tiny, through a 1k resistor.  Add a 10k resistor from the tiny's output pin to ground. 
Add a diode across the relay coil, so that the diode does not conduct when the transistor is on.

[AVR-Chat] Need Help with a circuit

2004-08-12 by techy fellow

Since you mentioned you are using a relay instead of a Led on your actual circuit, could it be, there is insufficient 'juice' to active the relay on your actual circuit ?

kc9dag <dpboyer@dpicts.com> wrote:
I have designed a circuit that works fine when I run it on the 
STK500, but when I tried to move the circuit to its own board (this 
is the first time I have done an avr w/o using the STK500) it does 
not work.  I was wondering if someone would mind looking at the 
schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and 
telling me what I am doing wrong?  The circuit basicly waits for a 
laser beam to be broken (detected by the photodiode) and then 
activates a relay in a set time pattern.  When I try the soldered 
circuit, the relay never activates regardless of the laser (again it 
worked fine when it was hooked up to the stk500, only using an led 
instead of the relay.)
Thanks,
Daniel
KC9DAG


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Mike Murphree

On Aug 11, 2004, at 9:07 PM, kc9dag wrote:

> I have designed a circuit that works fine when I run it on the
> STK500, but when I tried to move the circuit to its own board (this
> is the first time I have done an avr w/o using the STK500) it does
> not work.  I was wondering if someone would mind looking at the
> schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and
> telling me what I am doing wrong?  The circuit basicly waits for a
> laser beam to be broken (detected by the photodiode) and then
> activates a relay in a set time pattern.  When I try the soldered
> circuit, the relay never activates regardless of the laser (again it
> worked fine when it was hooked up to the stk500, only using an led
> instead of the relay.)

The series resistor on the relay may not provide enough current for the 
relay to operate.  Use an external transistor if you need more current 
than the microcontroller output is rated for. Also put a small diode 
across the relay coil in the opposite direction than you would expect, 
i.e. cathode to +5V and anode to the 150 ohm resistor side.  Without 
the diode, the back-EMF from the relay coil will produce a high voltage 
pulse directly into the micro.


Mike W4LNA

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Astria Nur Irfansyah

I think the problem is there are not enough current to 
drive the relay. As far as i know, a microcontroller i/o 
pin should not drive (source/sink) too much current. Maybe 
you should use a transistor as a switch to drive the 
relay, and control that transistor using your i/o pin. You 
can use an NPN transistor of any kind, connect the 
collector to the resistor of your circuit(R6). Release the 
connection from R6 to your AVR. Connect the emitter of the 
transistor to ground. Then connect your i/o pin to the 
basis of the transistor using a resistor. Maybe 4k7 should 
be fine.

Hope this helps.
Irfan.

On Thu, 12 Aug 2004 02:07:55 -0000
  "kc9dag" <dpboyer@dpicts.com> wrote:
> I have designed a circuit that works fine when I run it 
>on the 
> STK500, but when I tried to move the circuit to its own 
>board (this 
> is the first time I have done an avr w/o using the 
>STK500) it does 
> not work.  I was wondering if someone would mind looking 
>at the 
> schematic 
>(http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and 
> telling me what I am doing wrong?  The circuit basicly 
>waits for a 
> laser beam to be broken (detected by the photodiode) and 
>then 
> activates a relay in a set time pattern.  When I try the 
>soldered 
> circuit, the relay never activates regardless of the 
>laser (again it 
> worked fine when it was hooked up to the stk500, only 
>using an led 
> instead of the relay.)
> Thanks,
> Daniel
> KC9DAG
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 

===========================================================================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
===========================================================================================

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

At 09:57 PM 8/11/2004, kc9dag wrote:

>> I think the problem is there are not enough current to 
>> drive the relay. 
>
>oops, posted the wrong schematic... mine was still wrong, but I did 
>have the transistor...  The one I ment to post is 
>http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the 
>NPN, but I hooked up the transistor the way it is shown on page 3-2 
>of the STK500 manual...
>so after everyones advice I have changed the schematic to 
>http://www.dpicts.com/Tiny15L-LaserDetector-fixed.jpg    I didn't 
>add the diode as someone suggested b/c I am actually using a solid-
>state relay (an Laa110)... 

An SSR may still have a coil, with a small relay activating a large triac.

Also, I'd still reccomend the 10k pulldown on the tiny's output pin, Otherwise, you have an excellent RF detector connected to your relay, whenever the uP is in reset.

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Bernd Felsche

On Thursday 12 August 2004 11:00, Dave VanHorn wrote:
> At 09:57 PM 8/11/2004, kc9dag wrote:
> >> I think the problem is there are not enough current to
> >> drive the relay.
> >
> >oops, posted the wrong schematic... mine was still wrong, but I did
> >have the transistor...  The one I ment to post is
> >http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the
> >NPN, but I hooked up the transistor the way it is shown on page 3-2
> >of the STK500 manual...
> >so after everyones advice I have changed the schematic to
> >http://www.dpicts.com/Tiny15L-LaserDetector-fixed.jpg    I didn't
> >add the diode as someone suggested b/c I am actually using a solid-
> >state relay (an Laa110)...
>
> An SSR may still have a coil, with a small relay activating a large
> triac.

Yikes! That's an interesting concept of "Solid State Relay" :-)

> Also, I'd still reccomend the 10k pulldown on the tiny's output pin,
> Otherwise, you have an excellent RF detector connected to your relay,
> whenever the uP is in reset.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

>
>> An SSR may still have a coil, with a small relay activating a large
>> triac.
>
>Yikes! That's an interesting concept of "Solid State Relay" :-)

The output is not mechanical contacts, and the relay provides isolation.
I've seen them, you can just barely hear the "click" if they use reed relays.

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Jeffrey Engel

Daniel,

The AVR can't drive the relay directly.  You'll need a
transistor (or something) to handle the current.

Jeff Engel
Arlington, TX
--- kc9dag <dpboyer@dpicts.com> wrote:

> I have designed a circuit that works fine when I run
> it on the 
> STK500, but when I tried to move the circuit to its
> own board (this 
> is the first time I have done an avr w/o using the
> STK500) it does 
> not work.  I was wondering if someone would mind
> looking at the 
> schematic
> (http://www.dpicts.com/Tiny15L-LaserDetector.jpg)
> and 
> telling me what I am doing wrong?  The circuit
> basicly waits for a 
> laser beam to be broken (detected by the photodiode)
> and then 
> activates a relay in a set time pattern.  When I try
> the soldered 
> circuit, the relay never activates regardless of the
> laser (again it 
> worked fine when it was hooked up to the stk500,
> only using an led 
> instead of the relay.)
> Thanks,
> Daniel
> KC9DAG


=====
Happiness is - positive intake manifold pressure.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Dave VanHorn

At 10:29 PM 8/11/2004, Jeffrey Engel wrote:

>Daniel,
>
>The AVR can't drive the relay directly.  You'll need a
>transistor (or something) to handle the current.

Well, there are always exceptions. I've seen relays that close at <3mA, but they are not common, and as I said, large and expensive. 
The coil inductance is large, and stored energy also large.

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Jeffrey Engel

Dave,

I'm sure you're right.

Didn't mean to spread any mis-information.

Jeff Engel
Arlington, TX
--- Dave VanHorn <dvanhorn@dvanhorn.org> wrote:

> At 10:29 PM 8/11/2004, Jeffrey Engel wrote:
> 
> >Daniel,
> >
> >The AVR can't drive the relay directly.  You'll
> need a
> >transistor (or something) to handle the current.
> 
> Well, there are always exceptions. I've seen relays
> that close at <3mA, but they are not common, and as
> I said, large and expensive. 
> The coil inductance is large, and stored energy also
> large. 


=====
Happiness is - positive intake manifold pressure.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Dave VanHorn

At 10:38 PM 8/11/2004, Jeffrey Engel wrote:

>Dave,
>
>I'm sure you're right.
>Didn't mean to spread any mis-information.

Generally, you're right, but it pays to remember there are exceptions. :)
Most relays are >10mA to pull in, and have coil voltages that would preclude the AVR's output transistors from allowing enough current.

Plus, it's just a really bad idea to save $0.05 and drive the relay directly.

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Astria Nur Irfansyah

I am not familiar with solid state relays. Btw, which is 
more important: current or voltage? I mean, what are the 
requirements in order to close a relay? Enough voltage? or 
enough current? As far as i know, if i want to buy  a 
relay at my favorite store, they will ask: how many volts? 
My point is, is there enough voltage to turn on your 
relay? In your circuit, the relay gets less than 5 volts.

And does anyone know the resistance of a relay?

Thanks.
Irfan.

> --- kc9dag <dpboyer@dpicts.com> wrote:
> 
>> I have designed a circuit that works fine when I run
>> it on the 
>> STK500, but when I tried to move the circuit to its
>> own board (this 
>> is the first time I have done an avr w/o using the
>> STK500) it does 
>> not work.  I was wondering if someone would mind
>> looking at the 
>> schematic
>> (http://www.dpicts.com/Tiny15L-LaserDetector.jpg)
>> and 
>> telling me what I am doing wrong?  The circuit
>> basicly waits for a 
>> laser beam to be broken (detected by the photodiode)
>> and then 
>> activates a relay in a set time pattern.  When I try
>> the soldered 
>> circuit, the relay never activates regardless of the
>> laser (again it 
>> worked fine when it was hooked up to the stk500,
>> only using an led 
>> instead of the relay.)
>> Thanks,
>> Daniel
>> KC9DAG
> 
> 
> =====
> Happiness is - positive intake manifold pressure.
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 

===========================================================================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
===========================================================================================

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Dave VanHorn

At 10:54 PM 8/11/2004, Astria Nur Irfansyah wrote:

>I am not familiar with solid state relays. Btw, which is 
>more important: current or voltage? I mean, what are the 
>requirements in order to close a relay? Enough voltage? or 
>enough current? 

Current. Magnetic flux is amp-turns. Voltage is incidental, and forced by the resistance of the coil.

>As far as i know, if i want to buy  a 
>relay at my favorite store, they will ask: how many volts? 
>My point is, is there enough voltage to turn on your 
>relay? In your circuit, the relay gets less than 5 volts.

The only reason you need voltage, is to overcome the resistance, and get enough current flowing.

>And does anyone know the resistance of a relay?

Yes. :)   The maker, and the data sheet.

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Paul Maddox

Daniel,

>  I was wondering if someone would mind looking at the
> schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and
> telling me what I am doing wrong?

Ok, do yourself a favour and save your AVR from going 'BANG'.
Put a diode across the relay coil, the wrong way round.

When you put power through a coil it builds up a charge (much like a
capacitor), when you remove it this charges reverses and you get a large
negative voltage going back down the wires.
Its only a matter of time before this breaks down the AVR and blows it up
(or just the pin on the port)

Second thing, use a transistor to drive the relay, the AVR just won't be
able to sink the current and turn on the relay, unless you've got an
expensive.
Just use an emitter follower (don't forget that diode though).

Paul

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Paul Maddox

Daniel,

> oops, posted the wrong schematic... mine was still wrong, but I did
> have the transistor...  The one I ment to post is
> http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the
> NPN, but I hooked up the transistor the way it is shown on page 3-2
> of the STK500 manual...

ok, don't do this, you'll still be trying to sink the current from the relay
through the AVR.

Look for an emitter follower schematic.

Paul

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by joseph torelli

I don't know if this will fit but google "uln28003a". This is a relay driver
chip. I has protection diodes built in. It can drive 8 relays or you can
parallel the output for higher current relays. You can control it right from
the output pins of the micro.

JoeT
Show quoted textHide quoted text
-----Original Message-----
From: Paul Maddox [mailto:P.Maddox@signal.qinetiq.com]
Sent: Thursday, August 12, 2004 2:47 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Re: Need Help with a circuit




> oops, posted the wrong schematic... mine was still wrong, but I did
> have the transistor...  The one I ment to post is
> http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the
> NPN, but I hooked up the transistor the way it is shown on page 3-2
> of the STK500 manual...





Yahoo! Groups Links

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

At 09:30 AM 8/12/2004, joseph torelli wrote:

>I don't know if this will fit but google "uln28003a". This is a relay driver
>chip. I has protection diodes built in. It can drive 8 relays or you can
>parallel the output for higher current relays. You can control it right from
>the output pins of the micro.

Eight darlington transistor pairs, and eight diodes.
He only needs one, and he almost certainly does not need a darlington's gain here.

Not that you couldn't use the ULN2003, but it's way overkill.

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Bruce Parham

Bernd Felsche wrote:
> 
> On Thursday 12 August 2004 11:00, Dave VanHorn wrote:
> > At 09:57 PM 8/11/2004, kc9dag wrote:
> > >> I think the problem is there are not enough current to
> > >> drive the relay.
> > >
> > >oops, posted the wrong schematic... mine was still wrong, but I did
> > >have the transistor...  The one I ment to post is
> > >http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg  which has the
> > >NPN, but I hooked up the transistor the way it is shown on page 3-2
> > >of the STK500 manual...
> > >so after everyones advice I have changed the schematic to
> > >http://www.dpicts.com/Tiny15L-LaserDetector-fixed.jpg    I didn't
> > >add the diode as someone suggested b/c I am actually using a solid-
> > >state relay (an Laa110)...
> >
> > An SSR may still have a coil, with a small relay activating a large
> > triac.
> 
> Yikes! That's an interesting concept of "Solid State Relay" :-)
> 
> > Also, I'd still reccomend the 10k pulldown on the tiny's output pin,
> > Otherwise, you have an excellent RF detector connected to your relay,
> > whenever the uP is in reset.
> 

Just for interest, SSR's have been around for 25 years or so. (Think of them as
opto-isolators with industrial strength AC or DC outputs.) A real SSR uses an
LED to drive a photo transistor or diode on the output side. This opto link
provides the input/output isolation. (If the thing uses a mechanical relay on the 
input, it should not be called a Solid State Relay.)

All of the SSRs I've ever used have a resistor, internally, in series with the
LED and the input is rated by voltage or voltage range, i.e. 3-28V. Daniel, what 
is the input voltage and current requirements for the SSR you are using? 

Bruce

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

>
>Just for interest, SSR's have been around for 25 years or so. (Think of them as
>opto-isolators with industrial strength AC or DC outputs.) A real SSR uses an
>LED to drive a photo transistor or diode on the output side. This opto link
>provides the input/output isolation. (If the thing uses a mechanical relay on the 
>input, it should not be called a Solid State Relay.)

I agree, but they are out there.. Beware.

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Daniel Boyer

> All of the SSRs I've ever used have a resistor, internally, 
> in series with the LED and the input is rated by voltage or 
> voltage range, i.e. 3-28V. Daniel, what 
> is the input voltage and current requirements for the SSR you 
> are using? 

First off the SSR that I am using is a true SSR in that is has an LED
inside which activates a MOSFET... As to bruce's question about the
input voltage range of my SSR: I don't know... I have looked over the
datasheet ( http://www.dpicts.com/Laa110.pdf ) many times and can not
find an input voltage anywhere.  This may be my problem, but I don't
know; I would appreciate it if someone could look at the sheet and tell
me where the input voltage is listed.  I'm about to rewire the
transistor and see if it works, if not I do have a 5V relay from
Radioshack that I can try in place (I really didn't want to use the RS
Relay because of size, but I will if I have to and then look for an
alternative later.)
Thanks,
Daniel
KC9DAG

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

> I have looked over the
>datasheet ( http://www.dpicts.com/Laa110.pdf ) many times and can not
>find an input voltage anywhere.

There isn't one. They are just IRleds, so as long as you have 2-3 volts across them, you'll be fine.  

 From the spec, you may need anywhere from 5-50mA before the output turns fully on though. The AVR won't drive that directly, so you still need the switching transistor.  No diode though, since we now know for sure, that you don't have a coil involved.

You also need to make sure that the current through the LED is << 400uA in the "off" state. This is what I was talking about before, using a pulldown resistor on the AVR pin that drives the transistor. Otherwise, while the AVR is in reset, you have no output drive from the AVR, and the base diode of the transistor makes a nice RF detector to turn your relay on when you didn't expect it.

This device is like a conventional relay in one sense, it is activated by CURRENT through it, not voltage.

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Daniel Boyer

> There isn't one. They are just IRleds, so as long as you have 
> 2-3 volts across them, you'll be fine.  

Will 5V across them be okay, or do I need to do something to bring my 5v
down to around 3 just for the relay?

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Bruce Parham

Daniel Boyer wrote:
> 
> > All of the SSRs I've ever used have a resistor, internally,
> > in series with the LED and the input is rated by voltage or
> > voltage range, i.e. 3-28V. Daniel, what
> > is the input voltage and current requirements for the SSR you
> > are using?
> 
> First off the SSR that I am using is a true SSR in that is has an LED
> inside which activates a MOSFET... As to bruce's question about the
> input voltage range of my SSR: I don't know... I have looked over the
> datasheet ( http://www.dpicts.com/Laa110.pdf ) many times and can not
> find an input voltage anywhere.  This may be my problem, but I don't
> know; I would appreciate it if someone could look at the sheet and tell
> me where the input voltage is listed.  I'm about to rewire the
> transistor and see if it works, if not I do have a 5V relay from
> Radioshack that I can try in place (I really didn't want to use the RS
> Relay because of size, but I will if I have to and then look for an
> alternative later.)
> Thanks,
> Daniel
> KC9DAG

Looking at Pg 1 of the data sheet, we have just the LED for input. On Pg 2,
under Electrical Characteristics, we need 5 to 50 mA for input control. The
AVR will source 10 mA at an output voltage of 4.3 V when operated @ 5V. The 
LED will drop 1.2 V @ 5 mA. Let's assume 1.3 V @ 10 mA: 4.3V - 1.3V = 3.0V.
Since R = E/I (Ohm's Law), R = 3.0V / 0.01A = 300 Ohm. So put a 300 ohm
resistor in series with the input LED and it should work. 

Another issue is switching speed; the specs list 3 mS max for turn-on and 
turn-off with typ turn-on times around 1 mS. How fast are you trying to 
switch the relay? A 10 mS pulse should do it but 100 uS will never make it...

Bruce

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Daniel Boyer

> Another issue is switching speed; the specs list 3 mS max for 
> turn-on and 
> turn-off with typ turn-on times around 1 mS. How fast are you 
> trying to 
> switch the relay? A 10 mS pulse should do it but 100 uS will 
> never make it...

I've got 3 second turn on's so the switching is not a problem.   
Thanks for all your help,
Daniel
KC9DAG

Re: Need Help with a circuit SSR

2004-08-12 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
> 
> >
> >> An SSR may still have a coil, with a small relay activating a 
large
> >> triac.
> >
> >Yikes! That's an interesting concept of "Solid State Relay" :-)
> 
> The output is not mechanical contacts, and the relay provides 
isolation.
> I've seen them, you can just barely hear the "click" if they use 
reed relays.

One thing I didn't seem mentioned is that most Solid State Relays,  
(SSR) are most often strictly and only AC output.  Also the inputs 
are very specific.  if it is logic level then only the 5V DC is 
needed and the rest of the driving circuit is not needed as it would 
be driving an optolator inside the SSR.

In other words, get the data sheet on the SSR and make sure you are 
following it.

Dave

Re: Need Help with a circuit - soid state relay

2004-08-12 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, "Astria Nur Irfansyah" 
<irfansyah@t...> wrote:
> I am not familiar with solid state relays. Btw, which is 
> more important: current or voltage? I mean, what are the 
> requirements in order to close a relay? Enough voltage? or 
> enough current? As far as i know, if i want to buy  a 
> relay at my favorite store, they will ask: how many volts? 
> My point is, is there enough voltage to turn on your 
> relay? In your circuit, the relay gets less than 5 volts.
> 
> And does anyone know the resistance of a relay?
> 
> Thanks.
> Irfan.

Solid state relays are a fixed device with many variations.  some are 
DC output, others are AC output and BOTH require a load to operate.  
you cannot test one with a meter, but you MUST have it loaded to test.

As far as the inputs, logic, TTL, serial, AC, line voltage... you 
name it.  the idea is that it offers isolation between the signal and 
the load and that it is silicon in that it does not have mechanical 
limitations on wear of the parts and it can operate FAST.

Here is a link to Aromat / NAIS that is a brand name relay company.  
this will offer some of the types of specs for solid state relays.
http://www.aromat.com/pcsd/webpages/ssr_h.htm
http://www.aromat.com/pcsd/ssrtec.pdf

Dave

Re: Need Help with a circuit - DIP SSR

2004-08-12 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, "Daniel Boyer" <dpboyer@d...> wrote:
> 
> > There isn't one. They are just IRleds, so as long as you have 
> > 2-3 volts across them, you'll be fine.  
> 
> Will 5V across them be okay, or do I need to do something to bring 
my 5v
> down to around 3 just for the relay?

http://www.dpicts.com/Laa110.pdf 


Now that you have defined the part, it is easy to layout a schematic.

As you guys noticed, there are almost 50 responses to this, with one 
common subject line.   This makes it hard to search the archives for 
the best answers.

To review, a mechanical relay with coil will spike back when the coil 
collapses and that spike will fry the driving circuit.  A ULN2803 (8 
channle) darlington or TIP120 (single channel) darlington will have 
an internal doide to protect themselves.  you can use other 
transistors or mosfets, but either add the protection diode or make 
sure the chip has it internally.

the diode shorts the reverse voltae that the coil releases when the 
magnetic field collapses.

Often, one uses a resistor from the pin of the uC to a transistor to 
drive the transistor.  that transistor would then control the relay 
coil.   A pull-down resistor would be needed to make sure the 
transistor were off hard and not potentially floating.

As for the SSR in question, If it is driving an external relay, you 
need a diode on THAT relay to protect the SSR !

Hope this addes some clarity and offers some help.

Dave

Re: Need Help with a circuit- ssr as opto

2004-08-12 by Dave Mucha

--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
> At 01:36 PM 8/12/2004, Bruce Parham wrote:
> 
> 
> >WTF! Who said anything about running it at 50 mA? I was using 10 
mA as the example, that's 2x minimum for
> >the LED and in limit for the AVR...
> 
> The guaranteed full on current is 50mA
> 
> Opto couplers typically have about a 10-1 spread in current 
transfer ratio, so the guaranteed on of 5 - 50mA is not surprising. 

> In the end, this SSR is a kick-ass optocoupler.


At $5.00 each it better be !

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

At 12:58 PM 8/12/2004, Daniel Boyer wrote:


>Final update I just rewired the circuit as per everyone's instructions
>and it works perfectly!  Thanks to everyone,
>Daniel
>KC9DAG

Post your final! :)

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

>
>Looking at Pg 1 of the data sheet, we have just the LED for input. On Pg 2,
>under Electrical Characteristics, we need 5 to 50 mA for input control. The
>AVR will source 10 mA at an output voltage of 4.3 V when operated @ 5V. The 
>LED will drop 1.2 V @ 5 mA. Let's assume 1.3 V @ 10 mA: 4.3V - 1.3V = 3.0V.
>Since R = E/I (Ohm's Law), R = 3.0V / 0.01A = 300 Ohm. So put a 300 ohm
>resistor in series with the input LED and it should work. 

What? Not in my world.  IF the pin would drive 50mA at all, then you'd be looking at nearly zero ohms between the AVR pin, and the SSR diode.

You are assuming that the output pin will hold up 4.3V under a 50mA load. 
It won't.

The output pin of the AVR is driven by a small mosfet, sort of a non-linear resistor. When the spec says that it will output 10mA at 4.3V does NOT mean that it will output 50mA in any case, from a 5V supply.  

What they ARE saying, is that if you pull 10mA from an AVR I/O pin set as output high, that it's output voltage will not drop below 4.3V under the specified conditions.

Taking that spec sheet parameter, we get 0.7V drop at 10mA or roughly 70 ohms for the internal mosfet AT THIS CURRENT AND VCC.  Assuming it is linear and resistive, then we might think that we could get a maximum of 70mA into a short to ground, or 52mA into the SSR's LED, with no current limiting resistor at all.  But, that's not how I/O pins act. At higher currents the output mosfet gets hot, and the equivalent resistor value increases.

Also, there's a maximum per-pin output current spec, that forbids anything like 50mA.

So, in order to drive the SSR's led with at least 50mA, you'll need an NPN, like a 2N3904, and a series resistor. (you can also do it with a PNP, but upside down)  
The resistor should be calculated from (VCC-(Vledmax+VCEmax)/Iledmax  Vledmax at about 1.3V and VCEmax of about 0.6V, without running to the data sheets, so 3.1V available to drive the LED, and Iledmax of 50mA gives us a series resistor of 62 ohms. Conveniently, a standard value.

You'll need a series resistor from the AVR pin into the base pin of the transistor, which you can calculate, but is hardly worth it.  If you figure a gain of 100 in the transistor, then you need 500uA into the base to turn it on. (Iout/Gain) So, since the current is very low here, we can figure the AVR to source 5V, and the BE junction to be about 1V, so 4V/0.0005A = 8k maximum resistor.  I'd use a 4.7k, or a 2.2k.

Don't forget the resistor to ground on the AVR output pin though. 10k would work, but lower is better. When the AVR is in reset, that pin is an input and very high impedance. The component leads connected to the transistor act as antennas, and the base diode makes a decent detector, turning RF energy into base current. 

Here, you analyze the other case, minimum current that will keep the SSR off, being about 400uA so a base current of 4uA induced into the transistor from RF energy, COULD turn your relay on.  Wether this is a real problem for you, I can't say, but I think the extra $0.01 for the turn-off resistor is a good investment. 

There's also leakage current through the transistor to consider, but it will be low enough not to cause you any problems in this case.

This is the difference between a hobby project that may or may not work for you, and a production design, where we expect to make 10,000 of them over a several year period, with different batches of parts, and have all of them work.

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Bruce Parham

WTF! Who said anything about running it at 50 mA? I was using 10 mA as the example, that's 2x minimum for
the LED and in limit for the AVR...

Bruce

Dave VanHorn wrote:
Show quoted textHide quoted text
> 
> >
> >Looking at Pg 1 of the data sheet, we have just the LED for input. On Pg 2,
> >under Electrical Characteristics, we need 5 to 50 mA for input control. The
> >AVR will source 10 mA at an output voltage of 4.3 V when operated @ 5V. The
> >LED will drop 1.2 V @ 5 mA. Let's assume 1.3 V @ 10 mA: 4.3V - 1.3V = 3.0V.
> >Since R = E/I (Ohm's Law), R = 3.0V / 0.01A = 300 Ohm. So put a 300 ohm
> >resistor in series with the input LED and it should work.
> 
> What? Not in my world.  IF the pin would drive 50mA at all, then you'd be looking at nearly zero ohms between the AVR pin, and the SSR diode.
> 
> You are assuming that the output pin will hold up 4.3V under a 50mA load.
> It won't.
> 
> The output pin of the AVR is driven by a small mosfet, sort of a non-linear resistor. When the spec says that it will output 10mA at 4.3V does NOT mean that it will output 50mA in any case, from a 5V supply.
> 
> What they ARE saying, is that if you pull 10mA from an AVR I/O pin set as output high, that it's output voltage will not drop below 4.3V under the specified conditions.
> 
> Taking that spec sheet parameter, we get 0.7V drop at 10mA or roughly 70 ohms for the internal mosfet AT THIS CURRENT AND VCC.  Assuming it is linear and resistive, then we might think that we could get a maximum of 70mA into a short to ground, or 52mA into the SSR's LED, with no current limiting resistor at all.  But, that's not how I/O pins act. At higher currents the output mosfet gets hot, and the equivalent resistor value increases.
> 
> Also, there's a maximum per-pin output current spec, that forbids anything like 50mA.
> 
> So, in order to drive the SSR's led with at least 50mA, you'll need an NPN, like a 2N3904, and a series resistor. (you can also do it with a PNP, but upside down)
> The resistor should be calculated from (VCC-(Vledmax+VCEmax)/Iledmax  Vledmax at about 1.3V and VCEmax of about 0.6V, without running to the data sheets, so 3.1V available to drive the LED, and Iledmax of 50mA gives us a series resistor of 62 ohms. Conveniently, a standard value.
> 
> You'll need a series resistor from the AVR pin into the base pin of the transistor, which you can calculate, but is hardly worth it.  If you figure a gain of 100 in the transistor, then you need 500uA into the base to turn it on. (Iout/Gain) So, since the current is very low here, we can figure the AVR to source 5V, and the BE junction to be about 1V, so 4V/0.0005A = 8k maximum resistor.  I'd use a 4.7k, or a 2.2k.
> 
> Don't forget the resistor to ground on the AVR output pin though. 10k would work, but lower is better. When the AVR is in reset, that pin is an input and very high impedance. The component leads connected to the transistor act as antennas, and the base diode makes a decent detector, turning RF energy into base current.
> 
> Here, you analyze the other case, minimum current that will keep the SSR off, being about 400uA so a base current of 4uA induced into the transistor from RF energy, COULD turn your relay on.  Wether this is a real problem for you, I can't say, but I think the extra $0.01 for the turn-off resistor is a good investment.
> 
> There's also leakage current through the transistor to consider, but it will be low enough not to cause you any problems in this case.
> 
> This is the difference between a hobby project that may or may not work for you, and a production design, where we expect to make 10,000 of them over a several year period, with different batches of parts, and have all of them work.
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
>

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Mike Murphree

joseph torelli said:
> I don't know if this will fit but google "uln28003a". This is a relay
> driver chip. I has protection diodes built in. It can drive 8 relays or
> you can parallel the output for higher current relays. You can control
> it right from the output pins of the micro.

I've used those before.  You have one too many zeros in the part number
though.  It is ULN2803A instead.  Pay note that these are darlington
devices and there may be a little higher voltage from the output in the
clamped state than a single transistor driver will have.

Mike

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-12 by Dave VanHorn

At 01:36 PM 8/12/2004, Bruce Parham wrote:


>WTF! Who said anything about running it at 50 mA? I was using 10 mA as the example, that's 2x minimum for
>the LED and in limit for the AVR...

The guaranteed full on current is 50mA

Opto couplers typically have about a 10-1 spread in current transfer ratio, so the guaranteed on of 5 - 50mA is not surprising. In the end, this SSR is a kick-ass optocoupler.

Re: [AVR-Chat] Re: Need Help with a circuit SSR

2004-08-12 by Dave VanHorn

>
>One thing I didn't seem mentioned is that most Solid State Relays,  
>(SSR) are most often strictly and only AC output. 

True. Triac outputs that won't turn off on a DC load, without special measures.

> Also the inputs  are very specific.  if it is logic level then only the 5V DC is 
>needed and the rest of the driving circuit is not needed as it would 
>be driving an optolator inside the SSR.
>
>In other words, get the data sheet on the SSR and make sure you are 
>following it.

Always an excellent idea! :)

SSRs

2004-08-12 by Dave VanHorn

>
>> In the end, this SSR is a kick-ass optocoupler.
>
>At $5.00 each it better be !

They do tend to be pricey.

I did a fun circuit once, with a dual-optoisolator, and an opamp, to implement a modem hybrid without any transformer, and full isolation to the phone line. 

Within limits, it works pretty well.  The audio goes through the opamp, driving current into both LEDs, with the opamp's feedback taken from one output transistor. The other transistor is sitting in the phone line circuit.  If Q1 is passing 5mA, then Q2 is usually pretty darned close, in a dual opto, since they are made at the same time.  You have to be careful that they are a dual chip, and not two single dies in a dual package though, as the matching then is back to the 10/1 sort of range.

OT - Modem DAAs (was Re: SSRs)

2004-08-12 by Graham Davies

--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:

> ... dual-optoisolator, and an opamp,
> to implement a modem hybrid without
> any transformer ...

What happened to the DC wetting current of the line?  Was that 
carried over the isolation barrier to?  Was the op-amp circuit line-
powered? What bit rate or modem standard did this work with?

I worked on this kind of stuff too. To avoid the non-linearity of wet 
transformers I picked off the wetting current in an active circuit 
and AC-coupled to a dry transformer. Expensive! Now, years later, I'm 
working on SONET. 622 Mbit/s. Hey, that's optically isolated too!

Graham.

Re: [AVR-Chat] OT - Modem DAAs (was Re: SSRs)

2004-08-12 by Dave VanHorn

At 05:15 PM 8/12/2004, Graham Davies wrote:

>--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
>
>> ... dual-optoisolator, and an opamp,
>> to implement a modem hybrid without
>> any transformer ...
>
>What happened to the DC wetting current of the line?  Was that 
>carried over the isolation barrier to?  Was the op-amp circuit line-
>powered? What bit rate or modem standard did this work with?

212a, we put the loop current through another circuit, a constant current ckt so it had nearly infinite impedance.

>I worked on this kind of stuff too. To avoid the non-linearity of wet 
>transformers I picked off the wetting current in an active circuit 
>and AC-coupled to a dry transformer. Expensive! Now, years later, I'm 
>working on SONET. 622 Mbit/s. Hey, that's optically isolated too!

Sounds like fun!

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-13 by Daniel Boyer

> 
> Post your final! :)

Okay, the final schematic is here:
http://www.dpicts.com/Tiny15L-LaserDetector-Final.jpg

You will notice a segment on the right that is in a pink box... I have
not added this to the circuit yet (the circuit is working great without
it), and I wanted to check with you guys as to whether or not it will
work correctly with this addition.  The point of the addition BTW is to
aid in aiming the laser; when the laser hits the photodiode I want this
LED to light up so that I know I have a good aim (I have learned today
that a laser is a lot more finicky to aim than a simple IR LED)... If
you haven't noticed yet, I am much more of a programer than an
electronics person (actually I am a biologist with way too many
hobbies).
Thanks,
Daniel
KC9DAG

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-13 by MuRaT KaRaDeNiZ

I think you want to say "common emitter".

+ sometimes a snubber circuitry is also added, to
solve EMI/EMC problems.

MuratK

--- Paul Maddox <P.Maddox@signal.qinetiq.com> wrote:

> Daniel,
> 
> > oops, posted the wrong schematic... mine was still
> wrong, but I did
> > have the transistor...  The one I ment to post is
> > http://www.dpicts.com/Tiny15L-LaserDetector-2.jpg 
> which has the
> > NPN, but I hooked up the transistor the way it is
> shown on page 3-2
> > of the STK500 manual...
> 
> ok, don't do this, you'll still be trying to sink
> the current from the relay
> through the AVR.
> 
> Look for an emitter follower schematic.
> 
> Paul
> 
> 



		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

Re: [AVR-Chat] Crystal ID

2004-08-14 by erikc

----- Original Message -----
Show quoted textHide quoted text
From: "Daniel Boyer" <dpboyer@dpicts.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, August 14, 2004 03:39
Subject: [AVR-Chat] Crystal ID


> I was going through and organizing my junk boxes and I
found 5 crystals
> labled 511G 441Z   I did a quick google and came up with
nothing...
> Anyone have any clue what freq. these might be or an easy
way to tell?
> Thanks,
> Daniel

If you have a frequency counter or a scope, then wire up a
simple oscillator and measure the frequency.  The markings
themselves suggest something made to order.

Erikc

"Life's journey is not to arrive at the grave safely  in a
well preserved body, but rather to skid in sideways, totally
worn out, shouting "...holy shit...what a ride!"

Crystal ID

2004-08-14 by Daniel Boyer

I was going through and organizing my junk boxes and I found 5 crystals
labled 511G 441Z   I did a quick google and came up with nothing...
Anyone have any clue what freq. these might be or an easy way to tell?
Thanks,
Daniel

Re: [AVR-Chat] Crystal ID

2004-08-14 by Dave VanHorn

At 09:39 PM 8/13/2004, Daniel Boyer wrote:

>I was going through and organizing my junk boxes and I found 5 crystals
>labled 511G 441Z   I did a quick google and came up with nothing...
>Anyone have any clue what freq. these might be or an easy way to tell?
>Thanks,
>Daniel

Drop them in an oscillator circuit and see what happens. 
There aren't all that many options, if it runs at 4.001 MHz, I'd guess it's a 4MHz rock that wants a bit more C.

Re: [AVR-Chat] SSRs

2004-08-14 by Les Grant

This sounds like an IL300... ;-)
Used to be made by Siemens but I think they sold it to Vishay...

Les.

On 12 Aug 2004 at 14:51, Dave VanHorn wrote:

> 
> >
> >> In the end, this SSR is a kick-ass optocoupler.
> >
> >At $5.00 each it better be !
> 
> They do tend to be pricey.
> 
> I did a fun circuit once, with a dual-optoisolator, and an opamp, to
> implement a modem hybrid without any transformer, and full isolation
> to the phone line. 
> 
> Within limits, it works pretty well.  The audio goes through the
> opamp, driving current into both LEDs, with the opamp's feedback taken
> from one output transistor. The other transistor is sitting in the
> phone line circuit.  If Q1 is passing 5mA, then Q2
>  is usually pretty darned close, in a dual opto, since they are made
>  at the same time.  You have to be careful that they are a dual chip,
>  and not two single dies in a dual package though, as the matching
>  then is back to the 10/1 sort of range.
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Make a clean sweep of pop-up ads. Yahoo!
> Companion Toolbar. Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~-
> > 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-------------------------------------------------------------
Les Grant. VK2KYJ.      Phone: 02 9896 7150 Fax: 02 9896 7153
Grantronics Pty Ltd     Int'l: +612 9896 7150, +612 9896 7153
ABN 46 070 123 643
PO Box 275, Wentworthville. NSW. 2145. Australia.            
http://www.grantronics.com.au  mailto:info@grantronics.com.au
Microcontroller Hardware and Software development:  Atmel AVR
8051 derivatives, 80C196 family, C, ASM, Digital and analogue 
-------------------------------------------------------------
Australian distributor for:
o Dunfield Development Systems low cost development tools
o ImageCraft AVR and Motorola Windows-hosted C compilers
o ELNEC Device Programmers (E)EPROMs, Flash, Micros, PLDs
o CAN-BUS Hardware and Software from LAWICEL
o Logical Systems Programming, Prototyping & Production Adaptors
-------------------------------------------------------------

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-14 by Les Grant

Hi Dave,

On 12 Aug 2004 at 13:42, Dave VanHorn wrote:

> At 01:36 PM 8/12/2004, Bruce Parham wrote:
> 
> 
> >WTF! Who said anything about running it at 50 mA? I was using 10 mA
> >as the example, that's 2x minimum for the LED and in limit for the
> >AVR...
> 
> The guaranteed full on current is 50mA

I believe the data sheet is trying to say that the minimum required 
input current for 120mA output current at 25deg C is 5mA. I also 
believe that it is confusing to include the max figure of 50mA which 
is also the absolute maximum continuous input current. If you check 
the graphs on page 3, the typical switch on input current is less 
than 2mA.

I also note in the fine print "If both poles operate load current 
must be derated so as not to exceed the package power dissipation 
valve." I guess the "dissipation valve" is where the smoke comes out 
when you exceed the ratings! ;-)

Cheers,
Les Grant.

-------------------------------------------------------------
Les Grant. VK2KYJ.      Phone: 02 9896 7150 Fax: 02 9896 7153
Grantronics Pty Ltd     Int'l: +612 9896 7150, +612 9896 7153
ABN 46 070 123 643
PO Box 275, Wentworthville. NSW. 2145. Australia.            
http://www.grantronics.com.au  mailto:info@grantronics.com.au
Microcontroller Hardware and Software development:  Atmel AVR
8051 derivatives, 80C196 family, C, ASM, Digital and analogue 
-------------------------------------------------------------
Australian distributor for:
o Dunfield Development Systems low cost development tools
o ImageCraft AVR and Motorola Windows-hosted C compilers
o ELNEC Device Programmers (E)EPROMs, Flash, Micros, PLDs
o CAN-BUS Hardware and Software from LAWICEL
o Logical Systems Programming, Prototyping & Production Adaptors
-------------------------------------------------------------

Re: [AVR-Chat] Re: Need Help with a circuit

2004-08-14 by Dave VanHorn

At 12:59 AM 8/14/2004, Les Grant wrote:

>Hi Dave,
>
>On 12 Aug 2004 at 13:42, Dave VanHorn wrote:
>
>> At 01:36 PM 8/12/2004, Bruce Parham wrote:
>> 
>> 
>> >WTF! Who said anything about running it at 50 mA? I was using 10 mA
>> >as the example, that's 2x minimum for the LED and in limit for the
>> >AVR...
>> 
>> The guaranteed full on current is 50mA
>
>I believe the data sheet is trying to say that the minimum required 
>input current for 120mA output current at 25deg C is 5mA. I also 
>believe that it is confusing to include the max figure of 50mA which 
>is also the absolute maximum continuous input current. If you check 
>the graphs on page 3, the typical switch on input current is less 
>than 2mA.

Ah.. Aren't data sheets fun! :)

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-14 by Les Grant

Hi Daniel,

The photodiode probably won't be able to source/sink enough current 
for your LED. Use a spare output on the micro to drive the LED (with 
a series resistor, of course ;-) ).

Regards,
Les.

On 12 Aug 2004 at 21:57, Daniel Boyer wrote:

> 
> > 
> > Post your final! :)
> 
> Okay, the final schematic is here:
> http://www.dpicts.com/Tiny15L-LaserDetector-Final.jpg
> 
> You will notice a segment on the right that is in a pink box... I have
> not added this to the circuit yet (the circuit is working great
> without it), and I wanted to check with you guys as to whether or not
> it will work correctly with this addition.  The point of the addition
> BTW is to aid in aiming the laser; when the laser hits the photodiode
> I want this LED to light up so that I know I have a good aim (I have
> learned today that a laser is a lot more finicky to aim than a simple
> IR LED)... If you haven't noticed yet, I am much more of a programer
> than an electronics person (actually I am a biologist with way too
> many hobbies). Thanks, Daniel KC9DAG
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Yahoo! Domains - Claim yours for only $14.70
> http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~-
> > 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-------------------------------------------------------------
Les Grant. VK2KYJ.      Phone: 02 9896 7150 Fax: 02 9896 7153
Grantronics Pty Ltd     Int'l: +612 9896 7150, +612 9896 7153
ABN 46 070 123 643
PO Box 275, Wentworthville. NSW. 2145. Australia.            
http://www.grantronics.com.au  mailto:info@grantronics.com.au
Microcontroller Hardware and Software development:  Atmel AVR
8051 derivatives, 80C196 family, C, ASM, Digital and analogue 
-------------------------------------------------------------
Australian distributor for:
o Dunfield Development Systems low cost development tools
o ImageCraft AVR and Motorola Windows-hosted C compilers
o ELNEC Device Programmers (E)EPROMs, Flash, Micros, PLDs
o CAN-BUS Hardware and Software from LAWICEL
o Logical Systems Programming, Prototyping & Production Adaptors
-------------------------------------------------------------

RE: [AVR-Chat] Re: Need Help with a circuit

2004-08-14 by Dave VanHorn

At 01:04 AM 8/14/2004, Les Grant wrote:

>Hi Daniel,
>
>The photodiode probably won't be able to source/sink enough current 
>for your LED. Use a spare output on the micro to drive the LED (with 
>a series resistor, of course ;-) ).

Drop the led in the base drive for the transistor that kicks the SSR.
You don't need all that voltage anyway.
:)

Unless you want to light the led at some time when the relay isn't activated.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.