Welcome! Log In Create A New Profile

Advanced

Test Code Not Working

Posted by BillyGoat 
Test Code Not Working
December 26, 2015 06:52PM
I've been banging my head against the wall for the last week trying to figure out whats wrong. The test code found on the reprap wiki blinks all the leds on the ramps 1.4 board but the stepper motors don't move. The pots are set between .65 - .70. The motors are not vibrating nor are they moving.

Edited 1 time(s). Last edit at 12/26/2015 10:49PM by BillyGoat.
Attachments:
open | download - IMG_1038.JPG (37.3 KB)
open | download - IMG_1043.JPG (41.4 KB)
open | download - IMG_1044.JPG (32.9 KB)
open | download - IMG_1045.JPG (28.4 KB)
open | download - IMG_1046.JPG (42.4 KB)
open | download - IMG_1047.JPG (37.9 KB)
Re: Test Code Not Working
December 26, 2015 09:32PM
Your pictures are tiny!!

IMG_1045.JPG seems to show your endstops... these look to be two wires, and look to be in the incorrect place (they look like they will short - to + when the switch is closed... this is really bad) If they are 2 wire endstops they should be on S and - pins. They could be 3 pin endstops, in which case they may be fine. I can't see that from the pictures

ie two pin endstops (all set to min endstops) look like this



Now after saying this, the test code doesnt check endstops... But its they are shorting 5v to ground... you will have issues.

I would say you have you motors wired wrong.

check the motor wiring, ignore any color codes, as no two suppliers use the same colors and some even change the colors week to week.

read this http://reprap.org/wiki/Stepper_wiring you have to identify which two wires on your stepper motors are a coil and make sure those two wires are together on the ramps connector (pins 1 and 2 are first coil, pins 3 and 4 are second coil)

Edited 1 time(s). Last edit at 12/26/2015 09:40PM by Dust.
Re: Test Code Not Working
December 26, 2015 09:53PM
The limit switches are three wire. sorry for the small pictures. I put them up on imgur. Here is a link Ramps 1.4,

Edit: I just switch the endstops to the minimum position instead of the maximum. Thought it might fix it but it didnt.

Edited 2 time(s). Last edit at 12/26/2015 10:02PM by BillyGoat.
Re: Test Code Not Working
December 26, 2015 10:30PM
You say your running test code, but the LCD shows your running real firmware...

If your running real firmware get the controller to tell you what it thinks of the endstops

Ie send m119 to the printer, any that say triggered, it will not move in that direction.

Edited 1 time(s). Last edit at 12/26/2015 10:31PM by Dust.
Re: Test Code Not Working
December 26, 2015 10:35PM
Quote
Dust
You say your running test code, but the LCD shows your running real firmware...

If your running real firmware get the controller to tell you what it thinks of the endstops

Ie send m119 to the printer, any that say triggered, it will not move in that direction.

I ran the firmware to post the X:---

Endstops all report open when running M119 through repetier

The test code doesn't move any of the motors with or with out the endstops.
Re: Test Code Not Working
December 26, 2015 10:38PM
Here is the log when connected from Repetier.

