arduino mega 2560 pinout


No, oh, no as well testing it, and these are NEMA 23 stepper motors. These are 450 pounds inch motors. I have another one here that I’m going to be using for our fourth axis, eventually once gerbil or garble or garble, whatever anyway gerbil supports the fourth axis actually downloaded the latest version of the durable for the mega, which is a branch specifically for the yet Arduino Mega 2560 and I’m just going to show you a quick zap. I want to do this on the cheap, but not skimp on the quality of the parts. So you know here those so I’ve got three. My 23 overts for the x yampz axis and I actually use some network wires from category 6 cable and basically bundle the pairs together, and I soldered these ones and crump these ones anyway. I’M. Not sure how I’m going to connect these. But I want to have the motors detachable so anyway, I bought these motors off of some guy on eBay and put the links for all the parts and software in the description below. So I got a really good price on these or 100 bucks, even for the 3 shipped free, which is a pretty outrageous, and I opted for the dual shaft motors because I’m going to make some knobs here that I’m going to be using to fine. Do some fine adjustment, you can’t do that with these warmers, you have to actually step them through the software.

This way, I can actually you know any moving on with the next step, so I like to do this with the Arduino and I didn’t want to pay a whole bunch of money for some software to to do. You know the G code and to actually you know, send people to interpret the G code and there’s the guys who do the development also have, I think, I’m, not sure if they’re associated or what have you but the guy who does the universal g code? Sender? Actually has a GUI version, which I’ll show you in a bit which really works amazingly well. So anyhow, I got for these TB 6600 micro step drivers for around the steppers, and you can see I actually set these up. I’Ll show you the dip switch setup, because I found a lot of videos on YouTube lacking. So this one here has, as you can see, switch 2 amp 5 on forgive the quality of the video. My phone is actually shot and 2 amp 5 basically mean. If you look here, we are actually going with a 8 micro step, and these are three and lower. So I’ve switched number 5 actually sets it for 3 amp steady with a 3.2 mm peak, which is perfect for these motors, and I have them connected now, show you how they’re connected, because this is a big problem, though this is one thing I found really lacking The direction negative pulse, negative I’ve, actually wise them together, and you can see here this ground wire – goes to a common ground terminal here, where I’ve actually also in time wiring.

So to make this simple, and then we have the direction positive pulse positive, going to the Arduino – and this is the z axis. I’Ll show you the x axis here goes to port 24 and 30 on this gerbil version. It’S, a 1.1 II released the December 19th of this year at the last year. Actually this is 2016 to be this 24 volt, 15 amp air power supply. You can see I’ve wired, the load, neutral and earth, and that goes to a plug, and then we have. These are the three on this side or ground. Three on this side are positive, twelve volts. So I have to show you here negative and positive going to this terminal here, where I split them off, so I’ve got three positives and they all go to the positive VCC high voltage, positive, positive, positive of each one and then the negative, which is the ground. I’Ve split off over here, which basically becomes a common ground for pretty much everything, so all the direction, negatives pulse, negative and ground, even the high voltage ground all are commonly grounded here. These are all commonly grounded. The Arduino is grounded on the ground. Pen. 5. Volts comes to this rail applying the 5 volts bursts of a second that’s to power. These relays and I’ll explain what those are, and I just added an extra ground wire here coming from the this grounding terminal, just to make sure I’ve got the positive ground happening over here.

So then we have a solid state relay here. Then I got on robot chopped comm or you can get these on eBay. This is a non moving parts it’s, just a solid state relay that’s going to control the skin, and this is a dual relay. I got from also also from robot shop common it’s, a DF robot anyhow, and this will be for mist and flood and for the spindle and those are connected. The positive, the VCC and ground are connected to 5 volts and ground 5 volts powered by the Arduino 5 volts here, and this rail is, as you can see, jumped all the way across to bring all the red rails on the exterior perimeter to 5 volts. So we have the 5 volts going from 10 6, which is the digital pin. 6. You can find all the pin pin outs for the zero in the Arduino libraries gerbil CPU map h5. If you look at that, you’ll you’ll see all pen assignments, but you can see the XYZ axis or pin 24 25 26 ABC are going to eventually be 27 28 29. Then we have Direction. X is 30 y, is 31, Z is 32 and I guess you know rest will follow and we have the spindle enable on pin 6 spindle direction on pin 5. I don’t have those spindle directions set up right now. I don’t think I may have a one of those pencils are I’ll, see you eventually, but anyhow, then we have an eight and nine hour for mist and flood or flood at mist 2 respectively, and those will be powered up here.

