tagging LED/transistor circuits on outputs to save I/O

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a project w/ a smaller AVR and I need to conserve I/O pins. There are four outputs that will be used to control analog switches. Also there will be an LED corresponding to each output to show if the analog switches are activated. Instead of using eight outputs for the control (4) and LED's (4), is it common practice to tag the LED onto the control outputs on the 'hardware' side using a transistor to drive them right off of the control lines like in the pic attached?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You have some unusual component values.
You really should not put 12V on the Tiny44 VCC pin.

If you just want the LEDs to show the state of the CD4066 active-high control ports, why not wire them directly to the port? i.e. [C] to 1k resistor to anode , cathode to GND.

A 10k resistor is rather weak current for an LED.
The AVR can drive both LED and [C] on 4066.
You don't need a transistor.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
You have some unusual component values
Thanks for the response. The component values aren't necessarily applicable I just through the parts in there to show the layout (I'll update the pic). Good to know the AVR outputs can drive low impedance (obviously if they can drive LED's). I'll also have to look at the datasheet of the switch (C4066 & CD4052's will be used) just to make sure the control input will work w/o having to drive/buffer the LED's w/ the transistors.