Dare2Tech
  • Home
    • Electronics
    • About
    • Contact
  • Electronics
    • PIC32 Topics
    • Transistors
  • About
  • Contact
  • Home
    • Electronics
    • About
    • Contact
  • Electronics
    • PIC32 Topics
    • Transistors
  • About
  • Contact

PIC32 using Transistor as Switch LED

6/30/2015

0 Comments

 
Picture
Click to enlarge image
A microcontroller pin has a limited amount of current you can supply which is typically enough to light up one LED at a time. For instance the PIC32MX250F128B microcontroller the absolute maximum current drawn by any I/O pin is 15mA referencing the datasheet. By using a transistor you can increase this amount significantly, the PN2222A is capable of sinking up to 450mA and the IRLU024NPBF is capable of sinking 15A. You can even control higher voltages then your microcontroller pin could normally handle as well.

This example will demonstrate using two different transistors to switch on and off several LED's from one I/O pin. This example is sinking around 200mA of current for the eight LED's connected to each transistor. The setup used in this demo draws under 6mA of current from the microcontroller pin when using a PN2222A transistor and basically 0mA using a IRLU024NPBF. I purchased the transistors from Tayda Electronics, making the  IRLU024NPBF sixty-five cents and the PN2222A five cents each.

Items used:
1   PIC32MX250F128B microcontroller board
9   White LED's with 220ohm resistors
2   830 point Breadboards
2   470 OHM resistor (one for each transistor)
1   PN2222A transistor
1   IRLU024NPBF transistor
Some black 22AWG solid wire
Some red 22AWG solid wire
A few jumper wires

PN2222A pinout photo can be found here:
http://bit.ly/1C6FxQz

IRLU024NPBF pinout photo can be found here:
http://bit.ly/1eYSJg0

See the video below for a demo of it being controlled by a PIC32 microcontroller and a simplified version of the circuit schematic connections to each of the different transistors used.

Direct video link: https://youtu.be/6XEnEG-1PdQ
Disclaimer - About Page

0 Comments

tip120 transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the TIP120 transistor using a transistor tester.
tip120 transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

PN2222A transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the PN2222A transistor using a transistor tester.
PN2222A transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

IRLU024NPBF transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the IRLU024NPBF transistor using a transistor tester.
IRLU024NPBF transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

IRF520N TRANSISTOR PINOUT 

5/29/2015

0 Comments

 
This is the pinout for the IRF520N transistor using a transistor tester.
IRF520N TRANSISTOR PINOUT
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

    Author

    I'm a Computer Engineer with passion for hardware & software.

    Categories

    All
    PIC32
    Transistors

    Archives

    August 2015
    June 2015
    May 2015

    RSS Feed

Electronics
About
Contact
Mobile Site