magnet control through PIC


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    West Hollywood, CA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    I understand the 1 of 16 decoder, but I'm lost, those decoders have 4 inputs. Two '154 ICs would require 8 pins from the PIC I'm guessing the 4bit counter resolves this, but I'm not clear how.

    Can you be a bit more specific to my untrained brain?

    Thanks,

    Sterling

  2. #2
    Join Date
    Mar 2007
    Location
    West Hollywood, CA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    What about using a 1-wire network to address each magnet seperately? Maybe that's much more costly. I have no experience with 1 wire networks.

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


    Did you find this post helpful? Yes | No

    Default

    Depending on the wattage of the magnets, there are several ways to control them. Use PWM or maybe even FREQOUT. Connect the mag circuit to you chip with an opto-isolator or drive the mags with a MOSFET or IGBT. There are pros and cons to each though.

    How many more mags than pins? How many mags need to be on at a time? Look at some of the recent post about LEDs, add driver hardware and...
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi SterlingY,

    Don't know your level of expertise, but if it would help, there's a book out for Basic Stamps (these are PIC's) called "The Microcontroller Application Cookbook" that has a chapter on expanding I/O using only a few port pins and it has some code examples. Volume 2 also has some interesting I/O examples. These books are available from www.parallax.com and www.nutsvolts.com and probably from Amazon.com.

    HTH,

    BobK

  5. #5
    Join Date
    Mar 2007
    Location
    West Hollywood, CA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Thanks for the book info. I'll check them out. Can't hurt to have them around.

    As for how many mags to control at once, all of them. I would assume that I have 2 PORTS available for their control.

    -Sterling

  6. #6
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107


    Did you find this post helpful? Yes | No

    Default

    That reminds me of the cemetery joke: How many people are dead in that cemetery? Answer: all of them!

    My idea of using the '154 was that 8 of them could be connected with their inputs in parallel. The enable port on the '154 would be connected to 8 pins on the PIC to select the group of 16 magnets. that leaves 4 pins on the PIC for other control.

    Russ

  7. #7
    Join Date
    Mar 2007
    Location
    West Hollywood, CA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Forgive me for asking this stupid question, but wouldn't that mean that each '154 would be the same as the others: if output 3 is HIGH on one then it is HIGH on the others?

    Another question, which is a better interface I2C or Serial Data? Microchip make a 16 channel port extender in both formats.

    -Sterling
    Last edited by SterlingY; - 19th March 2007 at 03:21.

Similar Threads

  1. DTMF and PIC for Remote Control
    By doggitz in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 30th March 2010, 11:42
  2. Replies: 5
    Last Post: - 12th September 2007, 15:59
  3. Motor Control PLC with a PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 2nd November 2006, 07:59
  4. Pic Control With Software
    By Agent36 in forum General
    Replies: 5
    Last Post: - 18th October 2006, 18:18
  5. Need help on pic to pic flow control (simple problem I think)
    By khufumen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th January 2006, 00:34

Members who have read this thread : 0

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