![]() ![]() So our Nema here is running very accurately and with a lot of force. Just so you have an idea, a 3D printer works at 1/16 micropasses. In this case, the motor is running at 1/32 micropasses. The maximum I put with this Step Down is 19 volts, because this source is 24 volts, and it loses about 5 volts at this stage of regular voltage. One feature of this TB6600 Driver is that it has a minimum operating voltage, which was 9 volts in the case of the one I used. This assembly is the first idea for a project that I want to set up: a Step Motor Laboratory. A display then shows the voltage and current. I then put a Step Down Module in order to adjust the voltage on the Driver. We have the Driver and a 24-volt by 10A power supply. It’s next to the Arduino Due that is connected by four wires, one of them, referential, and the rest are signal. In the video, we have the Step Engine spinning on account of a program that is already running. If you put this on the tip of a spindle, that engine can push between 100 and 200 kg forward. Our assembly today, therefore, consists of the Arduino Due connected to the TB6600 Driver playing the Nema 23 Step Motor of 15 kgf.cm. Cortex-M3, for example, gives the designer the ability to do more elaborate and sophisticated things. This processor is far more powerful than the Arduino Uno. I see few people talk about the Arduino Due, but I like it a lot because it has a microcontroller with ARM Cortex-M3 core as the board's brain. We’ll soon make our engine work with the Arduino Due. So let's get the Nema 23 with the TB6600 Drive, which reaches its peak near 5A, which is dependent on its version. The Nema 23 itself has several versions that reach 30 kgf.cm. ![]() The 17 and 34, for example, are more expensive, and the 23, which we use today, is relatively inexpensive. This Nema Step Engine has several versions. It is possible to assemble powerful machines with this trio, and still keep costs low. We will use a Nema 23 that will be controlled by a TB6600 Driver and an Arduino Due. ZStepper.Today, we are going to talk about the Step Motor again. YStepper.attachEnable(Y_ENABLE_PIN, 0, 0) // changed from xStepper XStepper.attachEnable(X_ENABLE_PIN, 0, 0) Here is the corrected code: // stepper sequence program by groundFungus aka c.goulding Totally my fault and I apologize to MicroBahner for doubting his library and wasting his time. He found a typo in my code and once fixed the code works fine with the enable states all set to 0 as it should be. I had to mess with the attachEnable() functions a bit to make it work and don't know why. tSpeedSteps(8000) // steps /10Įlse if (step = 10) // pause at position ZStepper.attachEnable(Z_ENABLE_PIN, 0, 0) ZStepper.attach( Z_STEP_PIN, Z_DIR_PIN ) XStepper.attachEnable(Y_ENABLE_PIN, 0, 1) ![]() YStepper.attach( Y_STEP_PIN, Y_DIR_PIN ) XStepper.attachEnable(X_ENABLE_PIN, 0, 1) XStepper.attach( X_STEP_PIN, X_DIR_PIN ) Unsigned long timer = 0 // used to pause at a position. MoToStepper zStepper( STEPS_REVOLUTION, STEPDIR ) MoToStepper yStepper( STEPS_REVOLUTION, STEPDIR ) MoToStepper xStepper( STEPS_REVOLUTION, STEPDIR ) stepper sequence program by groundFungus aka c.gouldingĬonst unsigned int motorStepsPerRev = 200 Ĭonst unsigned int microstepMultiplier = 4 Ĭonst int STEPS_REVOLUTION = motorStepsPerRev * microstepMultiplier Ĭonst float adcCountsPerStep = 1023 / STEPS_REVOLUTION All of this is using non-blocking code so you can do other things while the sequence is running. The program moves the x stepper to position 800 and right back to 0 then the y stepper moves to position 1600 and right back to 0 then the x stepper moves to position 1000, pauses for 5 seconds and moves back to 0. Uses a Mega board with Ramps 1.4 shield, 3 steppers and using the MobaTools stepper library. Here is a tested (on real hardware) program showing one way to do what you say (if I understand what you want). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |