How to reverse polarity on output pulse??


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378

    Cool How to reverse polarity on output pulse??

    I am using a 16F690 PIC to control a latching solenoid on a valve. The latching solenoid requires a pulse with positive polarity to open and another pulse of negative polarity to close. Generating the postive polarity pulse at the output pin of the 16F690 is no problem, but I am not grasping how to generate a negative polarity pulse at a pin output. Can anyone advise me or refer me to an explanation? Thanks!

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    If solenoid current is within pic capability (thing that I doubt) you can use two outputs pins to drive your solenoids. Reversing polarity means having pin 1 high and pin 2 low or pin 1 low and pin 2 high.
    If solenoid current is higer then you must use a mosfet Hbridge.

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default H-bridge

    Use a H-Bridge...(MCP1404 or TC4424 by example)

    ...take a look at http://www.robotroom.com/HBridge.html (you have to add some charge capacitors also)

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,613


    Did you find this post helpful? Yes | No

    Lightbulb Hard or soft way ???

    Hi,

    Either way you do it ... it will use 2 output pins ...

    Or,or,or ... if you use some kind of twin monostable multivibrator on one output, like the ones used to extend or retract the cars radio antennas ... that we found some car generations ago !!!

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. Synchronous pulses
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 18th October 2009, 16:32
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  3. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  4. Replies: 3
    Last Post: - 13th September 2008, 17:40
  5. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46

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