+ Post New Thread
Results 1 to 10 of 10
  1. #1
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    How to drive vending Machine motor through MOSFET Driver Module?

    My vending Machine works with the Arduino and relay module to drive the motor. But relay output is not reliable and gives random switching sometimes. I am using 4 Channel relay Module. So, I want to replace relay Module to IRF520 Mosfet Module. But The main problem is, With Relay Module- Motor roates and comes at own its home location everytime when motor runs but............ With Mosfet module- Motor does not come at its own home location, everytime it changes its own position. I do know where is the issue. I have attached the block diagram of both the circuits with relay and with MOSFET. I have attached the Motor photo which I am using.Click image for larger version. 

Name:	IMG_20190808_181941-min.jpg 
Views:	4 
Size:	476.1 KB 
ID:	154872Click image for larger version. 

Name:	IMG_20190808_182539-min.jpg 
Views:	7 
Size:	473.8 KB 
ID:	154873Click image for larger version. 

Name:	hKIsc.jpg 
Views:	9 
Size:	18.2 KB 
ID:	154874

  2. #2
    Super Moderator
    Points: 81,014, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,281
    Helped
    4435 / 4435
    Points
    81,014
    Level
    69

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    A guess:

    the relay does two things - enables power to the motor AND it shorts out the motor when the power is off.
    A short across the motor will work like a brake so it stops more precisely. To do it with a MOSFET isn't difficult, you need a half-bridge driver, basically another MOSFET across the motor that operates in the opposite sense to the one enabling the power but with a tiny delay between them so they can't both conduct at the same time.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Hey

    "basically another MOSFET across the motor that operates in the opposite sense to the one enabling the power but with a tiny delay between them so they can't both conduct at the same time"

    Can you elaborate this with the circuit or anything?



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 81,014, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,281
    Helped
    4435 / 4435
    Points
    81,014
    Level
    69

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Something like this. The NPN transistors can be small signal types (2N2222 etc), they invert and level shift the gate voltages.
    Sorry for the sketch!

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  5. #5
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Quote Originally Posted by betwixt View Post
    Something like this. The NPN transistors can be small signal types (2N2222 etc), they invert and level shift the gate voltages.
    Sorry for the sketch!

    Brian.
    But Motor has 6 connections, What are the connection has to give to the motor?



  6. #6
    Super Moderator
    Points: 81,014, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,281
    Helped
    4435 / 4435
    Points
    81,014
    Level
    69

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Your photograph only shows two connections to the motor, the red wire and the black wire.

    It isn't clear what the other connections are but I doubt they are going to the motor. Possibly they connect to limit switches but it isn't possible to tell from that view.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  7. #7
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Click image for larger version. 

Name:	qRRSp.jpg 
Views:	2 
Size:	106.3 KB 
ID:	154943

    See there are six pins and some pins are connected to the switch.
    Six pins Nomenclature are:
    1. Gnd
    2. Common of switch
    3. 12V supply
    4. 12V supply
    5. NC of switch
    6. NO of switch

    If I give input on Gnd and 12V the Motor run continuously.
    And with relay when I give input on NO through relay by shorting C and NC of relay, then it rotates as per my code.
    Now, what to do?



  8. #8
    Super Moderator
    Points: 81,014, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,281
    Helped
    4435 / 4435
    Points
    81,014
    Level
    69

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    OK, so the motor has TWO connections, not six and the 'relay' is actually a switch is presumably driven by the mechanism.
    What we don't know is how the switch operates with respect to the mechanism position or what the motor red and black wires are connected to.

    I would guess it works like this: without power, the switch NC connects the 12V input to the motor. When power is applied, the motor rotates the mechanism until it reaches its end position, the switch NC then opens and stops the motor. When the 12V is then applied to the NO connection the motor continues back to it 'home' position where the switch again operates to stop it until the next cycle is started.

    Can you see where the motor wires go to on the board?

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  9. #9
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    There are two wires which is connected with the motor.
    Red and black wire.
    Red wire is connected to the positive side of the diode and black wire is connected to the negative side of the diode.



    •   AltAdvertisement

        
       

  10. #10
    Newbie level 6
    Points: 149, Level: 1

    Join Date
    Apr 2019
    Posts
    13
    Helped
    0 / 0
    Points
    149
    Level
    1

    Re: How to drive vending Machine motor through MOSFET Driver Module?

    Motor has two wire which is connected to positive and negative side of the diode.

    And one more thing, Common of switch is connected to Gnd in this Motor.
    And I want to run this motor through mosfet driver module.Click image for larger version. 

Name:	mosfet.jpg 
Views:	0 
Size:	250.8 KB 
ID:	154944



--[[ ]]--