2.2v to 5v


Closed Thread
Results 1 to 8 of 8

Thread: 2.2v to 5v

  1. #1

    Default 2.2v to 5v

    Hello everyone,
    L'm using PIC16F876A to output binary 1 at PORTC.1. My idea is to trigger an electronic doorlock which needs 12v. I used ULN2003A between the PIC and the doorlock, but the output voltage of the PIC (2.2V) of PORTC.1 could not trigger the ULN2003A to output the 12V because it requires input of 5V . Please give me alternative solutions for my purpose.


    Thanks in advance,
    Joe

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Joe

    Say it ain't sooo ... joe ...

    Just add this between the pic out and the '2003 in ...
    the 2003 will easily bear a 12v input voltage ... input current will be as low as 4 mA !

    of course, it will also work with 5v instead of 12 ...

    Alain
    Attached Images Attached Images
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Alain,

    I just want to learn, nothing more.

    If I use BC237 for T1, and apply 3V to J1 input, would that be good enough to trigger BC237?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    let's do some calc to see what happen...

    Ic(T1)=(12/10,000)=1.2mA

    Ib(T1)=(3/22,000)=0.136 mA

    a Hfe minimum will be Ic/Ib = 8.8 to make this work. it's usual and recommended to multiply the minimum Hfe by 5 or 10. so here between 45 and 90 will be the minimum.

    Looking at BC237 datasheet, Hfe min = 120, so it has to work.

    And yes i forgot to add some extra load at first calc. But you get the idea.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by sayzer View Post
    Alain,

    I just want to learn, nothing more.

    If I use BC237 for T1, and apply 3V to J1 input, would that be good enough to trigger BC237?
    Hi, Sayzer

    with those schemes ... all Silicium low power transistors can fit !!! ( just respect hfe > 100 ... and Vce Max > ... 12v , of course )

    if I remember BC 237 is a good equivalent to BC 547 ( I must have a bunch here ... bought in the 70's ! ) BC 307 will replace BC 557 ( care to the pinout ! )

    those kind of transistors , 30 or 40 years ago, were called UNT and UPT ( Universal N and P Transistors ! ) showing a > 100 Hfe, 45 v Vce and 100 mA min Ic ... and Silicium technology !!! ( LOL )

    you could use them for every low power - low frequ applications without any pain.

    Alain

    PS: Hi, Steve ... extra load is 10 mA ... a real feather !!! But only the P transistor has to be strongly saturated ... to keep its Vce sat as low as possible.
    Last edited by Acetronics2; - 29th November 2007 at 13:53.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Thanks Alain and Steve...appreciate the help, I will post back the update as soon I get to work with my project this weekend.


    Regards,
    Joe

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    If I may ask, why don't you use the ULN2001 that has no base resistor and a min Hfe of 1000? You can calculate the external resistor if necessary or connect directly to the low voltage output of the PIC you use.

    No additional transistors. Just a resistor, but I think is not necessary anyway.

    Ioannis

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Hi everyone,
    Again thanks for the reply and the effort for helping me out. Thanks to Alain for his schematic because I got it to work. To be honest I found out later on that by removing the LED between the I/O and ULN2003A gave me the 5v needed for input to the 2003A which solved my problem... anyways I guess I'm learning new things...


    Thanks all,
    Joe

Similar Threads

  1. Generating 5v from 4 batteries
    By BobP in forum Off Topic
    Replies: 10
    Last Post: - 27th December 2009, 09:46
  2. 6V to 5V
    By Fisher in forum Schematics
    Replies: 10
    Last Post: - 11th August 2008, 17:31
  3. 5v and 7v on same board - question
    By mark.oswald in forum Schematics
    Replies: 1
    Last Post: - 28th July 2007, 23:03
  4. One wire serial comms on +5V line
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st May 2005, 12:49
  5. Replies: 5
    Last Post: - 23rd February 2005, 17:35

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