Browse Search Popular Register Upload Rules User list Login:
Search:
3 phase electric motor

Image:
screenshot of the scene

Author: Zoroark_GER

Group: Default

Filesize: 24.63 kB

Date added: 2020-12-12

Rating: 5

Downloads: 1549

Views: 177

Comments: 8

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

just a simple and strong scripted 3 phase motor.
i will still try to improve it (timing, density of the magnet n' stuff like that).
i will release this prototype to get some opinions and comments about it.
i appreciate every single comment.

u = start engine counterclockwise
i = start engine clockwise
if the motor runs about 200 rad/s you can activate both for more performance.
if the motor runs at about 100 - 110 rad/s you can easily change the rotation direction,
by disabling (and i mean DON'T delete the other laser but instead just press the other key
(i.e: you've pressed "i" so now press "u", or vice versa!)) one laser and just activate the other.
Last edited at 2020/12/12 23:54:21 by Zoroark_GER
Please log in to rate this scene
edit
Similar scenes
Title: Realistic, working electric motor
Rating: 7.353
Filesize: 106.25 kB
Downloads: 4178
Comments: 8
Ratings: 11
Date added: 2009/05/13 16:57:05
Made with: Phun
Rating: rated 7.4
download
Title: Space missile
Rating: 5
Filesize: 36.17 kB
Downloads: 633
Comments: 0
Ratings: 1
Date added: 2014/05/12 15:50:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Realistic, working electric motor - Version 2
Rating: 7
Filesize: 71.89 kB
Downloads: 2021
Comments: 3
Ratings: 10
Date added: 2009/05/15 13:24:16
Made with: Phun
Rating: rated 7
download
Title: Electric (attraction) motor
Rating: 5.5
Filesize: 25.45 kB
Downloads: 760
Comments: 2
Ratings: 2
Date added: 2011/06/26 16:49:36
Made with: Algodoo before v1.8.5
Rating: rated 5.5
download
Title: Electric Motor
Rating: 5.375
Filesize: 35.49 kB
Downloads: 1007
Comments: 0
Ratings: 2
Date added: 2021/07/15 18:47:45
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Electric Motor
Rating: 5.125
Filesize: 35.18 kB
Downloads: 592
Comments: 0
Ratings: 2
Date added: 2010/02/05 14:25:58
Made with: Phun
Rating: rated 5.1
download
1. There are no instructions of how to start/stop the motor and how to change speed.

2. It's not good programming practice to write data to a variable from two different locations. For example, you show "text = scene.my.attract3" in "PostStep" and in "update" within a geometry. That could cause conflicting data. Hint: "PostStep" executes code only when the scene is in RUN mode. "update" executes code when scene is in RUN or PAUSE. Do not put code in "update" unless you have a very good reason for doing so!

Other than those suggestions, you did a great job on the scene! :tup:
Thanks Xray. I will delete the code i forgot to delete in "update",
i think you mean those boxes i only left there for debugging purposes for experienced users.
Its also good to know where the difference is between "update" and "postStep".
And yes, i forgot to put some controlls into the description,
i was just afraid of getting banned for uploading stuff too many times.
for some reason the text doesnt changes, if i put
"(e)=>{text = scene.my.attract2}"
as example into "postStep"?
You: "I was just afraid of getting banned for uploading stuff too many times."

Me: You will not get banned for EDITING a scene many times! You may edit a scene a hundred times if needed. What will get a person banned for a few days is if they post more than 3 individual scenes in one day.

Also, I'll take a look at your script to see what the problem is, and I'll respond here after I figure it out.

UPDATE: Okay, here's the problem. In your code:
text = scene.my.attract1, the value located in the variable scene.my.attract1 is not in the correct format. In order to display text, the value must be in TEXT format, and not just a numeric value. You can do that by adding quotes to the code, which forces the text display to correctly display the data that's in the variable. So, you need to change the code to: text = "" + scene.my.attract1. When the text function sees the double quotes, it then assumes that the value in the associated variable is text and not simply a numeric value. Do the same with scene.my.attract2 and 3.

One more thing. By enabling both lasers, you run into the same problem that I mentioned earlier. That is, you are forcing the code to write different values to the same variables at the same time which is not recommended. By doing that, the scene might run erratically or may possibly freeze up. Besides, it doesn't make sense to try to run a rotating device in two different directions at the same time. Instead of telling users to delete a laser to change direction, why not just tell them to press the i instead of the u, or vice versa!

Hope this helps.
Last edited at 2020/12/12 23:34:20 by Xray
Update: meanwhile i was searching in algodoo wiki for how to make a "If ... Then ... Else ..." and did some coding. anyway thx, im gonna read every single Letter in your reply.
oh yes, for the problem with the code that gets forced to change the value of one variable is something i couldnt fix due to the design issue that this motor has, unless i take it the ability to spin in two different directions, wich wouldnt be a benefit at all.
Oh well.... We are not programming ICBM's with nuclear warheads, and so a little messy code is no big deal! :lol:
yea, i agree with that!:D