-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scanner_Controller.py script not work #2
Comments
Hi Henrik, Thanks for letting us know! As a quick fix to test your setup, you can run the script from an IDE such as PyCharm, with the project in the scAnt main directory. Then your interpreter should be able to find all the scripts. I will properly fix the issue shortly, so you can run the Scanner_Controller.py script without this workaround. In the meantime, would you mind running the scAnt.py script to see if the issue is occurring there as well? All the best |
ScAnt.py script seems to work. Now this recognize my camera model and also live view work. Edit: I just noticed that the stepper controller is not found.
|
ScAnt.py recognizes part of my step motors (on some level), so that error message is no longer relevant. I think that came because Pololu Tic control center software was open at the same time. But i can't start scanning because i get message "Stepper need to be homed before scanning!" Terminal show "Homing stepper X" and "Homing stepper Z", Y stepper is dead, nothing happens when pressing reset button. Pololu Tic control center software recognize all three step motors. Terminal messages when i try to move Y stepper: |
Did you add your stepper IDs in the Scanner_Controller.py script?
I assume you have, as the responses in the terminal appear correct. Could you send me a picture of the wiring of your stepper motors and limit switches? If the limit switches are not configured correctly, it may be that the program does not recognise them properly. We recommend connecting the limit switches to the Pololu Tic boards as follows: GND: Black Then the setup should be: for the Z-axis (camera slider) The TX of the limit switch of the Z-axis needs to be set to "limit switch forward" and to "limit switch reverse" for the X-axis (gimbal). The official documentation of the Pololu stepper controllers may provide some additional info, depending on your components and the type of limit switch: https://www.pololu.com/docs/0J71/4.14 |
Hi @henrikmyl , Glad to hear you were able to resolve the issue! All the best |
Hi, |
Hi @sbasnagala Input and motor settings > Motor > Invert motor direction Depending on the wiring of your steppers, your default direction may not be what the scanner expects. Also, ensure you are using step mode 1/8 for all motors for the correct range. The correct movement directions for each motor are: |
So when homing x-axis, what direction it should go? Ideally x-axis should stay perpendicular to the ground when homing, which is zero position, right? I tried putting 190 in the x-axis after homing, but axis never returned. |
When homing the X-axis it should move towards the end-stop (if it does not, the axis needs to be inverted via tic control centre). The "home" (and zero position) is at the end-stop as any other position has no absolute reference and may change with design modifications. The centre is at (positive) 190 and the maximum positive position is at 450 when using the original scAnt design. |
Hi Fabian, |
@sbasnagala I opened a new issue, so we don't go too far off-topic here :) |
When i try to run Scanner_Controller.py script i get error:
How i can fix that?
My system:
Windows 10
Spinnaker library 2.4.0.144
Blackfly S BFS-U3 camera
The text was updated successfully, but these errors were encountered: