Having trouble with Marlin RepRap library

I am currently in a senior design group at Saint Louis University and we are working on a "DIY" 3D printer using electronics parts from SainSmart (Arduino Mega 2560 & RAMPS 1.4) & Hardware from McMaster-Carr. We loaded on two libraries to the Arduino: 1) Marlin RepRap (https://github.com/ErikZalm/Marlin/tree/Marlin_v1/Marlin) 2) U8GLIB (https://code.google.com/p/u8glib/) [which is used to supplement the Marlin RepRap] We have the LCD GUI set up and we are sending commands from the LCD to make small X, Y, and Z steps. It seems like the Arduino recognizes the signal and does send it to the stepper motors, but all the motors do are sort of 'vibrate' and not really spin. If we take small steps we get a little movement, usually which is incoherent. We recently moved the voltage down to 10.5V from 12V from our power supply (because of the 1.5V from the USB to the Arduino), because 12 V caused smoke to come from the Arduino's voltage regulator. We don't know if this is causing the problem. We also do not have the heatbed hooked up because we do not need it for our purposes. We are using a 12V 18 Amp PSU. We were able to get the mechanical endstops to work and the fans to work, but we cannot get the motors to work properly. Does anyone have any suggestions, or has anyone worked with this Arduino library who could help us out? BTW: Our SainSmart kit is: http://www.sainsmart.com/3d-printing/3d-printkits/sanguinololu-rev-1-3-a4988-lcd-2004-3d-printer-controller-kit-for-reprap.html Thank you everyone ahead of time for all your wonderful help and guidance!

Topic by JakedGr8   |  last reply


Stepper motors for Prusa mendel? Answered

I have these bipolar round stepper motors that i salvaged from old printers . Can I use this stepper motor in the prusa mendel? and will they work fine?  also can i use stepper motors which are like this one.. meaning the round small ones or do i need to use the nema 17 ones?

Question by SowmenD   |  last reply


Why do prints on Repetier Host not start, when manual heating and motor controls work?

I am running a RAMPS board Prusa i3 on the newest version of Repetier Host, and everything worked fine on the last computer I had. I set Repetier up on a new computer, and everything functions as it should except that when I try to start a print, it says a print is in progress, but it's not printing. The stop/pause buttons are there as if a print is in progress, the bottom right corner forever says its printing layer 0, and the manual control window does not show a print in progress. Testing has indicated that the motors and heaters respond correctly when using manual controls, so the problem isn't the connection, baud rate, etc. Nothing was changed in terms of the hardware or firmware of the printer itself. The print runs fine using the virtual printer simulation. I also tried deselecting the box for "check extruder and bed temperature". Does anyone know what would cause the print to fail to start?

Question by AmpOwl   |  last reply


Can I use an arduino mega and a R.A.M.P.S. board to run a CNC machine? Answered

Right now, I`m planning to use an arduino duemilanove, and 3 EasyDriver Stepper Motor Drivers. RAMPS board: http://ultimachine.com/ramps EasyDriver Board: http://www.sparkfun.com/products/10267

Question by Stuffses   |  last reply


Problem driving a stepper motor using the A4988 reprap driver board and an Arduino? Answered

Hi guys I am having a problem driving a stepper motor using the A4988 reprap driver board and an Arduino I have set up the wiring using an example I found online (Diagram attached: A4988 wiring) https://www.youtube.com/watch?v=5CmjB4WF5XA.. However the motor does not seem to turn. The motor I am using is from an old Hitachi printer which I took apart a while back. Printed on it is 0.9A/ph. It has six wires however I am using it as a bipolar stepper by just leaving the center tap of each winding unconnected. I have adjusted the VREF on the A4988 board to insure that the current is limited bellow the 0.9A. To do this I used the data sheet of the A4988. As I wanted to run the motor at full step mode, the A4988 data sheet specifies that the winding current could only reach 70 percent of the current limit. consequently: Current limit = 0.9 * 0.7 = 0.63A Current limit = Vref * 2, Therefor Vref = 0.63/2 = 0.315V or 315mV I have therefor set the current limit using the potentiometer on the A4988 to aprox 315mV Once the wiring was set up, I applied power and measured the Vref to confirm it is still the same and it was. Next I disconnected the Power to both the Arduino and the driver and connected in the stepper motor. I then connected the power and uploaded the following code: // defines pins numbers const int stepPin = 3; const int dirPin = 4; void setup() { // Sets the two pins as Outputs pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT); } void loop() { digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction // Makes 200 pulses for making one full cycle rotation for(int x = 0; x < 200; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(5000); // five second delay digitalWrite(dirPin,LOW); //Changes the rotations direction // Makes 400 pulses for making two full cycle rotation for(int x = 0; x < 400; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(5000); } Nothing happened... started off with 5 volts on the power supply and ramped it up to aprox 12vs however still nothing happened. I can feel the heat sink heating up on the A4988 which means power was reaching it. I measured the voltages from the Arduino to the A4988 and the power supply to the driver and the voltages matched the input. I started shaking about the power connections to and suddenly the motor made one step, but that was it. So i thought it was a problem with the breadboard. I checked the connections on the breadboard and all where connected. To be safe i decided to use another breadbord. Again nothing happened. I checked the Aarduino using the 28byj48 and UNL203 driver and stepper that came with it and they worked fine. I confirmed the wiring sequences and layout multiple times and they all matched the tutorial I followed. My inital thinking was that the stepper motor was broken, so i disconnected it and tried running it using the power supple (5V) by connecting and disconnecting each coil in manually one by one, and it turned one step at a time, which meant that the stepper was working. Finally i decided to see if current was reaching the stepper, I therefore connected the Altimeter in series with one of the coils and it did not read any current, which meant that current was not reaching the coils. Now I am unsure what to do, or what has gone wrong. The vref still reads aprox 310 - 320 mV, this makes me assume that driver is not fried. I do have another A4988 driver however I started working on that one and now the Vref does not go above 62mV so I'm guessing that it is burnt, however the second one reads fine. I have tried using the enable button with the following code (Attached; A4988 wiring 2) however it still didnt' make in difference. The following code is what i used for when I set the enabled to low (Note that the pin numbers have been changed) int Index; void setup() { pinMode(4, OUTPUT); //Enable pinMode(2, OUTPUT); //Step pinMode(3, OUTPUT); //Direction digitalWrite(4,LOW); } void loop() { digitalWrite(3,HIGH); for(Index = 0; Index < 2000; Index++) { digitalWrite(2,HIGH); delayMicroseconds(500); digitalWrite(2,LOW); delayMicroseconds(500); } delay(1000); digitalWrite(3,LOW); for(Index = 0; Index < 2000; Index++) { digitalWrite(2,HIGH); delayMicroseconds(500); digitalWrite(2,LOW); delayMicroseconds(500); } delay(1000); } Why did the motors initially step (only one step upon each shake) when I shook the power supply leads? I am afraid to try that again as I think this is what damaged the first driver I was using. And why is there no current reaching the coils? I would really appreciate an opinion on this issue as I have no idea what to do Many thanks for you time. Adnan

Question by k1228438   |  last reply


build a 3d printer with a standard stepper motor controller? Answered

Hey Im thinking about building a 3d printer, so I'm looking at the (endless) possibilities out there. Can I build one with a standard (4 or 5 axis) stepper motor controller (like the ones on ebay)?? instead of using an arduino (I saw on the internet that that's what they use on RepRap) (and since I'm building a 3d printer/ CNC I think it would be more convenient for me to use stepper motor controllers for "both" the machines, and besides that it appears to be simpler since I know nothing about arduino :( ) I was thinking I maybe could use a controller with 4 or 5 stepper motor outputs and then use 1,2 and 3 for the axis and then use the other one to "tell" the machine how much material it should "spit out" any advice?? or any other ideas for a SIMPLE 3d printing curcuit?? 

Question by lordl9999   |  last reply


Arduino Workshop Nottingham UK

More information at www.nottinghack.org.uk Arduino-Sundae - An all day workshop from 11am 3rd October 2010 Station Street Nottingham. £40 - Includes Oomlout Arduino Budget Pack. An introduction to Arduino for beginners. Step by step introduction to working with the Arduino prototyping board and an introduction to microprocessors in general. In addition to on-screen step-by-step instruction, experienced hackers will be there to help you. Includes an Arduino Kit or bring your own for a discount. A day filled with Arduino using the www.oomlout.co.uk Budget Arduino Kit (included in the cost of the workshop or buy and bring your own for a discount).  Schedule for the day: 11:00 - Settle in get your kit open it up and have a play around meet others etc  11:30 - "Hello World" Arduino 101 basic Arduino introduction including setting up external LEDs, Motors and sensors etc  12:30 - Show n' Tell - Arduino-Projects-Show-Case a number of projects including - Drawbot, Arduino Tank, 3D Printer RepRap, Addressable lights and many more (bring one too if you like) will be available for inspiration, discussion and tuition.  13:30 Lunch (bring your own or pop to a local place we are very central)  1400 - Use the pool of parts to try your own project. Helpful and experienced hackers want to help you learn more and will circulate to answer your questions. At Nottinghack there are no stupid questions.  16:00 - Close (but your welcome to stay until 18:00 then we'll probably go for a coffee or beer). Have a think about what you'd like to learn. We have a few suggested projects to help people who aren't sure and there will be lots or electronic bits n' bobs to help you get stuck in. Make sure you bring your laptop and download the Arduino Open Source environment and install it before the workshop http://www.arduino.cc... The cost of the workshop is only £40 including the Oomlout Budget Pack for Arduino and a day of tuition and hands on help. If you already have an Arduino and the required equipment the cost is £20 only.

Topic by ChickenGrylls   |  last reply


Our voltage regulator on our Arduino Mega2560 is smoking, and we don't have any idea why. Can someone please help?

So we are designing a 3D bioprinter using an Arduino Mega2560 along with a RAMPS board to power our motors and LCD screen. We are using open source software for the RepRap printer Marlin (http://reprap.org/wiki/Marlin). Our RAMPS board is powered by an external power supply unit. When we have only our motors plugged in, we have some control over them, but when we plug the LCD screen in, the voltage regulator starts to smoke.

Question by hsteven7   |  last reply


How would I go about making an Arduino control four Lego motors for a 3D printer? Answered

I am trying to make a Cartesian 3D printer out of Legos I have the printer almost done. It is time to start thinking about how I am going to control it. The RepRap uses the Arduino, I believe, although I'm probably wrong. I have an Arduino Mega The motors are RCX geared motors. They are powering a few worm gears, and all the setups I have are so far identical. I have, or will when this is finished, X,Y, and Z axes, as well as a filament feeder. I could just adjust the values of some already present software. This is probably the easiest solution. If worst comes to worst, I can replace the Lego motors with some sort of servos. So i guess my question is: where can i get 3D printer control software for an Arduino? And also, what random things do you know that could be helpful to this project? all comments welcome Thanks.

Question by kiffer360   |  last reply


need a little guidance with an arduino controlled CNC machine. help?

Ok so I am in the process of getting the axes set up, and theyre in a state that would allow me to test them. I am using the laser carriages from CD-ROM drives, so i know i wont get amazing build sizes, but that isnt the matter here. I've searched and searched and searched and have yet to really find definite instructions. The hardest part is going to be coding the arduino. I would like to use an ATmega16, but a 328 will work too. I intend on using L293D's to control my motors. they seem to work fine for on the bench testing, so with cooling in an enclosure i dont see why it wouldnt work. but I have no idea where to start with the coding. Ive seen references to GRBL, some reprap stuff, and a LOT of people being told basically "your method is stupid, buy these motor controllers and use my method", which i guess works well, but I dont have the money to buy the fancy motor controllers and the 293s seem to work fine. so, can someone point me in the right direction, or give me some pointers here please? I'd really appreciate it.

Question by zack247   |  last reply