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.
The ramp was the problem... A higher acceleration rate made it less noisy, but weird part is that the decelleration make a bit of noise in a certain area of the decelerating step.
No.. The time stamp on the ramp is not synchronized with the sound clip.. (I am not that fast when it comes to entering commands.... )
- - - Updated - - -
Why different ramps?...
I know other people have managed to do it with this one. The only things I could think, which could cause it to...
my motor is powered with an 12 V battery, it could be that the source is not stable i dont know, i have to test that.. but it should work.. so iam not sure what is wrong..
I havent put a cap. on the input wire.
i will later test with an higher acc an decel
I am currently trying to make my stepper motor ramp up and down as noiseless as possible, but for some reason am I not able to hit the right sweet spot, which causes my motor to get warm, and the motor to make noise in vibration. The top-speed it reaches it very noise free.
The motor i am...
I choose not to post the full code, as it would just cause confusing.. but can see that i might need to post it.
- - - Updated - - -
Here is the full code:
.cpp
#include "speed_profile.h"
speed_profile profile;
ros::NodeHandle nh;
std_msgs::Int16 status_step_count;
ros::Publisher...
I at the moment trying to extract a value that gets incremented inside of a ISR, but can't seem to get the final value, or the correct value.
here is the code:
How do i extract the newest value from the ISR?
code example:
volatile speed_prof profile;
bool activate = false;
void...
Ahh.. sorry my bad.
I wrote an implementation with the use a timer1 library i found on the arduino page https://code.google.com/archive/p/arduino-timerone/downloads.
Could any on you maybe comment on whether it would work or not.
.h file
#ifndef stepper_motor_h
#define stepper_motor_h...
It has a dir, en and step signal. en = enable (high when motor is being used), dir the direction. and step is a pwm, where the frequency determines the speed
I can see I have a lot of information that need to be processed..
But I can say that the stepper motor I am using is a pk244-01a 2-phase.
the controlboard is a st330-v3.
I do understand the concepts of interrupt... but aren't sure why i should use a timer.
if the problem is that I aren't able to do a analog read within the while loop, (which I have to do anyway), could I just not do it within the while loop?
would something like this work?
this is written on a arduino uno
int timestep = 1;
while(1)
{
unsigned long startTime = millis();
while(startTime != 500)
{
digitalWrite(step_pin,LOW);
delayMicroseconds(208/timestep)...
I guess i would go with the simple method, as it seem simpler an easier to comprehend than the NCO.
So.. I am microstepping my stepper motor, so archieve a smoother motion.
I decided within 10 second should the motor go from 0 to hz 48000 hz => 900 rpm.
Which means that for each 0.5 s...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.