Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Stepper Motor

(you are viewing a thread; or go back to list of threads)

Stepper Motor (by Zoran)
When is stepper motor instruction going to be in use?
Wed Dec 11 2019, 15:10:15
(no subject) (by Ziggy)
Do you need it now?

If so consider a circular counter with an epoch equal to the number of states the stepper motor needs to go through for a complete drive sequence.
Say the motor needs to go through four different coil current combinations.
Set up a circular counter from 1 to 4 ( modulo 4).
Based on counter value energise a specific current drive combination.
Increasing counter content will result in steper motor activation.
Wed Dec 11 2019, 17:25:48
(no subject) (by José)

Hello... please... thank you ?
Thu Dec 12 2019, 03:16:13
(no subject) (by Zoran)
Problem with is stepper that speed is too low. I am using Jonathan method creating pulses for motor with speed control to drive stepper driver, on PIC with 0,2 cycle and digital driver on 400 resolution max speed is 120 revolution per minute.
With PWM max speed on which motor starts is 2,4KHz (360 revolution). For higher speed I need ramp and then it can run up to 12KHz (1800 revolution).
Problem is how to create linear ramp from 0Hz to 12KHz.
Thu Dec 12 2019, 14:00:55
(no subject) (by Ihor Nehrutsa)
to Zoran
I think you don't need a strictly linear ramp.
The linear ramp will be too slow and long.
You could try to increase the speed of the motor in steps.
You could start straightway from 2 kHz and then up it with a certain step.
Thu Dec 12 2019, 16:55:23, download attachment V(t).jpg
(no subject) (by Ihor Nehrutsa)
But the issue is how to count the motor steps(position)?
The software encoder is too slow for that. :(
Thu Dec 12 2019, 17:01:31, download attachment PWM_up.ld
(no subject) (by Zoran)
Thanks Ihor I will test it today. I use timer for stopping motor.
When You have small speed You need bigger driver and motor because of torque, smaller motor with ramp and higher speed will do the job.
Thanks
Fri Dec 13 2019, 09:21:32
(no subject) (by aydin)
Hi,
I think you want this. not tested, you share the driver and test result used. I wonder if I was successful
Fri Dec 13 2019, 11:39:00, download attachment PWM_up_1.ld
to Aydin (by Zoran)
there is something wrong with file I can not compile ld stop working.
Sat Dec 14 2019, 07:18:59
to Ihor (by Zoran)
In real life this doesn't work the frequency is always the same 2KHz.
Thanks
Sun Dec 15 2019, 08:54:46
(no subject) (by MGP)
It's normal ;)
Sun Dec 15 2019, 11:50:16, download attachment Snap84.jpg
For Ihor Nehrutsa) (by Paulino)
(por Ihor Nehrutsa) PWM_up.ld, I do not see how it really works, I made a modification to see the operation of your ladder, a question this PWM should stop when it ends or continues on a pre-set frequency.
My modification looks like the steps and once the whole process is done, it stays at 0. I don't understand how there are 2 STATE == 3
Sun Dec 15 2019, 12:57:52, download attachment PWM_upModi.ld
(no subject) (by Ihor Nehrutsa)
to Paulino
Please assign pins for I/O and PWM
Mon Dec 16 2019, 03:12:20
(no subject) (by Ihor Nehrutsa)
To MGP
Yes, we need reset PWM before set.

To Zoran
Unfortunately, it is not possible to set an arbitrary PWM frequency for AVR microcontrollers.
Mon Dec 16 2019, 10:20:08, download attachment PWM_up_down.ld
attachment (by Amjad)
i think this attachment will helpful to us
Wed Jan 1 2020, 15:40:09, download attachment PWM advanced-commands-13-1024.jpg
(no subject) (by Amjad)
another ladder logic in this showing how will reset PWM before set.
Wed Jan 1 2020, 15:46:34, download attachment PWM advanced-commands-14-1024.jpg
(no subject) (by Ihor Nehrutsa)
to Amjad

What program are these ladder screenshots from?
Thu Jan 2 2020, 02:49:42
(no subject) (by Paulino)
Hi Ihor Nehrutsa is from delta.Delta WPLSoft.

Hola Ihor Nehrutsa es de delta.
Thu Jan 2 2020, 04:21:55
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):