I’Ll show you how this all works, it’s actually really simple. I made absolutely no modifications in the software. I just downloaded it flash to the Arduino and using the UGS platform software and then, like I say, I’ll give you all the descriptions in point below makes a very simple setup and it’s outrageous. So let me just show you how this works about this all wired up to my little Windows, 10 laptop. So just connect the Arduino, you can say I’ll plug in the power supply to supply more power to the stepper drivers. As you can see, the real powered up indicator lights and just show you how simple this is using UGS platform software sure. So this is all open source and these guys are putting together some really cool software. So anyone want to put together your three axes to become eventually Forex of CMC herbal mega it’s, a branch of original that’s. The way you go so this is connective, as you can see, I’ve laid out my screen this way so I’m just going to go ahead and load a sample file leg out from the UGS platform download. Neither this one or closure it’s pretty cool. Thank you see that there and the virtual setup of the machine now the only problem I found to actually make this all work, because you have to put the spindle to 99 that 100. For some reason it just never goes on so I’ll set the speed to 25000 rpm and now it’s number 99 percent movie.

I guess that 25000 rpm, magic and we’ll go ahead and fire the self you check this out. No modifications whatsoever, you can see. Spindle is gone, see the real a move on wanted off with the flooded mist, so that’s, the other channel there yeah. This thing is ridiculously simple modification, especially when these guys were actively developing a software or so imagine the ready acts at nagging the for faxes. For so I can’t wait to do that because I’m, probably gon na, be just no ready and build this CNC once they oh. By the way we show you this. You can also override g great, bring it down to a halt and concealer, as opposed I’ll. Just reset it will see just pick up anyway, stop that this is a hard stop and return to zero here to fly now for the the setup, you know read the wiki, you know for eight steps. You know I’d like to use a 101 110 of an inch per revolution, lead screw, which will give me a 10 revolutions to do one inch and what it basically works out to is for 8 micro steps, there’s the formulas and everything out there, but for 8 Micro steps: it works out to six 29.9 21 for x yampz because I’m, using the same motors by up this value to 2000, because these motors actually support no problem. The acceleration I doubled as well, and I set some soft limits, but that’s pretty much it I mean this thing is just ridiculously cold.

You know jogging convincing season, Macy’s, sorry minutes New Year’s Day happy. We are all hope you enjoyed us. Have any questions. Please feel free to leave them in the comments and reason I chose to do this by the way, just as a closing note, as I want to do this, the cheapest way possible. You know if you can sever. You know 100 for this. I paid like 48 dollars for the four of these so clean for 12 bucks each. I paid 25 bucks for this time. Ten forty bucks 500 bucks. Actually for that, so it comes out really cheap, and this software is just really amazing. Just to show you, quick, serious stress tests show you what this does, because the acceleration doubled the accelerations and doubled the maximum speed.


arduino mega 2560 pinout Video







arduino mega 2560 pinout news








arduino mega 2560 pinout Social






👋 Want to bring Tony Stark-like gesture control to your projects? Learn how with the BLE-enabled MKR WiFi 1010 and Nano 33 BLE Sense boards using the ArduinoBLE library.
safe image.php?d=AQDyi1ELcW4VGzhx&w=720&h=720& dChOhNMmeF - arduino mega 2560 pinout

Arduin-yo ho ho! A fairground favorite, the pirate ship is a fun way to explore the oscillation of a pendulum. How much fun, you ask? Access our Science Kit Physics Lab preview and see for yourself:

🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today:

70537898 550174072395145 8798850142103928832 n.jpg? nc cat=102& nc oc=AQmCfMPwMf1oPpYqFhzbxfnGdbrmsjZXrEEBy1ox5Z8EJtiYMADoFNZ5mnSNRgCCY74& nc ht=scontent - arduino mega 2560 pinout

Arduino Mega 2560 Pinout

omni_3d photo

Microchip MCP4921

tronixstuff photo









(Visited 132 times, 1 visits today)

