Thank you for your reply x1 position of the ball - 0 when the ball touches EM1, 0.016 when the ball touches EM2 - unit [meter] x2 velocity - unit [meter per second] x3 current in EM1 - unit [Ampere] x4 current in EM2 - unit [Ampere]

You need to set up initial conditions for your case:

initial value for x1, x3,x4 etc.

What you need to do is translate those equation into EJS and add view elements for your case. Try to do it with EJS, and write down where you do know what to do next. Upload your ejs source and we will try to help you.

Hello. I did something in EJS, but it doesn't work correctly. I attach my source code. This is a highly nonlinear model. How i can insert limit variable x1, x3, x4 ?

*** There are 1 more attached files. You need to login to acces it!

Thank you for your reply x1 position of the ball - 0 when the ball touches EM1, 0.016 when the ball touches EM2 - unit [meter] x2 velocity - unit [meter per second] x3 current in EM1 - unit [Ampere] x4 current in EM2 - unit [Ampere]

Only magnet ball is movable

Please provide the possible range of x1 (from 0 to ) From the above picture , do you mean . However, the initial value for x1 is 0.09 in your source code. I am really confused. Please also provide the size of the ball and Initial values for x2,x3,x4

I need those information in order to help (Those values assigned in the maglevkam.ejs are different from what you have provided in the previous posts).

Range of x1 is form 0 to 0.016. (). This is the maximum distance between the electromagnet EM1 and ball. I have mistake in my source code. Ball diameter is 0.06 meter The initial value: x1 = 0.009 x2 = 0 x3 = 0.9345 x4 = 0 It means that the ball velocity is equal zero. The ball is levitating kept at the 9 mm distance from the bottom of the upper electromagnet. The 0.9345 A current flowing through the magnetic coil is the appropriate value to balance the gravity force of the ball.

« Last Edit: June 25, 2011, 06:42:45 pm by cruels »

The diameter of the ball is 0.06meter, it means that the radius is 3cm. Then the volume will be

You have provided that mass Then, the density of the ball is about . This seems to be quite small (less than water. ).

I did check out your code and try to run it(step by step). The value grow very rapidly. It might be due to some mistake (or wrong number or wrong sign) in the code.

Here is the simulation according to your model. However, I did not find the range where it is stable. You can use controlled feedback to make it stable.

Control feedback can work in this model. Have you applied control feed back? But the feedback used must be accurate to get desired Maglev range stability.

Magnetic Levitation occurs when an item, such as a train seemingly floats above the ground by way of a clever use of magnets. You can make a Magnetic Levitation experiment at home very easily using some simply materials.-*-