NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
July 30, 2014, 07:54:06 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Know yourself. Questioning. ...Socrates (469-399 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1] 2   Go Down
  Print  
Author Topic: Ejs open source Vernier calipers java applet with objects, help & 0-error logic  (Read 59493 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
on: June 05, 2008, 10:48:46 pm »

Ejs open source Vernier calipers java applet with objects (Sept2009) and zero error logic (Sept2009) with now input field (Nov2009) for checking understanding (29Nov2009) better blue object collision detection, now with depth stem and test-tube (07Mar2010), added some cosmetic inspired by the Vernier logo after AAPT 17-21 July 2010 workshop W05, got to know the fantastic host Mr. Vernier!

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
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!



You are welcomed to check out
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth) in misc by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1408.0
vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth) in Ahmed's contribution http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1573.0
Vernier Calipers in Ahmed's contribution http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1513.0
Vernier Caliper and Micrometer with zero error options in misc by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1292.0
Vernier in Misc by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=52.0
Another Cliper in misc by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1189.0


* vernier caliper.png (45.4 KB, 1280x800 - viewed 347 times.)
« Last Edit: December 11, 2012, 11:23:59 am by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: June 07, 2008, 09:17:02 am »

Thanks to Prof Hwang for being a great teacher.
Ejs open source Vernier calipers applet with many options for smallest division

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).

Vernier calipers applet with many options for smallest division by Prof Hwang and lookang
Thanks to Prof Hwang for sharing his original source codes, his passion for sharing knowledge and guidance .
This work is licensed under a Creative Commons Attribution 2.5 Taiwan License.
reference:
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=567.msg1940#msg1940
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1189
http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090115/weecaliper09international_Simulation.html
http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090122/weecaliper09international.html

cited by:
http://en.wikipedia.org/wiki/Vernier_caliper not any more, think wikipedia got some rules against external links to discussion forum, some body always delete the link. accurate as 01 dec 2009
http://en.wikipedia.org/wiki/Caliper


Vernier calipers
Vernier calipers can measure internal dimensions (using the uppermost jaws in the picture at right), external dimensions using the pictured lower jaws, and depending on the manufacturer, depth measurements by the use of a probe that is attached to the movable head and slides along the centre of the body. This probe is slender and can get into deep grooves that may prove difficult for other measuring tools.
The vernier scales can be in metric measurements on the upper and lower part of the scale.
Vernier calipers commonly used in industry provide a precision to a hundredth of a millimetre (10 micrometres).
A more precise instrument used for the same purpose is the micrometer
 
.Parts of a vernier caliper:
Outside jaws: used to measure external diameter or width of an object (Blue)
Inside jaws: used to measure internal diameter of an object
Depth probe: used to measure depths of an object or a hole ( not shown in this model)
Main scale: gives measurements in mm.
Vernier gives measurements up to one decimal places in mm
Retainer: used to block movable part to allow the easy transferring a measurement ( not shown in this model)
The Vernier calipers model has
an object (Blue) for the internal jaws to measure width of an object with slider to control width of the object and simple drag action to control position of object.
an object (Green) for external jaws to measure internal diameter of a cylinder for example with slider to control dimensions of the cylinder.
a slider for zero error slider
checkbox for hint to scaffold the learners attention and point of focus
checkbox for answer to show the meaning of reading on the main scale and the vernier scale with zero error calculations if any.
drop down menu of the various common vernier scales for sense making and additional testing out by learners their ideas of how vernier works.
fine <> control buttons for learners to manipulate the model with single incremental precision
slider control for fast changes in the vernier measurement
reset button to bring simulaton back to original (default) setting.



A youtube video made to spread the news of learning by doing & exploring sense making physics.