About The Author

You might be interested in

Comment (34)

  1. Hi I have to thank you very much, because your video was the video that got me going, before your video everything was very shadowy…:) I have a question thou. I am waiting for the rest of microstep drivers to arrive, until then I have only one microstep driver which I have connected it to a stepper motor, and as you have shown in your video to the x axis, But the problem is when running the program it only runs the motor on x direction while it is posotive, if it starts to run negative direction, the x axis dont move at all? is that because I have to install everything for it to work  or there is something else I should think off? Thank you very much for any kind of help

    1. That would be eBay. Look for 24V power supplies, they’re usually sold as LED power supplies. I got a 24v 360 watt one in the little CNC i built.

  2. port 24 and 30? How the hell did you figure all that out? everywhere I look people say it’s port 2 and 5, 3 and 6, 4 and 7. Going to try this. been stuck for 8 hours.

  3. hey there i have a Q, in the Arduino program do you have to write the code to set all the motors or GRBL with set all that up for me
    thanks in advance

    1. No diagram but the wiring is pretty straight forward. You can find most of what you need in the cpu_map.h file in the GRBL folder. As a side note, the stepper vendor usually has a wiring diagram along with the specs. Good luck and thanks for watching.

    2. Thanks for the tip. I can see up to 6 axis, but how do you mirror say a Y axis if you had 2 motors?

    3. I’m pretty sure you can just splice the two together, just make sure they’re turning the right way. You’re probably better off searching YouTube for a better solution because if the motors are facing each other, you may need to add an inverter to switch the direction signal on one of the drivers. I try to stay away from that scenario and will be making a followup video soon on my choice of motors and drivers. Thanks and good luck

  4. Very good explanation. Ok i am also using the Mega2560 board, And i did exactly what you did and it worked of cause by changing the pin configuration, but was using the Stepper driver A4988. But i tried to with your firmware to use the Ramps 1.4 and the A4988 stepper driver as intended and for the like’s of me it does not want to work with the UGS platform, and the motors don’t turn and iv tried to change the pin configuration in cpu_map. I have traced the pins of the stepper driver headers to the Ramps 1.4 Board and they line up to Step=A0 and Dir=A1 Pins. Changed the pins in the cpu_map and still nothing. I know my setup works because i tested it with Marlin and it all works. But want it to work with UGS. if you could please point me in the right direction. Thanks in advance.

  5. Is it possible to show us microstep TB6600 driver Arduino connection with the drivers by the three motors with endstop buttons with relay to stop and run the drill please showing this in video or photo please ? cnc machine

  6. Great video. Very helpful. Thank you VERY much. I also think it’s pretty amazing how affordable and common home cnc has become. Your setup, as seen here, is almost the same as I will be using. One question if you don’t mind. So the only power supply for the mega arduino and both relays is only coming from your laptops 5v USB ? Thanks

    1. Hi Jeff, thanks for the comment and yes, it is actually quite a simple, yet effective setup. I’ve been running this config on a small C-Beam machine i built as a test project, with great success, before I undertake a bigger build. p.s. I’ve since changed the motors, i’m using to use Chinese hybrid steppers (leadshine-clone) i got on eBay. The config is identical except for the CNC software and motors. The software i settled on is cncjs from (excllent) and the motors i got from here: Good luck!

  7. Hello, in your video I saw that you have launched NetBeans 8.1 platform. What is the relationship with cncjs app and grbl?
    Thank you for explaining.

  8. I don’t know if I understand correctly the hardware system. At least, you have connected the Arduino Mega to motor drivers, directly from Arduino pin’s, without an intermediate shield like Arduino UNo + CNC Shield 3.0. That’s correct?

    1. That is correct, the stepper drivers are directly connected to the Arduino pins. I made a simple shield to facilitate everything.

  9. Did you ever get the fourth axis working? I would like to make a DIY CNC router table. And i want 2 motors for my Y-axis. Can you control 2 stepper drivers with 1 output for the Arduino?

  10. I have a slimmed down build of what you have. As of 201908-24, UGS 2.0 latest GRBL-MEGA. UGS connects with Arduino Mega2560 but that is it. Always offline and no firmware found. Cant find any help or support.


Your email address will not be published. Required fields are marked *