Replies: 2 comments 7 replies
-
The repo is not accessible or non-existent. FastAccelStepper knows only Step/Dir/Enable as digital pins with some flexibility for polarity and timing of dir/enable signals. For step-pins polarity and timing are fixed: step on low to high transition and high time between 7 and ~2000us. DM860-H works with 5-24V inputs. Perhaps need a level shifter as (https://forum.arduino.cc/t/control-nema-34-with-esp32-and-dm860t/1111838/3) ? or use a TB6600 ? LLC stand for what ? |
Beta Was this translation helpful? Give feedback.
-
The data sheet of DM860H explains, that the PUL/DIR/ENA are connected to the LED side of the opto couplers. So it expects an input current strong enough to light the LEDs. Either the + inputs are connected to >=5V and the uC pulls (drains) the - inputs to ground, or the - inputs are connected to ground and the uC need to supply sufficient current at e.g. 5V to the + inputs. Judging by the txs0108e data sheet, I doubt the TXS 0108E is a proper part for this job. But I only glanced over the data sheet, so I may be wrong. |
Beta Was this translation helpful? Give feedback.
-
anybody have any advice on what may be happening wrong here..:
have a working sketch on nano, connected direct to DM860H, Nema 34 moves perfect... as the project is growing and the Nano can't keep up, decided to go with ESP32, however cannot get the motor to move correctly, if at all.. it would seem a problem of logic voltaje levels from what I can read with my multimeter on the DIR port of the driver, but there is more to the strangeness story...
using a AMS1117 3.3V buck DC-DC regulator to power both ESP32 and LLC (and OE pin high)... and a 5v 2A PSU that powers the regulator and the LLC as well.. have 2 buttons and a pot that indicate direction and speed in sketch.. strangest thing is, that as soon as connect only GND to PUL- & DIR- on the driver, I am seeing 2-2.2v between PUL+ & -, and also DIR + & -, when I then connect to LLC 5v side, then the OUTPUTs of the 5v LLC side are actually LOWER than the INPUTS from the ESP32 - and also the inputs are as well reduced, the DIR from 3.3v to about 3v... if the driver is not connected to LLC, ESP32 outputs are correct, and LLC outputs are correct, 5v in case of DIR being positive move, 0v when negative move commanded...
the only thing can think of is maybe the LLC is using open-drain (whatever that really is..?) and should be using push-pull (pull-ups..?), as the FAS commands are very fast, but how to tell FAS to use pull-ups on ESP32...? or is this irrelevante for outputs anyway on the dev board...?
I have made (my first) repo on github to add datasheets of components used, photos of circuit, more docs maybe of interest, I will later add also 3D model when completed, etc, and can add other suggested things here too..
https://github.com/andymid3D/PP-motorized-injector
I consider myself a mid-novice hardware and code user, autodidact since 15 (now 52), so am very aware that I know that I don't know more than I do, so any suggestions, guidance, tutorials, etc are welcome (although life is so busy, it would have to be directly related to learning my way thru the problem to be able to take on immediately, otherwise to the pile of course I want to brush up my knowledge about, but just too scattered to have time ATM!)
Beta Was this translation helpful? Give feedback.
All reactions