Author Topic: Vernier Caliper and Micrometer with zero error options  (Read 115913 times)

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Vernier Caliper and Micrometer with zero error options
« on: November 23, 2007, 05:46:01 pm »
This is an EJS version of vernier caliper with option for positive or negative zero error for faulty caliper(Adjust the vertical slider up/down).
Click the checkbox to find out the base unit and the correct value.
You can select different type of vernier caliper,too (from the selection list).

A new 1/128 inch mode has been added!
-*-

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Caliper
« Reply #1 on: November 24, 2007, 11:19:45 am »
Due to request from one of the user.
Quote
I hope you will create one on micrometer screw gauge, hopefully, with zero error as well, so that we will know how to handle with it properly.
The following micrometer applet was created with zero error. (previous version Micrometer applet)

Usage: Click Demonatration to view flash swf file.
Click

Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!
to view another simulation or check out Micrometer with zero error options.

-*-

1993.bryan

  • Newbie
  • *
  • Posts: 3
Re: Vernier Caliper and Micrometer with zero error options
« Reply #2 on: November 26, 2007, 09:11:19 am »
Thank You!

lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #3 on: May 12, 2008, 03:05:19 pm »
hi prof,

i want to make a pointer to point the user's attention to the upper scale number like the way for the bottom scale.

like in the lower scale
i changed to (xp , y2-size) for the arrow for the bottom


so for example,

12.5 mm = 12 + 0.5 mm

need to understand how you reference the coordinates of 12 in the drawing panel?
chance to explain?  ;D


there is an website applet that i am trying to customize to do
http://members.shaw.ca/ron.blond/Vern.APPLET/index.html





« Last Edit: May 12, 2008, 03:29:48 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #4 on: May 12, 2008, 11:59:14 pm »
The coordinate system in the drawing panel were determined by xmin,xmax,ymin,ymax property in the drawing panel.
And the ejs let you access user coordinate as variable value. If you know where to draw the string 12, you should know the coordinate.
I am sorry that I did not fully understand what is your question? ???


lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #5 on: May 13, 2008, 08:43:31 am »
i have been examining the codes and i just cannot figure out the codes that correspond to the answer here.

u can examine my xml  ;D

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #6 on: May 13, 2008, 11:21:48 am »
Array xm[nm] store the coordinates for all the upper marker (vertical lines) and the separation between lines is dxm.

Initizlize Tab:
xm=x2+zerox+i*dxm;

Constraint Tab:
From the displacement x, you can find the number (int)(x/dxm);

l_x=dvalue(x/dxm,unit)+"mm";

lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #7 on: May 13, 2008, 03:09:25 pm »
wow.... i did it!!!

i assign in fixed relations:

vss = (int)(x/dxm); // to count the value of the answer as u hinted
xpt=xm[vss];  // assign xpt to xm [ array determine by vss ]


u r the best !!! thanks!


BTW i will continue to post the collaborated work here for others to learn from my comments lines in the source code xml



end of the day, would you be hosting my derived work on your forum as evidence of this good example of 21 st century collaboration cum distance learning :) ?? that will be so cool

thanks for a wonderful deep learning experience.  ;D

« Last Edit: May 13, 2008, 03:15:12 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #8 on: May 13, 2008, 03:19:34 pm »
I am glad that I can help and you are a very active learner. So I am really enjoy working with you.
I think you still need to improve the simulation. Something wrong in your applet, please check out attached image. I will post you simulation when you make it a better one.  ;)

lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #9 on: May 13, 2008, 04:38:45 pm »
it is going to be the best vernier applet in the whole physics teaching community for the world :)

i am glad to be part of your effort to give free physics learning-by-doing education.

it is correct :) i have number to prove LOL.
« Last Edit: May 13, 2008, 05:42:24 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #10 on: May 13, 2008, 10:09:23 pm »
Sorry, You are right. I made a mistake. The applet is fine.
However, there are some error when loading your file with my EJS. (I am using old version ejs, not the same as your version).
So those numbers from the left panel was missing. The compiled version of your work is shown here.
Click image to toggle applet view:


lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #11 on: May 14, 2008, 06:30:27 pm »
this is the final version, hope the public learners here like it

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #12 on: May 17, 2008, 11:30:27 pm »
Nothing changed when I change the selection in the combobox?
Could you upload the jar file for the above applet (weecaliper09.jar),too!
So that I can check it!

lookang

  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Vernier Caliper and Micrometer with zero error options
« Reply #13 on: May 19, 2008, 10:37:04 pm »
ok

but the jar file is 1.36MB, i dont think ur forum allows large attachment

i export as html n zip it....u try to unzip and run :)



OR

r u talking about the other applet on the vector sum.....with some component combo box?
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=216.msg2359#msg2359
« Last Edit: May 19, 2008, 10:42:17 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Vernier Caliper and Micrometer with zero error options
« Reply #14 on: May 20, 2008, 10:14:09 pm »
You do not need to upload the ejs library jar files.
Just upload jar file for your simulation. For example: weecaliper09.jar
It should be a small size jar file. (Usually less than 100K)