Modifications done are:
1. cant remember now
June 03 2009
34. left and right button for fine control of slider
35. added scaffolds of the hints to be more meaningful, show exactly the difficult cases of understanding the reading with zero errors
36. added the final answer also to display the logic of how the top scale + lower scale + error.
37. fool prove it to work even for difficult cases the scaffolds are dynamically displayed
July 23 2009
38. added autoscale for hard to see scaffolds
39. change the text to the new version in Ejs 4.1 pixel size = true for nicer display
September 08 2009
40. added object blue for internal jaws with proper constraints and push if touch and slider control
41. added green object for external jaws with slider control
42. redesigned the scaffolds for the zero error to reflect correctly the logic of reading with zero error
43. sync the pointers position to correctly reflect the zero error calculation
44. redesign the zero error slider to show 0.05mm instead of e=1 increment to be easily to understand
45. redesign the look and feel of the controls and the color scheme so it is easier to read white top scale on darkgrey top scale and light color bottom scale on black lines.
46. all new objects in Ejs 4.2 instead of the older objects drawing originally
12Sept 2009
47 fix bug due to 0.08 being read as 0.05 instead of 0.1 if the marking are 0, 0.05 0.1. by hwang @ http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=567.30
18Sept 2009
48. added html and png to description
49. added comments to all variables for ease of open source sharing
18Nov2009
50 found a bug created by the pointer vss when l_x = 15.00 mm = 14.00+0.00 mm instead of the correct 15.00+0.00 caused by the slider value not 14.999999999 going to 14 and fixed it by using code
vss = (int)((x/dxm+error*unit+1.e-2)); // introduce to point to include zero error and debug need + 1.e-2 for cases where there may be error is calculation
51 fixed more bug with 2.e-2 for text1 and vss
52 added text input field for learner to test their understanding http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1309.0 thanks to prof hwang. It has the input field for student checking their understanding especially useful for learning the importance of precision of measurement. This is because 19.40 mm is precise, 19.450 mm is too precise and 19.4 mm is not precise enough for the vernier caliper of smallest unit 0.01 mm.
29Nov2009
53 made it possible to select either external jaws use ( example diameter of green object) or internal jaws (example use on external dimensions of blue rectangle)

54 made the vernier caliper behavior more like a real life one with some boundary detection that works well if lightly pressed like in real life? http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1313.0
55 it is possible by accident to over-compressed the blue object for teachable moments with the students to illustrate inappropriate use of vernier caliper Grin
56 possible to over force blue object into be vernier caliper like in 3D z direction, but it should work nicely if the movement of the mouse on drag is gentle!
57 used prof hwang's code in blue object on drag and made the blue object behave determistically so 54-55-56 is not going to in future release of the applet, if u r looking for that, download the version 4 at the bottom post.
58 fixed an array out of bound discovered by wolfgang error http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1183.msg5076;topicseen#msg5076
59 fixed another array runtime error when slider is drag to 70.00mm and beyond
60 made the yellow slider and vernier scale max slide to 69.80 mm to avoid over drag to very large values which is surprising possible, the applet still is measuring.
07March2010
61 added depth stem and object for simulating measurement on objects like test-tube, thanks Prof Hwang inspiration to http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1408.0 vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)
13june2010
62 made the dimension of web applet width = 600 to fit http://sgeducation.blogspot.com/2010/06/ejs-open-source-vernier-calipers-java.html
26june2010
63 made the x max view bigger to include part of the depth probe of the vernier caliper
64 made autoscale==true when the depth probe is selected
21 july 2011
added zoom for close up view of the vernier scale on the main scale
27july 2011
fixed bug where 0.02mm is selected the hints is 11.98 mm is shown as 12.00 + .98 mm the top pointer jump ahead due to a code
Code:
if(unit==0.02)out=((int)(v*50+dv))/50.;
the correct code is inserted as
Code:
if(unit==0.02)out=((int)(v*50.+dv))/50.; //// 50. instead of 50 fix bug of pointer
real photo from
http://www.phy.uct.ac.za/courses/c1lab/vfig03a.jpg


old embed codes
Quote
Code:

 code="weecaliper09international.weecaliper09internationalApplet.class" codebase="http://home.phy.ntnu.edu.tw/~lookang/EJS/ejs_group.files/weecaliper09international.app/" archive="../../_library/ejsBasic.jar,weecaliper09international.jar" name="weecaliper09international"id="weecaliper09international" width="760" height="428">


new post 20Jan 2009
i notice a display bug but i can't figure out what is causing it. prof hwang any thought?


open source codes and creative commons attribute

source code
download the *.jar for using the applet on standalone without internet connection.


31 october 2011
redo the zoom into a similar magnify just like the micrometer thanks to ability to draw students attention to the lines based on codes from http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2268.0 by Fu-Kwun Hwang
randomize the size of the black object each time to simulation is reset for greater challenge and fun

enjoy!


*** There are 5 more attached files. You need to login to acces it!
« Last Edit: October 31, 2011, 09:52:13 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #2 on: June 07, 2008, 11:08:49 am »

I guess the initial value for the distance d was set to 0.
And the applet will calculate new value and change displayed value when user drag it (several related values are changed,too.)
However, when you change the initial value to other value, but did not change the displayed String.
How to fix it:
method 1: change initial value for the display string.
method 2: add the function to be called when use drag the mouse to the initialization page.

Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: June 08, 2008, 07:00:34 pm »

it is almost impossible to debug, lucky i am able to revert to version 8 which does not have the problem in version 9.

i will start work on version 8 on now.

cheers Grin

and by that, i found out it was a syntax problem, after replacing

0.05 mm version 1 singapore schools" with "0.05mm_version_1_singapore_schools" notice no space the 6,7,8,9,0 did not cluster together.

now it works!!! beautifully Grin

but firefox refresh still got problem, i used ie to open the files are the new ones and are ok.

any idea how to make firefox re download the files? i think firefox has cache the jar files n thus the display is still the buggy one Huh
« Last Edit: June 08, 2008, 07:39:13 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #4 on: June 09, 2008, 09:59:40 am » posted from:Taipei,T\'ai-pei,Taiwan

For the Text display in some of the View Element, the _ is used for subscript.

So, B_x will be displayed as Bx.

And 0 is used for numerical value for the variable.
For example: "Vx=0.0 m/s" might be displayed as "Vx=3.45 m/s" if the value of the variable is 3.45

So avoid 0 as part of displayed syntax for slider/numerical display...etc. However, it should work fine in "Combobox".


You will find java in the window/control Panel , open it and click remove cache or you can select cached applets and remove the one you want.
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: June 27, 2008, 09:37:55 am » posted from:Singapore,,Singapore



The diagram shows a vernier caliper. The reading is _______  mm ?
« Last Edit: June 27, 2008, 11:12:50 am by lookang » Logged
jeff_forssell
teacher/web course designer
Newbie
*
Offline Offline

Posts: 11


environment, computers, gardening, politics, Africa


WWW
«
Embed this message
Reply #6 on: August 15, 2008, 03:00:07 pm »

Those reaching this page might be interested in a Physlet animator application I made to show the more practical side of using a vernier caliper for internal, external and depth measurements. Also about some common errors. http://www.tupo.biz/kurser/FyA/English/VernierCaliper.htm

I have have it in connection with Hwangs old applet for reading the vernier scales.
Logged

jeff forssell
Http://home.bip.net/jeff.forssell
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #7 on: August 15, 2008, 05:05:02 pm » posted from:Taipei,T'ai-pei,Taiwan

I like the applet at http://www.tupo.biz/kurser/FyA/English/VernierCaliper.htm
It is a very good one.  Wink
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: August 15, 2008, 10:40:38 pm »

thanks for the info jeff_forssell
 Grin
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #9 on: January 31, 2009, 11:16:15 am » posted from:Singapore,,Singapore

some other applets

http://www.members.shaw.ca/ron.blond/Vern.APPLET/index.html

future work: add the top jaws like above


most populated Vernier calipers applet in the world
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=52

future work: nil or add object to measure ?

http://people.westminstercollege.edu/faculty/ccline/vernier/vernier.html
this one is Prof Hwang's JDK applet but without the attributions credits to Prof Hwang.


introduced to this by Angeline
http://www.geocities.com/tan.weijie/vernier.html

mine is 4th top hit on google today!
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=684.0

http://www.stefanelli.eng.br/webpage/en-vernier-caliper-pachymeter-calliper-simulator-millimeter-05-mm.html<a href="http://www.cefetsp.br/edu/stefanelli/web/webpage/arq_swf/paquimetro-05.swf" target="_blank">http://www.cefetsp.br/edu/stefanelli/web/webpage/arq_swf/paquimetro-05.swf</a>
Likes: The looks is great

http://www.stefanelli.eng.br/webpage/noindex/en-parts-vernier-caliper.html<a href="http://www.cefetsp.br/edu/stefanelli/web/webpage/arq_swf/vernier-caliper-parts.swf" target="_blank">http://www.cefetsp.br/edu/stefanelli/web/webpage/arq_swf/vernier-caliper-parts.swf</a>
Likes: Cool explanation of parts


* ron blond.PNG (22.21 KB, 600x327 - viewed 207 times.)
« Last Edit: November 19, 2009, 08:36:35 am by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #10 on: January 31, 2009, 11:35:29 pm » posted from:Singapore,,Singapore



added externaL JAWS on 01 Feb 2009.

super nice now!

refer to top post for the applet!
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #11 on: February 04, 2009, 10:48:50 pm »

suggested this resource here!
http://www.compadre.org/precollege/items/suggest.cfm
used Fu-Kwun Hwang and lookang as authors
okay?  Grin
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #12 on: February 05, 2009, 09:09:22 pm »

No problem with me. You did some extra work for that final design.  Cheesy
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #13 on: June 01, 2009, 09:30:35 pm » posted from:Singapore,,Singapore

hi prof,

when i use EJS_4.1_090115\EJS_4.1 to compile this file, the applet shows the numbers nicely as designed by the codes for example the codes for bottom scale


but when i use EJS_4.1_090426 or EJS_4.1_090518 the following codes seems to be not correctly compiled.
Code:
for(int i=0;i tm2t[i]=i+"";
// tm2t[i]=i+"";
 if(i==n2t-1)
 tm2t[i]="0"; // i think is to draw 0 in place of 10
}
zeroxm=zerox+error*unit*dxm;

do you know how to fix it?, is the problem with newer Ejs ?

thanks!


* bug.PNG (27.45 KB, 1024x768 - viewed 275 times.)

*** There are 1 more attached files. You need to login to acces it!
« Last Edit: June 01, 2009, 09:51:30 pm by lookang » Logged
mn12833
Newbie
*
Offline Offline

Posts: 7


«
Embed this message
Reply #14 on: June 09, 2009, 10:22:49 pm » posted from:Marysville,Ohio,United States

This is definitely the applet that I was looking for.  I am still having difficulty obtaining this file.  I am looking to use the app as is for educational purposes.  However, I am still having difficulty with the jar file.  Any suggestions?
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #15 on: June 09, 2009, 11:05:50 pm » posted from:Taipei,T\'ai-pei,Taiwan

I just clicked Download EJS jar file and save it on my computer.
It is running fine with my computer.
Because I do not know what you did and what was happening.
I do not know how to help you if you just said that you have difficulty getting the file without further information.
Did you find the download link? Did you doenload it? What is the file size and filename of the downloaded file? ...


Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #16 on: June 10, 2009, 09:07:16 pm » posted from:Singapore,,Singapore

This is definitely the applet that I was looking for. I am still having difficulty obtaining this file. I am looking to use the app as is for educational purposes. However, I am still having difficulty with the jar file. Any suggestions?

Thanks for ur encouragement, Fu-Kwun Hwang made this, i merely remixed it to be more customized for self directed inquiry learning. Smiley

it is possible u need to install Java Runtime Environment [JRE] for running Easy Java Simulation jar files?
http://www.youtube.com/watch?v=b4jOQcXu_v8


It is likely your computer recognized jar file extension as a zip format Wink
install Java Runtime Environment [JRE] for your computer to associate the file extension appropriately
« Last Edit: June 10, 2009, 09:11:28 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #17 on: July 23, 2009, 02:44:13 pm » posted from:Singapore,,Singapore

hi prof,

when i use EJS_4.1_090115\EJS_4.1 to compile this file, the applet shows the numbers nicely as designed by the codes for example the codes for bottom scale


but when i use EJS_4.1_090426 or EJS_4.1_090518 the following codes seems to be not correctly compiled.
Code:
for(int i=0;i tm2t[i]=i+"";
// tm2t[i]=i+"";
 if(i==n2t-1)
 tm2t[i]="0"; // i think is to draw 0 in place of 10
}
zeroxm=zerox+error*unit*dxm;

