Welcome! Log In Create A New Profile

Advanced

motor not working

Posted by vapark212 
motor not working
February 10, 2016 05:15AM
I'm making a scratch build 3d printer. I'm using a RAMPS with motor drivers on an Arduino Mega 2560. The firmware is Marlin. Although the wires seem to be wired correctly, the motors wouldn't work. The heated bed and the extruder works well, but the motors wouldn't work a bit. What could be the problems, and how do I check if it's a problem?
Re: motor not working
February 11, 2016 01:06AM
Make sure you have micro stepping jumpers installed (under the pololus)

Make sure you are supplying 12v to the 12v 5amp plugs (not 5v, which seems to be a common issue)

You do have pololu modules installed? Around the correct way?

Edited 1 time(s). Last edit at 02/11/2016 03:18AM by Dust.
Re: motor not working
February 11, 2016 07:41AM
I do have the jumpers installed. Where is the 12v 5amp plug? I did wire it as the wiring diagram says. I have the drivers installed with the potentiometer facing away from the power input.
Re: motor not working
February 11, 2016 07:55AM
I do realize I didn't use end stops. Could that be a problem?
Re: motor not working
February 11, 2016 07:57AM
I also found out that the printer face is sending me a message "echo:endstops hit: x:0.01" whenever I move an axis. Since this looks related to the motor not working, how could I fix this endstops problem?
Re: motor not working
February 11, 2016 08:24AM
It's sounds a firmware problem.
As it's programmed as a feature not to turn the motor if it's given a high signal from an end-stop.

See if you can find that echo string in the configuration.h file as that might tell you the problem, could also be that a comment tag // has been removed or a { } curvy brackets have been removed or lost it's other pair. This will cause problems as the it won't see all the code or miss parts when it's complied and uploaded.

Edited 1 time(s). Last edit at 02/11/2016 08:51AM by orictosh.


Supporting 3D Printers with Parts and Build services.
Printer: Ormerod 2 (528.4) Duel extruder set-up with Aluminium X-Rib, RRPro Firmware v1.11-ch (2016-04-08)
Re: motor not working
February 11, 2016 08:56AM
The reading on pronterface is like this:

Connecting...
start
Printer is now online.
echo:Marlin1.0.2
echo: Last Updated: Feb 11 2016 22:48:19 | Author: (none, default config)
Compiled: Feb 11 2016
echo: Free Memory: 5443 PlannerBufferBytes: 1232
echo:Hardcoded Default Settings Loaded
echoconfused smileyteps per unit:
echo: M92 X78.74 Y78.74 Z533.33 E250.00
echo:Maximum feedrates (mm/s):
echo: M203 X200.00 Y200.00 Z3.00 E25.00
echo:Maximum Acceleration (mm/s2):
echo: M201 X3000 Y3000 Z100 E10000
echo:Acceleration: S=acceleration, T=retract acceleration
echo: M204 S3000.00 T3000.00
echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)
echo: M205 S0.00 T0.00 B20000 X20.00 Z0.40 E5.00
echo:Home offset (mm):
echo: M206 X0.00 Y0.00 Z0.00
echotongue sticking out smileyID settings:
echo: M301 P22.20 I1.08 D114.00
ok T:0.0 /0.0 B:0.0 /0.0 T0:0.0 /0.0 @:0 B@:0
echo:endstops hit: Z:0.00
echo:endstops hit: Z:0.00
echo:endstops hit: Z:0.01
echo:endstops hit: Z:0.01
Re: motor not working
February 11, 2016 08:58AM
The code I'm using is like this:

//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================

// Uncomment the following line to enable CoreXY kinematics
// #define COREXY

// coarse Endstop Settings
#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors

#ifndef ENDSTOPPULLUPS
// fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
// #define ENDSTOPPULLUP_XMAX
// #define ENDSTOPPULLUP_YMAX
// #define ENDSTOPPULLUP_ZMAX
// #define ENDSTOPPULLUP_XMIN
// #define ENDSTOPPULLUP_YMIN
// #define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
#define ENDSTOPPULLUP_XMAX
#define ENDSTOPPULLUP_YMAX
#define ENDSTOPPULLUP_ZMAX
#define ENDSTOPPULLUP_XMIN
#define ENDSTOPPULLUP_YMIN
#define ENDSTOPPULLUP_ZMIN
#endif

// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
//#define DISABLE_MAX_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS

// Disable max endstops for compatibility with endstop checking routine
#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
#define DISABLE_MAX_ENDSTOPS
#endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false // For all extruders
#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled




(the smiley faces aren't intentional. It just automatically changes)
Re: motor not working
February 11, 2016 08:59AM
I also did wire the endstops, but the result is same
Re: motor not working
February 11, 2016 10:30AM
Quote
vapark212
I also did wire the end stops, but the result is same

The end stops should be wired and used. Are they optical end-stops or mechanical switches?

This seems strange ok T:0.0 /0.0 B:0.0 /0.0 T0:0.0 /0.0 @:0 B@:0
As I believe it's should show the temp readings of the bed and hot end, which at first power on would be ~room temperature
Are the connections correct upon your controller? Maybe feeding temp data into a end stop, which might explain the value going up.


Supporting 3D Printers with Parts and Build services.
Printer: Ormerod 2 (528.4) Duel extruder set-up with Aluminium X-Rib, RRPro Firmware v1.11-ch (2016-04-08)
Re: motor not working
February 11, 2016 10:42AM
I wired the endstops. They are mechanical switches. The temperature seems to come out after I press 'check temp'. It then shows the current temperature.
Re: motor not working
February 11, 2016 04:32PM
Check the endstops are working from the controller

With no endstops being pressed Send the controller a M119: Get Endstop Status

They should all list as being open

Then hold down each endstop in turn and resend M119, the endstop your holding down should change to triggered
Re: motor not working
February 12, 2016 12:03AM
Thank You for all of your help. I just realized that i plugged my motor drivers in backwards. (this proves I'm stupidsmiling smiley
Now it's moving great!!
Sorry, only registered users may post in this forum.

Click here to login