Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. shishioude
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by shishioude

    • Question on Concrete 3D Printer Build

      Hey all, I'm new to the land of forums, so please be gentle 😊

      I'm building a concrete 3D printer for school/personal passion and don't know a lot about electronics (I do see the irony here). I have 6 Nema34 stepper motors (bipolar) with 6A each. (model number is 34HS31-6004S1, https://www.oyostepper.it/images/upload/File/34HS31-6004S1.pdf). I've found a variety of drivers that would work for each of the motors, but I need a control board set up that can handle all those drivers. I've looked around and asked some of my friends but no luck (to be honest I'm not really sure what I am looking for beyond it needing to have 6 driver connections) Any control board suggestions or directions would be appreciated!
      Thanks!

      posted in General Discussion
      shishioudeundefined
      shishioude
    • RE: Stepper Won't Reverse, Instead Cooks Eggs

      @dc42 OK, Thanks for your suggestion, i will have a try.

      posted in Off Topic
      shishioudeundefined
      shishioude
    • Stepper Won't Reverse, Instead Cooks Eggs

      Sorry if this a repeat question. I spent a good portion of the last couple evenings trying to figure out what I'm doing wrong, searching thither and yon.

      Virtually all of the hits on Google refer to specific issues with CNC controller kits, voltage being too low, or programming errors.

      Background: I'm the Jon Snow of electronics
      More background: I have what I believe to be a fairly simple setup:

      Small stepper motor (https://www.oyostepper.it/goods-993-Motore-passo-passo-ad-alta-temperatura-Nema-17-18-gradi-13Ncm-10A-Classe-di-isolamento-H-180C.html, https://www.oyostepper.it/images/upload/File/17HS08-1004S-H.pdf)
      3.3V to 5V Level Shifter
      Teensy 3.5
      Digital Stepper Driver (https://www.oyostepper.it/goods-111-Driver-passo-passo-digitale-10-42A-20-50VDC-per-motore-passo-passo-Nema-17-Nema23-Nema-24.html, https://www.oyostepper.it/images/upload/File/DM542T.pdf)
      24V x 15A Power Supply

      Code and schematic follow. I'm a programmer but I am very new to electronics. I learned KiCAD just to make this post so I didn't waste anyone's time if possible. The issue is as follows:

      The code runs and happily rotates the motor in one direction.
      When the code flips to reverse direction, it instead stands still.
      It happily rotates/stands still until it makes a buzzing noise and gets hot (this is the point I gave up and started learning KiCAD).

      Validation Steps:
      Checked and re-checked the Red, Green, Blue, Black wires to A+/-, B+/- until my eyes crossed
      Validated that the code only sends the reverse signal once per second (during inversion).
      Put a multimeter on the level shifter to validate that the output for PUL and DIR is changing from 200mV to 4.8V in time with the serial output of the code.

      Code:
      /*
      Stepper Motor Test
      stepper-test01.ino
      Uses MA860H or similar Stepper Driver Unit
      Has speed control & reverse switch

      DroneBot Workshop 2019
      https://dronebotworkshop.com
      */

      // Defin pins

      int driverPUL = 7; // PUL- pin
      int driverDIR = 6; // DIR- pin
      int ledPin = 13;

      // Variables

      int pd = 500; // Pulse Delay period
      boolean setdir = HIGH; // Set Direction
      int reverse = 0;

      // Interrupt Handler

      void setup() {
      Serial.begin(9600);
      pinMode (driverPUL, OUTPUT);
      pinMode (driverDIR, OUTPUT);
      pinMode (ledPin, OUTPUT);
      digitalWrite(driverDIR, setdir);
      digitalWrite(ledPin, HIGH);

      delayMicroseconds(1 * 1000000);
      Serial.println("Validate LED");
      delayMicroseconds(1 * 1000000);
      digitalWrite(ledPin, LOW);
      delayMicroseconds(1 * 1000000);
      digitalWrite(ledPin, HIGH);
      }

      void loop() {
      reverse++;
      if (reverse >= 1000) {
      Serial.printf("Reverse loop: %d to %d\n", reverse, setdir);
      setdir = (setdir == LOW) ? HIGH : LOW;
      digitalWrite(driverDIR, setdir);
      digitalWrite(ledPin, setdir);
      reverse = 0;
      delayMicroseconds(pd);
      }
      digitalWrite(driverPUL, HIGH);
      delayMicroseconds(pd);
      digitalWrite(driverPUL, LOW);
      delayMicroseconds(pd);
      }

      "Schematic" to follow. I screwed up the drawing. Not pictured is the Neutral wire on the power supply connected to Neutral on the digital stepper driver. I'm tired and I just can't go back and open up the library definition and rewire the drawing.

      Thank you for any advice or help.

      posted in Off Topic
      shishioudeundefined
      shishioude