do you know how to fix it?, is the problem with newer Ejs ?

thanks!


I realised what was the problem, in the newer Ejs, the text becomes tmt instead of %tmt%

i just added back the %%  and changes to the newer Ejs text blue color ones instead of the older black color ones and it works well again.
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #18 on: September 04, 2009, 05:34:32 pm » posted from:-,-,SINGAPORE

trying to add blue object for inquiry learning

3&4 attachment has blue object ready

going for green object now


*** There are 4 more attached files. You need to login to acces it!
« Last Edit: September 05, 2009, 08:48:24 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #19 on: September 08, 2009, 10:31:21 pm » posted from:Singapore,,Singapore

check the new Ejs open source Vernier calipers java applet with objects and zero error logic.

September 08 2009
40. added object blue for internal jaws with proper constraints and push if touch and slider control http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1189
41. added green object for external jaws with slider control http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1189
42. redesigned the scaffolds for the zero error to reflect correctly the logic of reading with zero error
43. sync the pointers position to correctly reflect the zero error calculation
44. redesign the zero error slider to show 0.05mm instead of e=1 increment to be easier to understand
45. redesign the look and feel of the controls and the color scheme so it is easier to read white top scale on darkgrey top scale and light color bottom scale on black lines.
46. all new objects in Ejs 4.2 instead of the older objects drawing originally

it is most educational with inquiry possibilities now! Grin
thanks prof hwang for your tips!
check it out. Grin Cheesy
« Last Edit: September 10, 2009, 01:48:06 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #20 on: September 08, 2009, 11:19:10 pm » posted from:Taipei,T\'ai-pei,Taiwan

You are really a quick learner. You have learned the trick I used in another simulation and make this one much better for teaching purpose. Great work! I like it! Cheesy
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #21 on: September 21, 2009, 10:32:16 pm » posted from:Venice,Veneto,Italy

A youtube video made to spread the news of learning by doing & exploring sense making physics.


Music is audio swapped by Youtube in built service. cool Grin I am assuming Youtube asked for permission already to use the music for youtube users.

I believe this is applicable to me.
   * * Tell me. I may not get it, I'm sure to forget it.
   * * Show me. I may get it, I'll remember it for a little while.
   * * Have me do it. I'll understand it, it may stick for awhile.

and u can watch this video too
« Last Edit: December 13, 2009, 05:09:34 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #22 on: October 23, 2009, 08:57:51 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Added to http://en.wikipedia.org/wiki/Micrometer#External_links

hope it is well received by the wikipedia community

Code:
Simulation of Vernier caliper

