PBP projects for R/C models


Closed Thread
Results 1 to 40 of 772

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Unhappy Serious hardware problem with PICkit2

    My PICkit 2 PORTB outputs do not consistently pull up the coils in the DPDT relays enough to activate them.

    The 16F887 outputs measure 2.8v to 3v when driving a coil. I did not find mention of this potential problem in the PICkit2 Manual.. Any ideas anyone?

    Is there another Microchip kit that has some output drivers?

    Ken

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    According to the data sheet, the output high voltage is VDD-0.7 (4.3V with 5V supply) when sourcing 3mA. The absolute max. current sourced/sunk by any I/O pin is 25mA. What does your relay require to activate?

  3. #3
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Unhappy You've got it.

    My ZETTLER AZ8222-2C-5DSE spec says:
    Nominal Coil VDC 5 volts
    Coil Resistance 125 ohms
    Must Operate VDC 3.8 volts.

    3.8/125 = 30ma

    One relay works out of six when driven by a PORTB output.

    NUTS!

    Ken

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    The current being drawn by the relays is pulling down the voltage to <3V. You need to use a driver (or low VceSat transistor or logic level MOSFET).

  5. #5
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Keep in mind also that even though each port pin is rated at 25mA maximum, the maximum TOTAL rated current into Vdd or out of Vss is only 95mA.

    So even if your relays only draw 20mA, which is within the limits of each port, you could only run 4 of them at once without exceeding the TOTAL current draw through Vdd, because of the 95mA limit.

    Like RMTEO said... some nice logic level MOSFETS on the low side of your relay coil is what you need now...


    steve

  6. #6
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default I agree about the driver

    Does MICROCHIP make an auxiliary board that contains drivers for the PICkit 2 device? I am not capable of soldering onto that PICkit printed circuit board. I already have a good sized non-solder proto board carrying the four DPDT switches, two proximity sensors and a voltage regulator. I am trying to get this whole thing onto a 1/10 scale radio control car.

    The guy from whom this idea came used a PICAXE.

    Ken

  7. #7
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Question MOSFET suggestion please....

    There are more logic level MOSFET's than Carter has Liver Pills (an expression that easily shows my age).

    What I want to do must be very standard.

    Suggestions?

    Ken

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    http://www.fairchildsemi.com/ds/FD%2FFDD8424H.pdf
    I find these handy. Mouser has them.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 11:26
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

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