Getting the correct mA from Pic's Pin


Closed Thread
Results 1 to 6 of 6
  1. #1

    Arrow Getting the correct mA from Pic's Pin

    Good day Picers

    I am powering a RF Module from one of my PIC16F877's PINS.
    The pic's pin only supply 25mA, I need 60mA.

    I have connect the 2N2222A Transistor with a 680 Ohm resistor to my circuit to put the Amps a bit up, but when measuring with my multimeter between the positive and GND of the RF Module, it only supply me with 30mA.

    What size resistor must I use to give me 60mA?

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Question

    Some explanation about your scheme could be Welcome ...

    DOZENS of supply schemes possible !!!

    Alain

  3. #3
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    You could use three pins which you power up together, or that 2N2222 needs to be part of the ground return leg of your module. In other words, connect the Emitter to ground, Base to the PIC pin through a 4.7 K resistor, and the Collector to the ground side of your module. If I were to do it this way, I would put a bypass capacitor of .01 uF across the Emitter and Collector leads. To control the positive rail, the 2222 would be attached to the Base of a 3906 through a 2.2K resistor. The 3906 Base is also connected to it's Emitter through a 10 K resistor. The Emitter of the 3906 goes to the positive rail, and the positive side of the module connects to the 3906 collector. A high on the pin would turn the module on.

    Ron

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    just Bias your base of your 2n2222 and connect the emitter to the ground, and the collector to your gadget...

    You will draw your 60 mils... if you don't, then maybe your gadget does not need 60mils!...

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  5. #5
    @sda's Avatar
    @sda Guest


    Did you find this post helpful? Yes | No

    Default

    Why power the module via its ground pin?
    Not very safe practice.
    AFAIK, the 2N2222 is a NPN device, so you'll have to conect its collector to the power rail, base via a 100r resistor to your output port, and the emitor to your module.
    The output will be (power rail) 5v - 0.7 (transistor drop) = 4.3v



    Cheers sda

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Thank you very much for all the replies!!!

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. Epic Plus Programmer and 8 pin PICs
    By Peaps in forum Off Topic
    Replies: 1
    Last Post: - 25th February 2008, 09:25
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  5. Tx and Rx of Single Pin PIC's
    By Dwayne in forum Code Examples
    Replies: 0
    Last Post: - 26th May 2004, 14:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts