No motion with mega2560 + ramps1.4

I’m trying to get this new MPCNC build to come alive but so far no luck. Details below, but it’s essentially mega+ramps1.4 and using Repetier-Host, as of now, just trying to get some movement. From my laptop it appears to connect, but using manual control does not result in any motion (followed the details here).

Not sure if this picture will help. Under the 8825s I’ve got the three jumpers.

That foam isn’t conductive, is it? Sometimes people use the ESD bags to try to be safer and they cause a short.

I would try to take off the mega and just connect to it from the computer. On the ramps, it should connect just fine without the ramps board or the 12VDC.

Check that the heat sinks on those mosfets aren’t touching. They look pretty close. That shouldn’t matter unless you turned on the heaters. That was my least favorite thing about the ramps boards.

Make sure repetier server isn’t installed. It can grab the serial port and not let go.

Check the power supply for 12V with a multimeter, if you have one.

From the picture, it does not appear that you are supplying any power to the motor bus. You want to jumper between the 11A screw terminals and the 5A screw terminals. Also, if you haven’t done it already, consider setting the v-ref on the stepper drivers before trying to move the steppers.

1 Like

Thx for the reply! So far did the following…

  • moved to plastic tray
  • put some more space between the mosfets
  • verified +12V (red wire in picture)

…still not luck.

Running just RepetierHost 2.2.4 AppImage on a linux machine. I’ve tried checked and unchecked Printer Settings>Printer>Check Extruder & Bed Temperature and with it checked I get repeated M105 messages so proceeded with it unchecked.

With the ramps board disconnected, it seems to accept the first command (N9 G1 X0.1 F2100*19) but the second (N10 G1 X0 F2100*52) times out. Further monkeying it seems to accept commands and then sometimes times out.

Going to try running from windows…

I cannot tell from your picture for sure, but you need to bring power into the board in two places, and as I posted, I only see one.

1 Like

You mean like here? I was thinking that was just for adding an extruder.

Yes, like in that picture. You need the jumper wires. The 5A goes to the logic, and the 11A goes to the motors. I suggest you bring the power into the 11A connection and jumper to the 5A connection.

Edit: I have a Ramps board for project. Here is a photo of my power input:

I don’t think so Robert. I think that other power is for the heated bed mosfet. But it has been a long time since I used a Ramps.

And anyway, if you can’t talk to it (try sending M115, that should reply with the version), then it doesn’t matter if the drivers are powered.

1 Like

Did you try disconnecting the mega from the ramps and just trying to talk to it over USB?

I use Linux all the time. I don’t usually use repetier host though. I prefer pronterface for setup.

Make sure you have permission (you need to be in the dialout group on most distros). You can also open a connection with miniterm (or miniterm.py): miniterm /dev/ttyUSB0 250000. And then send M115<Enter>. Your typing may not show up (I don’t think it echos back).

1 Like

Here’s the result of M115

17:26:26.100 : FIRMWARE_NAME:Marlin 513S 2.0.9.2 (Oct 24 2021 13:36:13) SOURCE_CODE_URL:github.com/MarlinFirmware/Marlin PROTOCOL_VERSION:1.0 MACHINE_TYPE:V1CNC 513S EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff
17:26:26.100 : N22 M220 S100*81
17:26:26.100 : N23 M221 S100*81
17:26:26.100 : N24 M111 S6*81
17:26:26.100 : N25 T0*13
17:26:26.105 : Cap:SERIAL_XON_XOFF:0
17:26:26.105 : Cap:BINARY_FILE_TRANSFER:0
17:26:26.105 : Cap:EEPROM:1
17:26:26.105 : Cap:VOLUMETRIC:1
17:26:26.108 : Cap:AUTOREPORT_POS:0
17:26:26.108 : Cap:AUTOREPORT_TEMP:1
17:26:26.108 : Cap:PROGRESS:0
17:26:26.108 : N26 M155 S1*84
17:26:26.108 : Cap:PRINT_JOB:1
17:26:26.108 : Cap:AUTOLEVEL:0
17:26:26.108 : Cap:RUNOUT:0
17:26:26.109 : Cap:Z_PROBE:0
17:26:26.109 : Cap:LEVELING_DATA:0
17:26:26.113 : Cap:BUILD_PERCENT:0
17:26:26.113 : Cap:SOFTWARE_POWER:0
17:26:26.113 : Cap:TOGGLE_LIGHTS:0
17:26:26.117 : Cap:CASE_LIGHT_BRIGHTNESS:0
17:26:26.117 : Cap:EMERGENCY_PARSER:0
17:26:26.117 : Cap:HOST_ACTION_COMMANDS:0
17:26:26.117 : Cap:PROMPT_SUPPORT:0
17:26:26.117 : Cap:SDCARD:1
17:26:26.117 : Cap:REPEAT:0
17:26:26.117 : Cap:SD_WRITE:1
17:26:26.121 : Cap:AUTOREPORT_SD_STATUS:0
17:26:26.121 : Cap:LONG_FILENAME:0
17:26:26.121 : Cap:THERMAL_PROTECTION:1
17:26:26.124 : Cap:MOTION_MODES:1
17:26:26.124 : Cap:ARCS:1
17:26:26.124 : Cap:BABYSTEPPING:0
17:26:26.124 : Cap:CHAMBER_TEMPERATURE:0
17:26:26.124 : Cap:COOLER_TEMPERATURE:0
17:26:26.124 : Cap:MEATPACK:0
17:26:26.128 : echo:DEBUG:INFO,ERRORS

Ok. Then it is clearly talking to it. That’s good.

Maybe Robert’s right (he’s not often wrong :slight_smile: ) and it needs more power.

You can also try sending a manual jog command like G1 X10 F300

Once you have M115, I wouldn’t suspect anything wrong with your computer or connection. It is something wrong on the ramps side.

Based on the schematic, you are right and I wired my Ramps project wrong. The only thing I can find on the 11A circuit is the heated bed (D8). Shot in the dark, but did you set the v-ref on the stepper drivers? If they are set too low, the steppers won’t move.

2 Likes

It moved!

Switching to windows did the trick… I think… also flashed in the dual end stop firmware (V1CNC_Ramps_Dual, 2.0.9.2 / 513 hex) because only one set of the motors were moving.

@robertbu I have the v-ref set now.

I’ll go back to my laptop (running linux) and see what’s up there.

Thx!

3 Likes

Back on the linux machine… as @jeffeb3 suggested, pyserial worked, proterface worked, but still not Repetier… wasn’t planning on using Repetier so I guess I’ll move on (also kinda like pronterface).

also v1pi works too :star_struck:

1 Like

(also kinda like pronterface)…Eek…you’re wierd…:slight_smile:

As Jeffeb3 said, sounds a lot like you have Repetier Server running as well as Repetier Host. IIRC Repetier installs both server and host together and server will grab the serial port and prevent host from accessing it. See if you have RepetierServer.service running.

1 Like

haha, I am weird ;p …pronterface just seems simpler and I much prefer sudo apt install printrun to downloading an AppImage and making it executable.

Pretty sure server is not running, manually went through the processes and also with:

$ pgrep -l repetier

returns only:

26066 repetier-host

Also followed this stuff here (even 2x checked the usermod -a -G dialout yourUserName part), but no luck still.

1 Like

I think the Repetier server issue is specifically a windows issue anyway.