Sarah2005

programmieren mit Mindstorms classroom

Recommended Posts

Hallo,

Ich habe selbst eine Presse gebaut zu der es keine Anleitung gibt und habe jetzt das Problem, dass ich sie gerne über Mindstorms Classroom programmieren würde. Das bekomme ich auch grundlegend hin aber ich habe 4 große Motoren nebeneinander und muss gleichzeitig ansteuern. Ich weiß aber nicht wie ich das machen soll da ich (was ich bisher weiß) nur zwei ansteuern kann.

Gibt es eine Möglichkeit stirbt auf 4 zu erweitern?

Dankeschön im Voraus.

Share this post


Link to post
Share on other sites
Just now, Sarah2005 said:
Hi there, I built a press myself for which there are no instructions and now have the problem that I would like to program it using Mindstorms Classroom. I can basically do that, but I have 4 large motors next to each other and have to control them at the same time. But I don't know how to do that because I (what I know so far) can only control two. Is there a way to expand this to 4? Thank you in advance.

 

Write two commands for 2 motors eachdirectly  one after another or 4 commands for the 4 motors.

Share this post


Link to post
Share on other sites

Wenn ich das so schreibe drehen sich immer erst zwei und dann die anderen zwei Motoren. Mache ich etwas falsch oder geht das nur so? Ich bin noch neu was die Classroom Programmierung angeht deshalb muss ich so fragen.

Share this post


Link to post
Share on other sites

There is a limitation in the EV3 firmware that makes it so that only one pair of motors can be used at a time. When the second block with ports B and D starts, it stops the motors on ports A and C and replaces them with B and D.

You can try using the single motor control blocks instead.

Share this post


Link to post
Share on other sites

Hallo David Lechner,

Das Problem ist das ich eine Platte zum zerpressen über Kolben herunterfahren lassen muss. Ich bin auch auf angewiesen, dass sich die 4 Motoren meine Sternmotoren sich Parallelbewegung.

Wenn ich die einzelnen Motorblöcke nutze  schaltete er sie nacheinander.

Share this post


Link to post
Share on other sites

Can you use broadcasts to make the actions run in parallel?

 

 

hmm... I can't upload the rest due due to upload size limit.

Edited by David Lechner

Share this post


Link to post
Share on other sites
45 minutes ago, David Lechner said:

There is a limitation in the EV3 firmware that makes it so that only one pair of motors can be used at a time.

 

Hi David, with LabView that all works.
So it should not be the FW.

But the program is wrong: of course first the command "run fur 1 revolution" is executed and finished, after that(!) the second. Which is correct and quite normal.
You should start all motors fur "run"  and then wait for an event to stop them all (sensor).

Or use parallel blocks (if this is possible in classroom)

 

 

Edited by Lok24

Share this post


Link to post
Share on other sites

Try this for screenshot: https://1drv.ms/u/s!ApX9UuctkzDDkCqdHnBh8L229mjh

2021-01-09_11-15.png?psid=1&width=1424&h

Und auf Deutsch: https://1drv.ms/u/s!ApX9UuctkzDDkCmCjsYH67HJsbRM

2021-01-09_11-16.png?psid=1&width=1519&h

Quote

Hi David, with LabView that all works.
So it should not be the FW.

The same thing will happen with the EV3 Lab software if you try to use Move Steering or Move Tank with 4 motors at the same time. The second block with 2 motors will interrupt the first block with the other two motors.

Edited by David Lechner

Share this post


Link to post
Share on other sites

Sorry, I missunderstood, you're right.

I meant  "start all" , which means 4 commands for 4 motors. And that works :wink:.

What I just did (in LabView, having no classroom installed):

Start A
Start B
Start C
Run D for 1 revolution
Stop A
Stop B
Stop C

That should work with classroom as well.

Edited by Lok24

Share this post


Link to post
Share on other sites
Just now, Lok24 said:

I meant  "start all" , which means 4 commands for 4 motors. And that works :wink:. 

Yes indeed. This is what I tried to do in the EV3 Classroom example I posted, except it tries harder to make sure each motor runs exactly one rotation.

Share this post


Link to post
Share on other sites

Just added my example to make clearer.....
But as you say: they don't turn exactly 360°

Edited by Lok24

Share this post


Link to post
Share on other sites

Danke euch beiden,

ich habe es hinbekommen und alles läuft so wie es soll. Jetzt muss ich nur noch machen, dass sie am Ende wieder hoch fahren.

Danke.

 

Share this post


Link to post
Share on other sites

Hallo ich hätte mal eine Frage,

und zwar kann ich zwei EV3 Steine verbinden das miteinander kommunizieren?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.