Replies: 3 comments 4 replies
-
Wow, what a model. Great. Do you mean a pneumatic switch like this on a PF motor? You speak of setting the angle, but the PF-motors have only the duty-cycle to set the speed. There are a few problems to overcome:
You could try to move the switch with a low duty-cycle You probably already looked at the stable PFMotor doc Does this help you getting started? Bert |
Beta Was this translation helpful? Give feedback.
-
Oops, sorry. That is better, those motors do have internal sensors. Thinking out loud (no programming language, just thinking):
To get started with detecting the switch endpoints, look at doc about run_until_stalled In that same doc there are example Stall examples Let me know your progress. Bert |
Beta Was this translation helpful? Give feedback.
-
Hi @BertLindeman and @laurensvalk, Thanks a lot for your help, I tried this setup and program and that seems to work. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm totally new here at the forum and working with Pybricks, I hope you can help me here and there to get a nice program for our model of a ship.
In this ship we made 3 pneumatic switches who will be operated bij PUP L motors.
What's the best way to program them?
We tried to do it by setting the angle, but it worked only into one way, it doesn't want to turn into -degrees.
We also tried with the steering function, but there with the calibration by starting it's not pushed to the and of what the switch needed, so there we using the switch only partially. We had this last problem also with the pup app, so there we pushed a few time on the red 'stop' button until it worked properly. One option is to do the syncing a few times, but I guess there is a better solution.
I will attache some files to show what we did.
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions