Go to advanced search

by fmas
Tue Aug 13, 2019 11:40 pm
Forum: C/C++
Topic: Measuring stepper motor distance travelled with PWM
Replies: 7
Views: 3419

Re: Measuring stepper motor distance travelled with PWM

Thank you all for your help! So my question is: How are you generating that micro-stepping, continuously variable PWM drive signal? I ask because if you are doing it with software running on the Raspberry Pi, somewhere in that software it knows how many complete steps and micro-steps it is commandin...
by fmas
Tue Jul 23, 2019 11:43 pm
Forum: C/C++
Topic: Measuring stepper motor distance travelled with PWM
Replies: 7
Views: 3419

Re: Measuring stepper motor distance travelled with PWM

I have considered counting the pulses, however, the number of pulses still doesnt help me accurately measure the distance travelled since i don't know the distance per step. Previously, I was using the number of steps to determine distance travelled because the motor had a fixed step distance, but w...
by fmas
Thu Jun 27, 2019 12:48 am
Forum: C/C++
Topic: Measuring stepper motor distance travelled with PWM
Replies: 7
Views: 3419

Measuring stepper motor distance travelled with PWM

Hi team! I'm working on a project in C++ with a stepper motor moving a platform back and forth. I need to be able to change the motor's speed and measure the exact distance the motor (and stage) has travelled. Currently, I can successfully step the motor and change the speed by changing the frequenc...
by fmas
Mon Jul 30, 2018 4:29 am
Forum: C/C++
Topic: wiringPiISR switch bounce
Replies: 7
Views: 2612

wiringPiISR switch bounce

Hello, I am trying to include an interrupt with a switch in my code with wiringpi. When i press the swtich it is triggered several times due to bounce and wiringPiISR continues to be called. Is there any way to implement a glitch filter or include a delay in wiringPiISR? This is the code I've writte...
by fmas
Tue Jun 19, 2018 11:54 pm
Forum: C/C++
Topic: undefined reference to wiringpi
Replies: 3
Views: 1004

undefined reference to wiringpi

Hi team, I know several posts have been made about this, but after looking through them I still cannot solve this issue. i am trying to control a stepper motor with wiringpi but when i try to compile i get the undefined reference to error for wiringpitsetupgpio, pinmode, digitalwrite and delay. I co...

Go to advanced search