Skip to content
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

PINDA simulation #13

Closed
vintagepc opened this issue Apr 7, 2020 · 8 comments · Fixed by #73
Closed

PINDA simulation #13

vintagepc opened this issue Apr 7, 2020 · 8 comments · Fixed by #73
Assignees
Labels

Comments

@vintagepc
Copy link
Owner

Simulate the PINDA.

@vintagepc vintagepc added the Hardware sim Simulated hardware label Apr 7, 2020
@leptun
Copy link
Collaborator

leptun commented Apr 7, 2020

Not only the pinda, but also the other 5 axis ends.
And just as a bonus, maybe also a way to trigger crash detection.

@vintagepc
Copy link
Owner Author

Good point! (Though at least for the X/Y endstops I think those are going to be part of the motor simulation, e..g if the tracked position <=[MIN_VAL] or >[MAX_VAL] then we fire an endstop signal.

Seems like that's the first step along the road to implementing a simulated sensorless home :-)

@vintagepc
Copy link
Owner Author

Update - the thermistor is wired in, so now this task basically boils down to packaging that aspect together with a "button" as an endstop (and with an input IRQ that can be wired to a simulated motor to fire at a given Z height)

@vintagepc
Copy link
Owner Author

In my TMC branch I've temporarily wired in the Z min endstop to a min out flag on the TMC simulator.

Longer term it would be good to make the PINDA have customizable trigger heights (e.g. cycling through a list of them) to make it easy to simulate various MBL conditions.

@vintagepc vintagepc self-assigned this Apr 22, 2020
@vintagepc
Copy link
Owner Author

I'll take a crack at this next. I think I'll make it so that you can give it an z/y/z map to simulate a given bed level scenario and wire it to the position inputs so that it works regardless of what the probe sequence is (e.g. 2 measurements per point vs 5 measurements, 3x3, 7x7, etc).

@vintagepc
Copy link
Owner Author

XYZ cal pass!
image

@leptun
Copy link
Collaborator

leptun commented Apr 23, 2020

Just tested the new XYZ calibration. Very nice!

@vintagepc
Copy link
Owner Author

Thanks! I'd never actually had serial connections open when running that so it was kinda cool to see it mapping out the bed over the terminal.

(Definitely helped debugging it too, had to alter the z-trigger function coefficients a bit to get it into a shape that it liked. )

vintagepc added a commit that referenced this issue Jul 25, 2020
Functional PINDA(#13), much improved colour scheme option, better window title.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants