Basically, you need to put a resistor inline with your port pin to limit current to the LED input of the SSR (solid state relay). You can get by with 5 or 10 mA nicely :) Gotta figure your voltage drop across the port and also the LED in the SSR which is about 1.2 volts forward drop. Then calculate a resistor for the remaining voltage to limit to 5 or 10 mA. Normally, I connect my LEDs to Vcc and sink to the port. Barry AKA JoeLlama -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of John Samperi Sent: Sunday, February 25, 2007 5:43 PM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] attiny12 At 02:15 AM 26/02/2007, you wrote: >Can somebody tell me if I can drive a solid state relay directly from >the tiny12 or I need a transistor. The i/o pins can supposedly drive 20mA, how much current does the solid state relay need to work? Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics. <mailto:john%40ampertronics.com.au> com.au Website http://www.ampertro <http://www.ampertronics.com.au> nics.com.au *Electronic Design * Custom Products * Contract Assembly ******************************************************** [Non-text portions of this message have been removed]
Message
RE: [AVR-Chat] attiny12
2007-02-26 by AVR Development
Attachments
- No local attachments were found for this message.