Stepper motor controlled by small Pic 12Fxxx ?


+ Reply to Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2022
    Posts
    54

    Default Stepper motor controlled by small Pic 12Fxxx ?

    Hello,

    I would like to order a stepper motor with a small DIL8 Pic (12F 683-675-629) followed by an L293D Dual H Bridge.

    The sequences to be output are (in decimal): 9,5,6,10.

    This Nibble must appear on ports GP0-GP1-GP2 and... GP4.

    Not on GP3, which is only an input and reads the voltage from a potentiometer!

    What "simple command" can I use to output my nibble on the 4 output ports mentioned above (GP0-1-2-4) without interfering with the GP3 input port?

    With a Pic that had 4 contiguous outputs (which is not the case here), we would simply have written something like PORT A = 5 ...

    Thanks for your help.

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Stepper motor controlled by small Pic 12Fxxx ?

    Same here. If pin is input, writing to GPIO does nothing for that pin.
    So just make binary combination that is disired, and write to GPIO.

  3. #3
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Stepper motor controlled by small Pic 12Fxxx ?

    Thanks for your quick reply Pedga089.
    OK, thanks, I note that writing to the GPIO register will not affect the GP3 input.
    So the command in Basic is as easy as I was declining in my request. Great )
    Have a nice day

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


    Did you find this post helpful? Yes | No

    Default Re: Stepper motor controlled by small Pic 12Fxxx ?

    Salut à toi, infâme Zorglub ...

    tu devrais trouver ton bonheur ici : http://jpparisy.free.fr/schemas_bateaux/tutorial1.html

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

  5. #5
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Stepper motor controlled by small Pic 12Fxxx ?

    Salut à toi machiavélique AceTronics
    Je vois que tu connais tes Classiques )
    Je vais aller revoir ton lien très intéressant.
    Les codes sont cependant en C me semble t-il...
    Bonne journée à toi.

Similar Threads

  1. PIC 16F877A circuit for stepper motor...
    By kristina in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th June 2012, 08:13
  2. Replies: 1
    Last Post: - 15th December 2010, 14:30
  3. Controlling stepper motor with PIC
    By The Master in forum Off Topic
    Replies: 3
    Last Post: - 1st July 2008, 10:21
  4. Replies: 1
    Last Post: - 1st October 2006, 05:59
  5. Stepper motor control using PIC 16F88
    By tonykeys in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd February 2006, 20:09

Members who have read this thread : 14

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