Hacking a printers feeder

Hi,
Your motor is;

STD MTR QK1-8963
RC370-KT 47/15375 DV
SMED055729 5

Which googles to something like;

Canon MP240 Printer Motor STD MTR QK1-4637 RS385-ST 51/15155 DV 24 VDC

This is a 24V motor, at 5V it is probably stalled.
This would correlate to the fact that the power supply is 24V

Can you confirm that the motor "runs’ on 5V, but with little torque?

Tom… :slight_smile:

Thanks Tom (and all other)

Yes my current power supply says 5V 10A

If I connect the printers power supply to the breadboard and the arduino will it work given if I fix the mosfet issue.

Also will it endanger the arduino or any other components? Do I need to add something else?

This one shall suffice for my project right?

IRLB8721PBF - MOSFET N, 30 V 50 A 65 W TO-220, IR

Looks good. Proceed...

Ok.

Now I ordered a new Mosfet.

Anyhow I tried to make the circuit with the printers power supply instead to see if it worked.

Nothing happend. I tried with my old power supply and nothing happen. Nothing gets hot or anything. May any component be broken? which one is most plausible? a wire, mosfet or diode?

Thanks for all the n00b help :slight_smile:

Wait for the logic level MOSFET.

Too late :stuck_out_tongue:

Anyhow I tried to reconnect the circuit and got it working once with the printers power supply. Now however I can make it work perfectly with the first power supply.

However it's not as powerful as when I used the printer.

Additionally the components doesn't get hot anymore. Why is that? seems odd?

Why doesn't the printers power supply work? Is it destroyed beacuse I didn't have the right Mosfet?

While waiting for the mosfet. I can make the code.

I need the feeder to roll forward for a couple of seconds (or miliseconds) then roll backwards and repeat untill I push the button (or disconnect the plug).

My main problem with the code is how do I make the motor go backwards?

/*
  Arduino Starter Kit example
  Project 9 - Motorized Pinwheel

  This sketch is written to accompany Project 9 in the Arduino Starter Kit

  Parts required:
  - 10 kilohm resistor
  - pushbutton
  - motor
  - 9V battery
  - IRF520 MOSFET
  - 1N4007 diode

  created 13 Sep 2012
  by Scott Fitzgerald

  http://www.arduino.cc/starterKit

  This example code is part of the public domain.
*/

// named constants for the switch and motor pins
const int switchPin = 2; // the number of the switch pin
const int motorPin =  9; // the number of the motor pin

int switchState = 0;  // variable for reading the switch's status

void setup() {
  // initialize the motor pin as an output:
  pinMode(motorPin, OUTPUT);
  // initialize the switch pin as an input:
  pinMode(switchPin, INPUT);
}

void loop() {
  // read the state of the switch value:
  switchState = digitalRead(switchPin);

  // check if the switch is pressed.
  while (switchState == HIGH) {
    // turn motor on:
    digitalWrite(motorPin, HIGH);
    delay ( 2000);
    digitalWrite(motorPin, LOW);
    delay (4000);

  }
}

You should have mentioned backward movement much earlier. For that purpose you need an H-bridge, not a simple MOSFET switch.

I did in the first post :slight_smile:

Is this something I can use?

Or this?

Look for DC motor driver modules.

Might this be it?

It looks usable. But L298 is a very old chip that also tends to get hot on heavy load. Modern MOSFET chips perform better and often have more useful features (current control...).

Ok. This is the one easiest and closest to get.

So. I now got the L298N module. How do I connect the whole ciruit now? Shall I use both motor sockets for my motor where one socket is the reverse?

Also how do I type the commands for reverse?

Thanks

See the driver module manual...

This proved more difficult than I anticipated.

However I've been trying to understand everything and made up a diagram of how I see the setup. Is the setup correct? With the power supply leading to the motor module.

In the manual it use several pins for one motor if I understand right. Is this a must or can I just use one pin (pin 9) to program the motor module. Guess this is wrong?

Do I need a pin for each command from the arduino?

Most probably (where is the link?) the motor driver has a direction and a speed input. Speed can be controlled by PWM, diirection is an ordinary digital input.

There is no PWM on the driver.

Here is the manual for the driver.

87201_manual_EN.pdf (475 KB)