21:36:38.156 : echo:Marlin 1.1.0-RC3
21:36:38.156 : echo: Last Updated: 2015-12-01 12:00 | Author: (none, default config)
21:36:38.156 : Compiled: Dec 26 2015
21:36:38.156 : echo: Free Memory: 4322 PlannerBufferBytes: 1232
21:36:38.160 : echo:Hardcoded Default Settings Loaded
21:36:38.160 : echo: Steps per unit:
21:36:38.160 : echo: M92 X80.00 Y80.00 Z4000.00 E500.00
21:36:38.164 : echo:Maximum feedrates (mm/s):
21:36:38.164 : echo: M203 X300.00 Y300.00 Z5.00 E25.00
21:36:38.168 : echo:Maximum Acceleration (mm/s2):
21:36:38.169 : echo: M201 X3000 Y3000 Z100 E10000
21:36:38.173 : echo:Accelerations: P=printing, R=retract and T=travel
21:36:38.173 : echo: M204 P3000.00 R3000.00 T3000.00
21:36:38.181 : 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)
21:36:38.181 : echo: M205 S0.00 T0.00 B20000 X20.00 Z0.40 E5.00
21:36:38.185 : echo:Home offset (mm):
21:36:38.185 : echo: M206 X0.00 Y0.00 Z0.00
21:36:38.185 : echo:Material heatup parameters:
21:36:38.185 : echo: M145 M0 H180 B70 F0
21:36:38.189 : echo: M145 M1 H240 B110 F0
21:36:38.189 : echo: PID settings:
21:36:38.193 : echo: M301 P22.20 I1.08 D114.00 C100.00 L20
21:36:38.193 : echo:Filament settings: Disabled
21:36:38.193 : echo: M200 D3.00
21:36:38.193 : echo: M200 D0
21:36:39.788 : FIRMWARE_NAME:Marlin 1.1.0-RC3 From Archive SOURCE_CODE_URL:http:// ... PROTOCOL_VERSION:1.0 MACHINE_TYPE:3D Printer EXTRUDER_COUNT:1 UUID:00000000-0000-0000-0000-000000000000
21:36:39.809 : X:0.00 Y:0.00 Z:0.00 E:0.00 Count X: 0.00 Y:0.00 Z:0.00
21:36:39.810 : echo:Active Extruder: 0
21:36:39.880 : echo:Active Extruder: 0
21:36:55.807 : Reporting endstop status
21:36:55.807 : x_min: open
21:36:55.807 : x_max: open
21:36:55.807 : y_min: open
21:36:55.807 : y_max: open
21:36:55.807 : z_min: open
21:36:55.807 : z_max: open

Edited 1 time(s). Last edit at 12/26/2015 10:38PM by BillyGoat.
Re: Test Code Not Working
December 27, 2015 02:48AM
On the first picture I don't see any 12V cables going to the green connector. Do you have a PSU attached at all?
You can't run steppers through USB power...
-Olaf
Re: Test Code Not Working
December 27, 2015 11:33AM
I uploaded more pictures. Yes I have 12 volts in and the 5 volts isn't the vbs. Here is the link to the photos, Also the stepper drivers are a4998

Edited 1 time(s). Last edit at 12/27/2015 11:35AM by BillyGoat.
Re: Test Code Not Working
December 27, 2015 02:07PM
I just connected to my printer through repetier and i got an error in the log

13:06:30.074 : Error:No Line Number with checksum, Last Line: 9
13:06:30.130 : Error:Line Number is not Last Line Number+1, Last Line: 9
13:06:30.130 : Resend: 10


Would this be the issue if so how do i fix it?
Re: Test Code Not Working
December 27, 2015 09:02PM
well that's the issue...

Thats a 12v 5amp plug! not 5v... 5v is not enough voltage to move the steppers. (Luckily this doesn’t cause any damage)

both are meant to be 12v.. the 11amp cct is for heated bed, the 5amp cct is for steppers and hot end and is fed into the mega which creates its own 5v.

Edited 2 time(s). Last edit at 12/27/2015 09:08PM by Dust.
Re: Test Code Not Working
December 27, 2015 10:19PM
Yea i finally figured that out but... i shorted the back of my endstop causing the voltage regulator on my arduino mega to fry to so i had to order a new one :c
Re: Test Code Not Working
December 28, 2015 03:28AM
You can work around a dead onboard 5V regulator by using a USB 5V/1A+ wallwart charger or any external 5V supply you can connect to an empty endstop terminal.
-Olaf
Re: Test Code Not Working
December 28, 2015 01:08PM
So you would plug the 5v 1a into and end stop. Would you use the -/+ or signal/+
Re: Test Code Not Working
December 28, 2015 08:01PM
Be very careful with this

he presumes the voltage regulator has blown in such a way that its not putting out any voltage, This is not always the case, often a damaged regulator will output a random voltage.
You should remove d1 from the ramps to stop any voltage going into the voltage regulator (under X and Y stepper driver module)

You would use + and - pins of the endstops if you where using these to supply 5v to the ramps and mega.

I would just power it over USB myself, either from a pc or a 5v 1amp power pack (one of those with a usb plug on the back, so you can just move the usb cable from pc to power pack as needed)
Re: Test Code Not Working
December 28, 2015 09:44PM
Good to know. I took off the voltage regulartor and ordered some more to replace it as well as a new arduino mega. I've heard the ramps board is pretty robust so I'm not to worried about it.
Re: Test Code Not Working
December 29, 2015 02:48AM
removing the voltage regulator works too... no need to remove D1
Sorry, only registered users may post in this forum.

Click here to login