turning Motor left & right using pic Help plz


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2016
    Posts
    4

    Default turning Motor left & right using pic Help plz

    hello guys
    im designing something like a washer machine which i need to run the motor right for 5 seconds then left for 5 seconds for hundreds of times
    any idea plz to do that

    thx
    John

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: turning Motor left & right using pic Help plz

    Sure, several but which one to use depends on the specifics - as always.

    1) Use a dual supply setup with and connect one side of the motor to GND, use relays or transistors to connect either +xxV or -xxV to other terminal of the motor. Drive the relays or the transitors from the PIC.

    2) Use a relay to switch Power to the motor and use another, double pole double throw, relay to switch the polarity of the motor.

    3) Use a H-bridge constructed of BJTs, MOSFETs or relays.

    4) Use an off the shelf motor drive from AMC, Kollmorgen or whatever.

    For the DIY solutions number (3) is the most flexible but also the most complicated one. Depending on the specifications of the motor an off the shelf H-bridge driver IC can possibly be used.

    /Henrik.

  3. #3
    Join Date
    Mar 2016
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: turning Motor left & right using pic Help plz

    Quote Originally Posted by HenrikOlsson View Post
    Sure, several but which one to use depends on the specifics - as always.

    1) Use a dual supply setup with and connect one side of the motor to GND, use relays or transistors to connect either +xxV or -xxV to other terminal of the motor. Drive the relays or the transitors from the PIC.

    2) Use a relay to switch Power to the motor and use another, double pole double throw, relay to switch the polarity of the motor.

    3) Use a H-bridge constructed of BJTs, MOSFETs or relays.

    4) Use an off the shelf motor drive from AMC, Kollmorgen or whatever.

    For the DIY solutions number (3) is the most flexible but also the most complicated one. Depending on the specifications of the motor an off the shelf H-bridge driver IC can possibly be used.

    /Henrik.
    thx Henrick i was looking how to do that in pic basic to drive relays
    its ok now i've used Repeat > Until & it works

    John

  4. #4
    Join Date
    Mar 2004
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: turning Motor left & right using pic Help plz

    I've used this basic circuit for DC motor directional control. But along with what Henrik said, relays probably aren't the best choice for hundreds of times over and over.

    HTH
    Attached Images Attached Images  

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: turning Motor left & right using pic Help plz

    You can also add an N Channel FET in series with the battery return connection from the relays and be able to do PWM for the motor speed.
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. Need guidance with DC motor controller - PWM & H-Bridge
    By rfetech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th November 2010, 03:33
  2. My PIC program won't work! Plz Help?!
    By beckyzammi in forum mel PIC BASIC
    Replies: 2
    Last Post: - 4th March 2010, 18:26
  3. Replies: 11
    Last Post: - 6th November 2008, 10:27
  4. Replies: 1
    Last Post: - 1st October 2006, 05:59
  5. Turning on & off multiple interrupts
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th June 2005, 17:50

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