NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 11, 2017, 04:24:10 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Give me a standpoint and I will move the earth. ...Archimedes (287-212BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Clock simulation  (Read 21478 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
fxsuprapto
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
on: February 09, 2008, 10:22:09 am »

Hi Guru,
I have a problem to teach my little daughter about how to 'read' time.
Especially to give her understanding the difference between digital and analog clock.

What I'm thinking is a small simulation program where she can play and learn easily.
Have search in this website and could not find one.
I'll not ask you to create the program, that will waste your valueable time.
But in case you already have, would you please upload?

Thankyou very much.

Cheers,
fx
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: February 09, 2008, 02:27:11 pm »

Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME

I did have an analog clock. But it did not have digital display and it only for display purpose.
Because you ask for teaching purpose, so I modified the code and make it draggable.
I hope this is what you want.
You can drag the the arrow (for minute and hour) to change the time or change it with slider bar.
Click "show" check box to display the time in digital format.


Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME
Logged
fxsuprapto
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #2 on: February 14, 2008, 06:14:05 am »

Wow.... I do appreciate your help.
Unfortunately I'm in a business trip, must wait until sometime next next week  Cry

But, this one is really what I'm thinking of....... thank you very much  Smiley


Logged
Charyze
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #3 on: July 25, 2008, 08:38:42 pm »

Hi Sir Fu-Kwun Hwang, can you pls. send me (jubycharyze_merca@yahoo.com) the source code of this clock simulation that you made. this  would be a big help to us for our Modeling and Simulation subject. we were asked to find some downloadable simulators(with source code) here in the net. i am hoping for your response. Thank you!  Smiley
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #4 on: July 25, 2008, 09:06:20 pm »

Click the download line just below the applet and you will get the EJS source code.
You can open it in EJS. It is the same for all the simulations created with EJS at this web site.
Logged
Charyze
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #5 on: July 25, 2008, 09:40:53 pm »

thank you sir  Smiley
but unfortunately, i just cant figured out where i can see the source code there,  and also i cant open the .xml file when i downloaded it.  Sad
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #6 on: July 26, 2008, 04:52:57 pm »

You need to install EJS and open the xml file with EJS.
Official web site for EJS
Logged
sevin.mostafa
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #7 on: October 19, 2009, 02:55:17 am » posted from:Gostar,Hamadan,Iran, Islamic Republic of

thanks for all dear....
Logged

love is my hope then human....
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: January 26, 2017, 11:03:12 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

i have created a brand new clock HTML5 version

http://iwant2study.org/ospsg/index.php/interactive-resources/mathematics/measurement-and-geometry/measurement/2-time/425-clockgeogebrawee

or

http://iwant2study.org/ospsg/index.php/425

enjoy!

i also fixed my minute hand drag problem based on this XML version

ctam = Math.atan2(mx,my);
var mxtest = Math.sin(ctam); //new position angles
var mytest =Math.cos(ctam);
if ((vmtest-vm)<-30){ //postive direction example 1 - 59
   detect=1;
// t = Math.floor(t/3600)*3600+3600+ vmtest*60;
// detect=0; // make it do once only
  }
 else if ((vmtest-vm)>30){ //negative direction example 59 - 1
   detect=-1;
// t = Math.floor(t/3600)*3600-3600+ vmtest*60;
// detect=0; // make it do once only
  }
  else {
   detect=0;
  
   }
  
  t = Math.floor(t/3600)*3600+ detect*3600+ vmtest*60; // assign value of t based on vmtest

Thank you Prof Hwang!


* Screen Shot 2017-01-26 at 11.33.16 AM.png (185.79 KB, 716x936 - viewed 128 times.)
Logged
alexatmedia
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #9 on: November 23, 2017, 07:58:57 pm »

great topic you are sharing here really thank you i was looking for this Smiley
Logged
Pages: [1]   Go Up
  Print  
Give me a standpoint and I will move the earth. ...Archimedes (287-212BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Anybody got a pulley simulation?
Modern Physics
Quest4PMD 3 24298 Last post July 23, 2013, 06:46:31 pm
by Fu-Kwun Hwang
A real time clock created with EJS4
Examples for beginner who want to learn EJS
Fu-Kwun Hwang 9 31849 Last post September 01, 2016, 02:49:42 pm
by lookang
car simulation
Physics Questions
samsooom 3 20010 Last post January 16, 2012, 05:12:42 am
by desertrose3
Basic Physics Simulation ( First Simulation)
Collaborative Community of EJS
andresgo 5 7103 Last post December 16, 2011, 01:30:18 am
by Gaven
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.093 seconds with 23 queries.since 2011/06/15