Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to generate a certain number of pulses with a fixed frequency but with soft start and stop.

Status
Not open for further replies.

H2M

Junior Member level 3
Joined
Aug 11, 2016
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
285
Hi,
I want to generate a certain number of pulses with a fixed frequency, but I want to start from a low frequency and increase it linearly until I rich to the target frequency (soft starting). the same procedure must be done for soft stopping. I am working on a 4-axis motion controller to drive stepper motors very soft at stop and start. please help me and suggest a good solution.
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,727
Helped
5,066
Reputation
10,157
Reaction score
4,924
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
133,191
Easily done if the pulses are created in software.
All you need is two targets, the start speed (which could be zero) and the maximum speed. The software simply increases or decreases the pulse rate in steps at a fixed rate until the target is reached. Setting the low target starts the count down and setting maximum target starts the count up.

Brian.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
23,018
Helped
4,715
Reputation
9,446
Reaction score
5,087
Trophy points
1,393
Activity points
152,504
Hi,

Why that vague informations?
"Certain number" means what? Give a range.

"Fixed frequency" and "soft start" is contradicting. What is the maximum traget frequency? Is it some Hz or some GHz?

What is your hardware? Discrete transistors, logic ICs, microcontroller, PLD...? Since you are posting in the microcontroller section, I guess microcontroller, what type?

There is ready to buy stepper controller hardware. Software even free. Like for arduino.

Klaus
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
50,786
Helped
14,600
Reputation
29,475
Reaction score
13,680
Trophy points
1,393
Location
Bochum, Germany
Activity points
290,842
You may start with a simple mathematical description of the ramped motion in terms of start/stop frequency, acceleration/deceleration rate and maximum frequency. It can be directly translated to a step frequency calculation algorithm.

If you are coding with fixed start/stop frequency and acceleration, a precalculated sequence table of step intervals is probably the most simple implementation.
 

danadakk

Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,203
Helped
343
Reputation
704
Reaction score
509
Trophy points
113
Activity points
9,756
Is the N pulses include freq ramp pulses or is ramp separate from the issue
of bursting N pulses ?

Bursting waveforms easy in HW, this is sine burst but trivial to do with pulses, a single chip approach -


Here is an approach for folks not code writers, this generates pusle trains of varying width and inter
pulse delay, but could be modified to N pulse generation. Not quite as flexible as above example
but maybe could be modified.




Regards, Dana.
 

ZASto

Advanced Member level 3
Joined
Jan 9, 2008
Messages
822
Helped
158
Reputation
321
Reaction score
151
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
5,764
Take a look in SpeedyStepper or FlexyStepper libraries for Arduino platform.
Everything what you need is there or source code for GRBL (CNC controller), also on Arduino platform.

BTW, there is a fork for GRBL capable of dtiving 5 axes runnung on Mega2560 and a fork for the same "firmware" running on STM32F103 - BluePill
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top