Re: Stepper 288yj-48 - stop and restart from the latest position
Posted: Sun Apr 26, 2020 12:22 pm
Hi Bob, how are you?
There’s a problem with StepperX due to the gear ratio, don’t hate me!!!
I thought I could have solved it by re-calculating the number of teeth and by re-3Dprinting the gears, but it would be actually easier and waste-less to change the code instead. But I don’t know how much work this would actually involve.
Basically with what we have now, 240 degrees of the small gear corresponds to a 20 degrees movement of the big wheel.
Here below why:
Given a 15 teeth gear that needs to move a 180 teeth gear, I calculate:
Na = 15
Nb = 180
Nb / Na = ωa / ωb = 180 / 15 = 12
ωa / ωb = 12
ωb = ωa / 12
ωa = 240
ωb = 240 / 12 = 20
Here more info about the formula:
https://en.wikipedia.org/wiki/Gear_train
With this said, to understand how many cycles the small gear needs to complete to move the big wheel in a range of 240, I calculated the proportion:
20 : 240 = 240 : x
x = 2,880
2,880 / 360 = 8
***
Therefore, to move the camera in a 240 degrees range the small gear needs to complete 8 full cycles. Considering this, I thought it would have been smoother to think about the end of each cycle as a position where to shoot. Therefore there’ll be 9 shoots per each of the 240-degrees movements.
It will then be 8 cycles clockwise 8 cycle counter clockwise and so on for 36 times.
Would you still like / have time to give it a go?
Also, no news about the camera, but I discover yuv format can't be processed by the photogrammetry softwares.
Therefore it'll have to be one of these ones you listed:
'rgb' - Write the raw image data to a file in 24-bit RGB format
'rgba' - Write the raw image data to a file in 32-bit RGBA format
'bgr' - Write the raw image data to a file in 24-bit BGR format
'bgra' - Write the raw image data to a file in 32-bit BGRA format
Thanks!! Enjoy the suuun!
There’s a problem with StepperX due to the gear ratio, don’t hate me!!!
I thought I could have solved it by re-calculating the number of teeth and by re-3Dprinting the gears, but it would be actually easier and waste-less to change the code instead. But I don’t know how much work this would actually involve.
Basically with what we have now, 240 degrees of the small gear corresponds to a 20 degrees movement of the big wheel.
Here below why:
Given a 15 teeth gear that needs to move a 180 teeth gear, I calculate:
Na = 15
Nb = 180
Nb / Na = ωa / ωb = 180 / 15 = 12
ωa / ωb = 12
ωb = ωa / 12
ωa = 240
ωb = 240 / 12 = 20
Here more info about the formula:
https://en.wikipedia.org/wiki/Gear_train
With this said, to understand how many cycles the small gear needs to complete to move the big wheel in a range of 240, I calculated the proportion:
20 : 240 = 240 : x
x = 2,880
2,880 / 360 = 8
***
Therefore, to move the camera in a 240 degrees range the small gear needs to complete 8 full cycles. Considering this, I thought it would have been smoother to think about the end of each cycle as a position where to shoot. Therefore there’ll be 9 shoots per each of the 240-degrees movements.
It will then be 8 cycles clockwise 8 cycle counter clockwise and so on for 36 times.
Would you still like / have time to give it a go?
Also, no news about the camera, but I discover yuv format can't be processed by the photogrammetry softwares.
Therefore it'll have to be one of these ones you listed:
'rgb' - Write the raw image data to a file in 24-bit RGB format
'rgba' - Write the raw image data to a file in 32-bit RGBA format
'bgr' - Write the raw image data to a file in 24-bit BGR format
'bgra' - Write the raw image data to a file in 32-bit BGRA format
Thanks!! Enjoy the suuun!
