Aug 28,2020
13,647 views
end-flag
  • Comments(10)
  • Likes(17)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
  • me again I made some major change : I connect ms1, ms2 and ms3 to the pins 4,5,6 to be able to manage the microstepping from the android app. When you initialize the app you set your microstepping, and you can change it after . The length is calculated according the microstepping, this allow you to use the slider either for very slow movements (timelapse) or very fast movement. The speed is displayed directly in cm/sec. I would be very happy to upload there .aia .apk and .ino files on this page, but I don't see how. I still have one problem : when the microstepping is on "full" the motor speed can't exceed around 3000steps/sec more than that it suddenly stop in the middle of the movement, with a high frequency noise. Is there some sort of saturation effect of the driver,or of the motor, or something about the current limit setting of the driver ? Thank you

    Reply
  • Me again, Some answer, more question and a statement : Calculation was finally simple with my pulley and 1/4 step microstepping (set with the switch low/high/low) the formula is 200L * railLength to get the correct distance. In fact the setting "smooth" or "very smooth" has NO EFFECT. That's why the calculation for the supposingly 1/16 microtepping was driving the dolly out of the rail.... I don't understand how was suppose to be set the microstepping with the code since on your PCB no arduino pins are connected to the A4988 ms1, ms2 and ms3 pins (they are just connected to the VCC through the switch), how the information is transmitted to the driver ? The statement : please make some corrections in this page with a clear explanation for the capacitor, the switch etc., the component list is not completed.

    Ahmed Ibrahim 2021-04-21 12:10:30Reply

    Hello Philippe, thanks for your observations and sharing it with the community. Firstly, I wanna clarify couple of things. the two different modes "Smooth" and "Very smooth" that you set from the mobile app, affects dramatically the equation that responsible for calculating the number of steps that the camera carrier should move along the rail. So, setting a wrong mode from the mobile app will make the slider not work correctly as stated in the tutorial. Also, you have to set the the dip switch position according to the mode that you have selected from the mobile app. If you have selected "smooth" then you have to set the dip switch to the 1/4 microstep resolution(LOW, HIGH, LOW). or if you have selected the "Very smooth" mode, you have to set the dip switch to 1/16 microstep resolution(HIGH, HIGH, HIGH). If you didnt set these two things right (the mode from the mobile app, and the microstepping resolution using the dip switch) that will cause problems like making the camera carrier move out the rail. Secondly, of course I don't set the microstepping from the code, you have to set it manually from the previously stated dip switch according the mode you have selected from the mobile app. putting in mind that if you set the dip switch to the ON position, then its HIGH. if you set it in the opposite position, then its LOW. You are right regarding explaining that part more and editing the BOM and I will do that soon. And if something is not clear please ask me about it here. Thank you!

    Reply
  • Hello, I solved my bluetooth problem by simply changing the module itself. I have an other question : You don't say much about the switch to set the microstepping of the driver. Your code is based on which position of this switch ? I came to the conclusion that, for the range of speed I need on my slider (2m) the quarter of step (low/high/low) is the best BUT it seems to put a serious mess in the setting of the initial length of my track : empirically I have to set 295cm for my track of 200cm and then set smooth movement (which I can understand since it depend of the number of teeth of my pulley, and the driver microstepping setting)), but I have to set 73 (295/4) if I choose next the very smooth option. Isn't there something strange ? Didn't you write the code to compensate microstepping options and then keep the same figure whatever is the next smooth or very smooth option ? Is it the switch option that disturb the code ?

    Ahmed Ibrahim 2021-04-21 11:40:59Reply

    Hello Philippe, you have to set the microstepping switch according to the mode you selected from the mobile app. for example if you selected smooth mode from the mobile app you have to set the microstepping switch to the 1/4 microstep resolution by setting the switch as follow LOW(MS1), HIGH(MS2), LOW(MS3). If you selected very smooth mode from the mobile app, you have to set the microstepping switch to the 1/16 microstep resolution by setting the switch as follow HIGH(MS1), HIGH(MS2), HIGH(MS3). Putting in consideration that the ON position on the switch is HIGH.

    Reply
  • Hi, I'm Max. I received the card for the camera slider www.pcb. Everything works fine, congratulations. I don't understand only part of the code function indicated by me in the attachment. Could you tell me what it is and how did you get 6100L? and 25000L? I believe from a mathematical proportion? Can you give me information on these numbers? Also an indication of any link. thank you so I know everything.

    Ahmed Ibrahim 2021-02-22 08:02:03Reply

    Hello Max, based on experiment I, concluded that the stepper motor moves 6100 step to reach the end of a 50cm length rail at 1/4 step resolution. Since, I have the used rail length(the user enters it in the mobile app) with these three parameters(real used rail length, number of steps of a 50cm rail at 1/4 step resolution, eperimented rail length ), I can calculate the needed number of steps for the stepper motor to move according to the step resolution that the user select in the mobile app. that's the formula(cross multiplication method): 50cm(rail length) 6100 step used rail length X(the number of steps we need to figure out)

    Reply
  • What about the capacitor and the switch which can be seen on the second wiring diagram ??? Are they unnecessary due to the bluetooth module ?

    I received the pcb, bought the elements including the capacitor and the switch that are not listed. I have assembled everything, I finally understood that the capacitor is suppose to go in the circle with +and - in the middle of the A4988 position. I think I did a neat job soldering everything. I uploaded the program on an arduino uno. Impossible to have any communication with HC05 module... I was wondering if a dedicated library shouldn't be install ?

    Ahmed Ibrahim 2020-12-27 08:54:20Reply

    Hello Philippe, sorry for the late reply. If you still have the problem, please share with me the error message or any helpful data and I i will help you to solve it, thank you

    Reply
VOTING 1 votes
  • 1 USER VOTES
10.00
  • YOUR VOTE 0.00 0.00
White
Engineer
  • 10
    design
  • 10
    usability
  • 10
    creativity
  • 10
    content
10.00

More by Ahmed Ibrahim

You may also like