CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

simple resistor led question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Nick
Guest







simple resistor led question
PostPosted: Fri Oct 22, 2004 12:32 pm     Reply with quote

I have my pic pin turn on an 1ma LED and a SSR off the same pin, should i put the resistor before the i split the line off to the two different compents? I want to limit the current to each of the compents? My other idea is to just put the resister between the ground of the led and ground of the SSR

btw when I say SSR i mean solid state relay.

Nick
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Fri Oct 22, 2004 12:50 pm     Reply with quote

Your SSR might not like getting anything less than 5 V (or whatever your Vdd is). Run a line from the SSR directly to the PIC. Put the LED and its resistor in parallel with the SSR. I assume this is an indicator LED so that you know when the SSR is active?
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 22, 2004 2:35 pm     Reply with quote

Better check the specs for your SSR. Using a separate resistor for the LED and another for the SSR would be the safest - to use a single resistor you first need to know the forward voltage drop and recommended current of both the SSR and the LED. Running a line directly from the PIC to the SSR will blow the input of the SSR if it is not internally curent limited.
simple resistor led quest
Guest







simple resistor led question
PostPosted: Fri Oct 22, 2004 2:49 pm     Reply with quote

If the spec's read 3~30vdc, the resistor is built in.

Most SSR have built in current limit.

-
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Fri Oct 22, 2004 3:16 pm     Reply with quote

Quote:
If the spec's read 3~30vdc, the resistor is built in.

Most SSR have built in current limit.


Sorry, that's what I was assuming. I just put together a project with a SSR that's driven by 5V, and draws about 40 mA when being driven. I ended up driving through a 2N7000 fet, as that's more current than a PIC pin can source.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group