Pullstruder project using Arduino Mega 2650, Ramps1.4 shield and A4988 stepper motor driver

Hello there
I am trying to build an pullstruder (an device that transforms plastic bottles into 3d printer filament) and i want to use parts from an old CL-260 (ultimaker 2 clone)
I managed to design and build the physical part of the project but now i am really struggling with the "firmware" part.

I want to write a simple code that powers on the part that used to heat the nozzle, to read the temperature and to turn a stepper motor.

I started with the stepper motor and made some kind of progress using an Arduino uno and breadboard but when i move the driver and the motor on the ramps things get out of hand and nothing works anymore.

I would be grateful for any advice

(also please explain why a driver would fry if you disconnected the motor and in what order should i disconnect things)

Make a drawing with device information and connections.
Show the sketch you are using.

Pololu says: Pololu - A4988 Stepper Motor Driver Carrier

Warning: Connecting or disconnecting a stepper motor while the driver is powered can destroy the driver. (More generally, rewiring anything while it is powered is asking for trouble.)

So right now i moved the components back to the Arduino Uno board and now everything spins, but i cant make it stop.
The connections that i used are the basic connections for a 3D printer using the Arduino mega and the Ramps 1.4, the drivers are pinned down to the Ramps and the ramps is connected to the arduino board.


I do not have the LCD display and i plugged the motor and driver in the E position and the powr supply is connected like in the photo (everything else was removed).

After the deiver was destroyed.

Because the driver was destroyed.

"Basic?"

What does this mean?

"Everything is the same but different and everything else was removed"? Why not just...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.