File:Vernier caliper applet.gif|[http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=684.msg2457#msg2457 Ejs open source Vernier calipers java applet with objects and zero error logic]
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #23 on: November 18, 2009, 11:09:14 pm »

added text input field for learner to test their understanding http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1309.0 thanks to prof hwang.

Enjoy!
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #24 on: November 24, 2009, 05:54:00 am » posted from:Singapore,,Singapore

got a suggestion from wolfgang
1 .you should not be able to move the block inside the jaws if jaws the jars are too close together.
2. I select either internal or external measurement with a check box and would hide the internal object if external is selected and hide the external if internal is selected.

my reflection:
need time to think how to do it Smiley
having some difficulty thinking about the interaction modeling


if ( ox>=(x2+x-w/2)&&(oy>oymin-h/2)&&(w>x)) { // >= is important not == does not work well // recently added w>x still cannot get the interaction of suggestion1
  x = ox -x2 +w/2; // to make object and jaw right move together when touched
}


*** There are 4 more attached files. You need to login to acces it!
« Last Edit: November 28, 2009, 07:25:17 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #25 on: November 29, 2009, 05:16:16 pm »

53 made it possible to select either external jaws use ( example diameter of green object) or internal jaws (example use on external dimensions of blue rectangle)
54 made the vernier caliper behavior more like a real life one with some boundary detection that works well if lightly pressed like in real life? http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1313.0
55 it is possible by accident to over-compressed the blue object for teachable moments with the students to illustrate inappropriate use of vernier caliper Grin
56 possible to over force blue object into be vernier caliper like in 3D z direction, but it should work nicely if the movement of the mouse on drag is gentle!

enjoy!

slowly adding tail


*** There are 4 more attached files. You need to login to acces it!
« Last Edit: March 06, 2010, 10:34:07 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #26 on: March 07, 2010, 09:07:09 pm » posted from:Singapore,,Singapore

added tail

07March2010
61 added depth stem and object for simulating measurement on objects like test-tube, thanks to Prof Hwang inspiration at http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1408.0 vernier cliper (inch/mm mode, dial mode, measure inner/outer diameter and depth)


* vernier caliper.png (45.4 KB, 1280x800 - viewed 385 times.)
« Last Edit: March 07, 2010, 09:13:34 pm by lookang » Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #27 on: June 13, 2010, 11:03:36 pm » posted from:Uberaba,Minas Gerais,Brazil

This version from vernier calipers is excllent and have more option
wonderful work i modified first version but i see this version have more
tools
« Last Edit: June 13, 2010, 11:13:17 pm by ahmedelshfie » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #28 on: June 13, 2010, 11:29:37 pm »

Thanks you for posting your good comments about this applet.
It is always improving based on prof hwang's several different applets on the same topic plus I ask some questions about how to do Some pedagogy hints and input fields to get students to test their understanding.

I have changed the layout today to fit width =600 for my blog entry
http://Sgeducation.blogspot.com
http://weelookang.blogspot.com
:-)
« Last Edit: April 26, 2011, 12:00:15 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #29 on: July 20, 2010, 06:26:32 am » posted from:Chicago,Illinois,United States

got an e message from http://commons.wikimedia.org/wiki/User_talk:Lookang

Java applets
I was greatly impressed by your micrometer and ruler applets and would like to host them on my website. Unfortunately the links you provide are dead. When possible, could you please drop message for me where could I get the applets. I would need a source code as well under any Free license of your choice. Audriusa (talk) 12:27, 18 July 2010 (UTC)
User talk:Audriusa
From Wikimedia Commons, the free media repository

My reply.
lookang 20 June 2010 u could download the source codes as the server at NTNU virtual lab is back up again since monday Smiley Ejs open source Vernier calipers java applet with objects, help & 0-error logic http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=684.0 Ejs open source Micrometer java applet with objects, help & zero error logic http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=683.0 the applets are license under Creative Commons Attribution 2.5 Taiwan License Fu-Kwun HWANG & Loo Kang WEE as authors, do post a link back to http://www.phy.ntnu.edu.tw/ntnujava/index.php under the relevant topics to share your success of hosting it.




BTW:
the folks at AAPT workshop by the OSP folks lead by Wolfgang, the participants mentioned during the workshop that they liked the vernier caliper version in http://www.compadre.org/osp/items/detail.cfm?ID=9707
Well Done Prof Hwang! our collaborative applet has got excellent review. Grin Grin
my blog has some more details http://sgeducation.blogspot.com/2010/07/personal-review-w20-computer-modeling.html
« Last Edit: July 20, 2010, 01:03:54 pm by lookang » Logged
Pages: [1] 2   Go Up
  Print  
Know yourself. Questioning. ...Socrates (469-399 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Ejs open source Micrometer java applet with objects, help & zero error logic
Collaborative Community of EJS
lookang 23 51423 Last post December 11, 2012, 11:40:49 am
by lookang
Vernier Calipers
misc
ahmedelshfie 11 13004 Last post October 09, 2010, 02:41:25 am
by ahmedelshfie
Vernier Calipers
Questions related to EJS
ahmedelshfie 5 9181 Last post January 25, 2011, 12:22:44 am
by ahmedelshfie
Ejs Open Source Cyclotron Java Applet in 3D
Collaborative Community of EJS
lookang 4 13131 Last post October 04, 2011, 02:50:15 pm
by lookang
Ejs Open Source Capacitor java applet
Collaborative Community of EJS
lookang 0 4272 Last post December 21, 2010, 03:18:29 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.111 seconds with 24 queries.since 2011/06/15