Jump to content
THIS IS THE TEST SITE OF EUROBRICKS! ×
THIS IS THE TEST SITE OF EUROBRICKS!

Recommended Posts

Posted

Thinking of doing a project, but I have no mind storms experience.

Can I make a program rotate a servo motor 90 degrees- perform another function or two and rotate the servo -270 degrees or something similar?

Can I, no matter how far the servo motor is rotated "reset" to an original position- like a "home" position?

If so I may need to look closely at Mind storms.

Posted

You sure can!

Currently I am working on a new Mindstorms project as well, and it would be great to see more projects. So yeah, do it....and share it! I will create a WIP topic too.

Posted

Thanks guys- and to reiterate- the servo motor has a reset or a default "home" position it can move to?

This project isn't really making a robot... not exactly... just something that popped into my head related to another project.

I have lots of experience with logic and even some computer programming, so I should be able to use the program without much issue, I just wanted to make sure the servo motor and program would actually do theses things before I went down this path!

Posted

Thanks guys- and to reiterate- the servo motor has a reset or a default "home" position it can move to?

This project isn't really making a robot... not exactly... just something that popped into my head related to another project.

I have lots of experience with logic and even some computer programming, so I should be able to use the program without much issue, I just wanted to make sure the servo motor and program would actually do theses things before I went down this path!

The motors are more like stepper motor and dont rotate a certain degrees but can do something like this.

[rotate A 90] [rotate A -90]

but in the block form of the EV3 program.

Posted

You can select whether the motor should run a certain time, degrees, etc. It's not returning back to it's original position, like the PF servo motor.

The motors are more like stepper motor and dont rotate a certain degrees but can do something like this.

[rotate A 90] [rotate A -90]

but in the block form of the EV3 program.

I think you can run a certain number of degrees, which allows for precise control of your motor.

You can also run 200ms forward, then 200ms backwards, although this might not end up in the exact beginning position.

Posted

If you want to set a "Home position", you need the Motor Rotation block (yellow) and use the "Reset" mode. This sets the position that will be treated as "0". When you want to return to home, use the Motor Rotation block set to "Degrees", a Math block set to "x" and the motor block. Basically, you want to take the output of the degrees block, multiply by -1 and then use that as the number of degrees to rotate. Example:

Motor is 90 degrees away from start point (block reads "90").

Rotate by -90 degrees.

Home :classic: !

Posted

If you want to set a "Home position", you need the Motor Rotation block (yellow) and use the "Reset" mode. This sets the position that will be treated as "0". When you want to return to home, use the Motor Rotation block set to "Degrees", a Math block set to "x" and the motor block. Basically, you want to take the output of the degrees block, multiply by -1 and then use that as the number of degrees to rotate. Example:

Motor is 90 degrees away from start point (block reads "90").

Rotate by -90 degrees.

Home :classic: !

That's a simple, but very useful tip!! Thanks for sharing it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...