Stepper motor model

Is there a stepper motor model in Dyad?

AI says there isn’t, but it could be built. Perhaps I should rephrase my question: Did anyone build a stepper motor model in Dyad?

Having done or seen some of this done decades ago, I think you may need to be more specific with your question. One can do a 3D model in the magnetic domain using CAD models of tooth shapes and winding locations (Maxwell solver) or one can do various kinds of user-level models - maybe getting as simple as BEMF magnitude/shape, R, L values and inertia. In either case the driver circuit behavior is important. User models will want to do thermal equilibrium work because resistance and magnetic properties vary with temperature. I suspect this is why a simple model (as might exist for a DC brush motor) is less common.

Well, all I have is a datasheet of the stepper motor and the driver, no cad drawings. So the model should be simple, but I want to understand the max acceleration that is safely possible without loosing steps, taking the total inertia into account. Perhaps have some controller code generated. Understand vibrations.

The old school way to do this was to look at the torque-speed curve for your motor using your driver, if assuming simple current limited open loop stepping you’d need the curve for your driver’s supply voltage and switching current, and then decide how much torque you need for the load - then the remaining torque can be used to accelerate and for margin. This can be done in a spreadsheet. Then an acceleration table (or formula for generating such) can be computed and tried on the real device. This will ignore things like startup (where you don’t know the resting phase of the motor and it may start backwards) and the low-speed resonance which basically creates a zone you don’t want to stay in.

Newer drivers like the ones from Trinamic do more of this internally. I haven’t designed a system around those.

Today I gave Dyad the datasheet of the motor, the datasheet of the driver and the Arduino sketch that drives the driver from a student. It built a model and some examples to analyse the performance. It also shows some resonances.

So I have some code that works, all I had to do was to approve about 20 requests from the AI to execute code.

I don’t know yet how close it is to reality, but I will find out soon.

I’m kinda curious what the model will look like.

The resonance I spoke of is fairly simple - it comes from the inertia of the rotor and the stiffness of the torque vs position curve (thinking statically), or torque vs lead angle curve (when in smooth motion). It’s most typically excited by the stepping action itself (so one doesn’t dwell on those speeds) but can be excited by periodic external loads.