47 résultats trouvés

par Micropuller
jeu. 19 janv. 2023 12:25
Forum : Cartes arpschuino / arpschuino boards
Sujet : Steppers start rotating after homing when DMX signal not available
Réponses : 5
Vues : 3314

Steppers start rotating after homing when DMX signal not available

When I power on the Arspchuino32, the steppermotors start homing. This is done in the setup, so the DMX signal isn't been read yet. When the setup is finished and the board reads the DMX signal, the motors will travel to the position which is read (usually zero). But when there is no DMX signal avai...
par Micropuller
jeu. 19 janv. 2023 02:35
Forum : Cartes arpschuino / arpschuino boards
Sujet : [RéSOLU] Steppermotor moves erratically when DMX value is ramped up slowly
Réponses : 33
Vues : 10761

Re: Steppermotor moves erratically when DMX value is ramped up slowly

I added a couple of delays to the set_direction part in the Arpstepper library. That seems to have solved the issue. I tried several delay periods. 10 microseconds wasn't enough. 15 microseconds worked, but at 20 microseconds the motor sounds better and it doesn't seem to affect the motor's performa...
par Micropuller
jeu. 19 janv. 2023 01:54
Forum : Cartes arpschuino / arpschuino boards
Sujet : [RéSOLU] Steppermotor moves erratically when DMX value is ramped up slowly
Réponses : 33
Vues : 10761

Re: Steppermotor moves erratically when DMX value is ramped up slowly

I tried boosting the voltage using a level converter, but that didn't help. Maybe this is also a timing issue? From the driver manual: (1) ENA must be ahead of DIR by at least 5μs. Usually, ENA+ and ENA- are NC (not connected). (2) DIR must be ahead of PUL effective edge by at least 5μs to ensure co...
par Micropuller
jeu. 19 janv. 2023 00:47
Forum : Cartes arpschuino / arpschuino boards
Sujet : [RéSOLU] Steppermotor moves erratically when DMX value is ramped up slowly
Réponses : 33
Vues : 10761

Re: Steppermotor moves erratically when DMX value is ramped up slowly

Just a thought: could it be the signal voltage? When ramping up, the dir pin is set high and when ramping down the dir pin is set low. When I measure the voltage at the dir pin when ramping up the DMX value quickly, it's 3V. But when I measure the voltage whilst ramping up the DMX value slowly, I So...
par Micropuller
jeu. 19 janv. 2023 00:15
Forum : Cartes arpschuino / arpschuino boards
Sujet : [RéSOLU] Steppermotor moves erratically when DMX value is ramped up slowly
Réponses : 33
Vues : 10761

Re: Steppermotor moves erratically when DMX value is ramped up slowly

Maybe this will make it a bit clearer: https://youtu.be/tpsa3cNuhgc I start bij ramping the DMX value up quickly from 0 - 255. The motor turns clockwise (0:00 - 0:06) Then I ramp the value down quickly from 255 - 0, The motor turns counterclockwise (0:0 - 0:10) Again from 0 - 255 quickly, the motor ...
par Micropuller
mer. 18 janv. 2023 23:28
Forum : Cartes arpschuino / arpschuino boards
Sujet : [RéSOLU] Steppermotor moves erratically when DMX value is ramped up slowly
Réponses : 33
Vues : 10761

Re: Steppermotor moves erratically when DMX value is ramped up slowly

Whilst the homing seems to be working fine now, I'm still having this problem. I have one steppermotor that uses an external driver and one that uses a Pololu A4988. The problem I'm having, is that one of the motors behaves erratically (moves back and forth) when I ramp the DMX value up slowly. This...
par Micropuller
mer. 18 janv. 2023 11:05
Forum : Cartes arpschuino / arpschuino boards
Sujet : Steppermotor homing?
Réponses : 27
Vues : 15832

Re: Steppermotor homing?

I found one little mistake. I connected a second motor, to check if everything was working correctly. Only the first motor was homing, but I had to activate the home switch of the second motor to be able to control the motors. I had to change m_stepper[0].refresh(255, 50); to m_stepper[i].refresh(25...
par Micropuller
mer. 18 janv. 2023 01:32
Forum : Cartes arpschuino / arpschuino boards
Sujet : Steppermotor homing?
Réponses : 27
Vues : 15832

Re: Steppermotor homing?

Just out of curiosity; I was watching the serial monitor, when I noticed this. stepper 0 steps per revolution : 400; rpmmin : 50; max : 500; revolutions : 27.00; action : perform; DMX resolution : 8bits m_RPM_min : 50 m_motor_speed_min : 3000 m_motor_speed_max : 300 Are these values correct?
par Micropuller
mer. 18 janv. 2023 01:11
Forum : Cartes arpschuino / arpschuino boards
Sujet : Steppermotor homing?
Réponses : 27
Vues : 15832

Re: Steppermotor homing?

I think it was a timing issue. Could it be that it has to do with this? (from the stepperdriver manual): (1) ENA must be ahead of DIR by at least 5μs. Usually, ENA+ and ENA- are NC (not connected). (2) DIR must be ahead of PUL effective edge by at least 5μs to ensure correct direction (3) Pulse widt...