isaac879 / Pan-Tilt-Mount

A stepper motor driven, 3D printed and Arduino controlled pan/tilt mount.
MIT License
377 stars 99 forks source link

The slider doesn't change direction when I tell it to. #25

Open Nikitore opened 2 years ago

Nikitore commented 2 years ago

Hi, as I show in the video, when I try to change the direction of movement of the slider with the function ¨j¨ this does not change and continues in the same direction.

https://user-images.githubusercontent.com/99223586/162585901-b715d1ce-508c-41ad-9c05-24d15e7a3f28.mp4

I have already tested the wiring of the motors, changed the TCM 2208 driver, the continuity of the board between the output 3 of the arduino and the input Dir of the driver. Everything indicates that this would be fine. But the problem continues, I am inclined to think that the Arduino is not sending the electric pulse to the driver to change direction.

Do you have any idea what it could be?

isaac879 commented 2 years ago

The Arduino or TMC2208 might have a damaged/not working pin. I'd try replacing the Arduino and motor driver and see if either of them fixes the problem. Does the slider move in the opposite direction if you enter a negative value?

Nikitore commented 2 years ago

If I set negative values it keeps moving in the same direction. I tried swapping the stepper motor drivers and they all work correctly with the pan and tilt motors, but none of them work with the slider. So I was inclined to think that it might be the Arduino pin is damaged. I will try with another Arduino and let you know how it went.

Nikitore commented 2 years ago

Hi, I have already changed the Arduino and now the slider axis is working, but unfortunately the pan and tilt axes stopped working. What should be the ideal Vref in the drivers? I have the following motor models. Pan and Tilt Usongshine US-17HS4023 and Slider KS 2sth40-1204a. In all 3 cases the Vref is set at 0.92 volts. Could this voltage be affecting the correct operation of the motors?

Nikitore commented 2 years ago

And I think there must be some short circuit because both pan and tilt motors only being connected drained the battery very fast and overheated.