SlideShare a Scribd company logo
PLANNING OUT A
CIRCUIT SIMULATOR IN
JAVASCRIPT, FOR A STEP
COUNTER
SHARON LIU. 2020/12/23-2024/05/20.
BATTERY SIMULATION
• Principles
• The battery discharges, at an ever
decreasing rate, when the on-off
switch, in the pendulum subcircuit, is
switched on.
• Whatever energy is left,
is discharged, when the on-off
switch, in the resistor
display subcircuit, is switched on.
• The battery energy, has to be
calibrated.
If statement
• On-off switch
Loop or
setInterval
• Battery discharging
Square root
• Battery discharging
• Depends on curve
fitting
InnerHITML
• Display battery
discharging
DISPLAY RESISTOR SIMULATION
• Equation or principles
• The rate of water electrolysis, or
evaporation, is proportional to the
current from the battery.
• The rate of evaporation, is also
proportional to the surface area to
volume ratio, of the droplet.
• In the experiment, we need
to confirm whether there is a
noticeable difference, in evaporation,
when there is a current.
Named
setInterval
function
• Evaporation rate
Mathematical
operators
• Evaporation equation
NOTES
• Use water droplets, as a fast science experiment.
• What about environmental concerns?
• Investigate what happens, when electrons are lost from a bicarbonate of soda solution.
• Recharge the battery, with a current from a moving magnet.
FOUR YEARS LATER... A QUICK UPDATE.
• A while ago, I prototyped a step counter, which was supposed to count 3000 steps, to within 5%
accuracy, either side.
• The results were that, I achieved maybe a 19% error, with 3000 steps. Therefore, there was maybe
a 10% error, to either side.
• I did this experiment, in 2021.
• 3000 steps were not fully counted, but I know how to increase the accuracy of the step counter
prototype. (Just use more drops of water, simultaneously.) The prototype, is only for indoor use,
and you need to keep looking at the drops, to count the steps, as the step counter relies
on evaporation.
• The actual results, were that in 5 minutes, I had counted 194 and 252 steps.
SIMULATION OF HOW THE STEP COUNTER WORKS.
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0 50 100 150 200 250 300 350 400
Height (zy view) of the water drop route. (2nd
attempt.)
y
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
-1.5 -1 -0.5 0 0.5 1 1.5
xy view of the water drop route. (2nd attempt.)
y y2

More Related Content

Similar to 20240520 Planning a Circuit Simulator in JavaScript.pptx

Ni project presentation version 3
Ni project presentation version 3Ni project presentation version 3
Ni project presentation version 3
Ahmed Zahid
 
Reverse power relay
Reverse power relayReverse power relay
Reverse power relay
Praveen Kumar
 
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
TESCO - The Eastern Specialty Company
 
How To Calibrate Your Micropipette
How To Calibrate Your MicropipetteHow To Calibrate Your Micropipette
How To Calibrate Your Micropipette
Tamer Soliman
 
Lab 6 measurement of yield point of drilling mud sample using viscometer.
Lab 6 measurement of yield point of drilling mud sample using viscometer.Lab 6 measurement of yield point of drilling mud sample using viscometer.
Lab 6 measurement of yield point of drilling mud sample using viscometer.
Awais Qureshi
 
Nonlinear hydrodynamic forces - manufacture and transducer selection
Nonlinear hydrodynamic forces - manufacture and transducer selectionNonlinear hydrodynamic forces - manufacture and transducer selection
Nonlinear hydrodynamic forces - manufacture and transducer selection
Sachindra Max
 
Angular velocity measurement
Angular velocity measurementAngular velocity measurement
Angular velocity measurement
Chirag Solanki
 
Pipeline inspection robot
Pipeline inspection robotPipeline inspection robot
Pipeline inspection robot
Piyush Attarde
 
3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx
AravindanMohan4
 
ADITEC04
ADITEC04ADITEC04
ADITEC04
Dimitra Muni
 
EIT_Presentation
EIT_PresentationEIT_Presentation
EIT_Presentation
Ernst Lourens de Villiers
 
commutation failure
commutation failurecommutation failure
commutation failure
Shiva Kumar
 
cycloconverters-200609063230.pdf
cycloconverters-200609063230.pdfcycloconverters-200609063230.pdf
cycloconverters-200609063230.pdf
fychgffgh
 
Cycloconverters
CycloconvertersCycloconverters
Cycloconverters
ZEESHANAHMED378
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
 Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin... Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
vvsatyanarayana K
 
Halderman ch055 lecture
Halderman ch055 lectureHalderman ch055 lecture
Halderman ch055 lecture
mcfalltj
 
Vaila ruthvik ece_510_project
Vaila ruthvik ece_510_projectVaila ruthvik ece_510_project
Vaila ruthvik ece_510_project
Ruthvik Vaila
 
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
TESCO - The Eastern Specialty Company
 
Two methods
Two methodsTwo methods
Two methods
john carlo ramos
 

Similar to 20240520 Planning a Circuit Simulator in JavaScript.pptx (20)

Ni project presentation version 3
Ni project presentation version 3Ni project presentation version 3
Ni project presentation version 3
 
Reverse power relay
Reverse power relayReverse power relay
Reverse power relay
 
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
 
How To Calibrate Your Micropipette
How To Calibrate Your MicropipetteHow To Calibrate Your Micropipette
How To Calibrate Your Micropipette
 
Lab 6 measurement of yield point of drilling mud sample using viscometer.
Lab 6 measurement of yield point of drilling mud sample using viscometer.Lab 6 measurement of yield point of drilling mud sample using viscometer.
Lab 6 measurement of yield point of drilling mud sample using viscometer.
 
Nonlinear hydrodynamic forces - manufacture and transducer selection
Nonlinear hydrodynamic forces - manufacture and transducer selectionNonlinear hydrodynamic forces - manufacture and transducer selection
Nonlinear hydrodynamic forces - manufacture and transducer selection
 
Angular velocity measurement
Angular velocity measurementAngular velocity measurement
Angular velocity measurement
 
Pipeline inspection robot
Pipeline inspection robotPipeline inspection robot
Pipeline inspection robot
 
3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx
 
ADITEC04
ADITEC04ADITEC04
ADITEC04
 
EIT_Presentation
EIT_PresentationEIT_Presentation
EIT_Presentation
 
commutation failure
commutation failurecommutation failure
commutation failure
 
cycloconverters-200609063230.pdf
cycloconverters-200609063230.pdfcycloconverters-200609063230.pdf
cycloconverters-200609063230.pdf
 
Cycloconverters
CycloconvertersCycloconverters
Cycloconverters
 
Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
 Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin... Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
Online Condition Monitoring And Diagnosis Of Power Transformers Their Bushin...
 
Halderman ch055 lecture
Halderman ch055 lectureHalderman ch055 lecture
Halderman ch055 lecture
 
Vaila ruthvik ece_510_project
Vaila ruthvik ece_510_projectVaila ruthvik ece_510_project
Vaila ruthvik ece_510_project
 
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
Site Verification: Tools and Best Practices to Accurately Meter Complex, High...
 
Two methods
Two methodsTwo methods
Two methods
 

More from Sharon Liu

20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
Sharon Liu
 
20240618 How To Become a Self-Taught Programmer.pptx
20240618 How To Become a Self-Taught Programmer.pptx20240618 How To Become a Self-Taught Programmer.pptx
20240618 How To Become a Self-Taught Programmer.pptx
Sharon Liu
 
20240507 Prototyping Recycling Aluminium.docx
20240507 Prototyping Recycling Aluminium.docx20240507 Prototyping Recycling Aluminium.docx
20240507 Prototyping Recycling Aluminium.docx
Sharon Liu
 
20240408 Bending Backwards to the Second Step Up.docx
20240408 Bending Backwards to the Second Step Up.docx20240408 Bending Backwards to the Second Step Up.docx
20240408 Bending Backwards to the Second Step Up.docx
Sharon Liu
 
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
Sharon Liu
 
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
Sharon Liu
 
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
Sharon Liu
 
20240308 Jumping from the Fifth step up.docx
20240308 Jumping from the Fifth step up.docx20240308 Jumping from the Fifth step up.docx
20240308 Jumping from the Fifth step up.docx
Sharon Liu
 
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
Sharon Liu
 
20231218 Plan for Two-Footed Jump on Ice.docx
20231218 Plan for Two-Footed Jump on Ice.docx20231218 Plan for Two-Footed Jump on Ice.docx
20231218 Plan for Two-Footed Jump on Ice.docx
Sharon Liu
 
20231130 Ice skating Unsupported.docx
20231130 Ice skating Unsupported.docx20231130 Ice skating Unsupported.docx
20231130 Ice skating Unsupported.docx
Sharon Liu
 
20231102 Plan for Ice Skating.docx
20231102 Plan for Ice Skating.docx20231102 Plan for Ice Skating.docx
20231102 Plan for Ice Skating.docx
Sharon Liu
 
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
Sharon Liu
 
20231006 Sphere rotated 45 degrees down.docx
20231006 Sphere rotated 45 degrees down.docx20231006 Sphere rotated 45 degrees down.docx
20231006 Sphere rotated 45 degrees down.docx
Sharon Liu
 
20230904 Recycling Clay.docx
20230904 Recycling Clay.docx20230904 Recycling Clay.docx
20230904 Recycling Clay.docx
Sharon Liu
 
20230831 a of the equator - Rotated sphere.docx
20230831 a of the equator - Rotated sphere.docx20230831 a of the equator - Rotated sphere.docx
20230831 a of the equator - Rotated sphere.docx
Sharon Liu
 
20230829 Rotated Ellipse.docx
20230829 Rotated Ellipse.docx20230829 Rotated Ellipse.docx
20230829 Rotated Ellipse.docx
Sharon Liu
 
20230819 Recall Tests.pptx
20230819 Recall Tests.pptx20230819 Recall Tests.pptx
20230819 Recall Tests.pptx
Sharon Liu
 
20230810 Radial Plot of an Ellipse.docx
20230810 Radial Plot of an Ellipse.docx20230810 Radial Plot of an Ellipse.docx
20230810 Radial Plot of an Ellipse.docx
Sharon Liu
 
20230809 South Pole of the Rotated Sphere.docx
20230809 South Pole of the Rotated Sphere.docx20230809 South Pole of the Rotated Sphere.docx
20230809 South Pole of the Rotated Sphere.docx
Sharon Liu
 

More from Sharon Liu (20)

20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
20240710 ACMJ Diagrams Set 3.docx . Apache, Csharp, Mysql, Javascript stack a...
 
20240618 How To Become a Self-Taught Programmer.pptx
20240618 How To Become a Self-Taught Programmer.pptx20240618 How To Become a Self-Taught Programmer.pptx
20240618 How To Become a Self-Taught Programmer.pptx
 
20240507 Prototyping Recycling Aluminium.docx
20240507 Prototyping Recycling Aluminium.docx20240507 Prototyping Recycling Aluminium.docx
20240507 Prototyping Recycling Aluminium.docx
 
20240408 Bending Backwards to the Second Step Up.docx
20240408 Bending Backwards to the Second Step Up.docx20240408 Bending Backwards to the Second Step Up.docx
20240408 Bending Backwards to the Second Step Up.docx
 
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
20240319 Car Simulator Plan.pptx . Plan for a JavaScript Car Driving Simulator.
 
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
20240315 ACMJ Diagrams Set 2.docx . With light, motor, coloured light, and se...
 
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
SL CV 20240312.docx . Sharon Xiao Liu's Curriculum Vitae.
 
20240308 Jumping from the Fifth step up.docx
20240308 Jumping from the Fifth step up.docx20240308 Jumping from the Fifth step up.docx
20240308 Jumping from the Fifth step up.docx
 
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
20240206 Rotated Torus and Full Rotated Sphere 45 degrees down 45 left.docx
 
20231218 Plan for Two-Footed Jump on Ice.docx
20231218 Plan for Two-Footed Jump on Ice.docx20231218 Plan for Two-Footed Jump on Ice.docx
20231218 Plan for Two-Footed Jump on Ice.docx
 
20231130 Ice skating Unsupported.docx
20231130 Ice skating Unsupported.docx20231130 Ice skating Unsupported.docx
20231130 Ice skating Unsupported.docx
 
20231102 Plan for Ice Skating.docx
20231102 Plan for Ice Skating.docx20231102 Plan for Ice Skating.docx
20231102 Plan for Ice Skating.docx
 
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
20231017 xy view of Rotated 45 degrees down and 45 left Sphere.docx
 
20231006 Sphere rotated 45 degrees down.docx
20231006 Sphere rotated 45 degrees down.docx20231006 Sphere rotated 45 degrees down.docx
20231006 Sphere rotated 45 degrees down.docx
 
20230904 Recycling Clay.docx
20230904 Recycling Clay.docx20230904 Recycling Clay.docx
20230904 Recycling Clay.docx
 
20230831 a of the equator - Rotated sphere.docx
20230831 a of the equator - Rotated sphere.docx20230831 a of the equator - Rotated sphere.docx
20230831 a of the equator - Rotated sphere.docx
 
20230829 Rotated Ellipse.docx
20230829 Rotated Ellipse.docx20230829 Rotated Ellipse.docx
20230829 Rotated Ellipse.docx
 
20230819 Recall Tests.pptx
20230819 Recall Tests.pptx20230819 Recall Tests.pptx
20230819 Recall Tests.pptx
 
20230810 Radial Plot of an Ellipse.docx
20230810 Radial Plot of an Ellipse.docx20230810 Radial Plot of an Ellipse.docx
20230810 Radial Plot of an Ellipse.docx
 
20230809 South Pole of the Rotated Sphere.docx
20230809 South Pole of the Rotated Sphere.docx20230809 South Pole of the Rotated Sphere.docx
20230809 South Pole of the Rotated Sphere.docx
 

Recently uploaded

Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
James AH Campbell
 
Liver & Gall Bladder 23098463278654387654328765439875.pptx
Liver & Gall Bladder 23098463278654387654328765439875.pptxLiver & Gall Bladder 23098463278654387654328765439875.pptx
Liver & Gall Bladder 23098463278654387654328765439875.pptx
muralinath2
 
Properties of virus(Ultrastructure and types of virus)
Properties of virus(Ultrastructure and types of virus)Properties of virus(Ultrastructure and types of virus)
Properties of virus(Ultrastructure and types of virus)
saloniswain225
 
poikilocytosis 23765437865210857453257844.pptx
poikilocytosis 23765437865210857453257844.pptxpoikilocytosis 23765437865210857453257844.pptx
poikilocytosis 23765437865210857453257844.pptx
muralinath2
 
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
University of Maribor
 
Computer aided biopharmaceutical characterization
Computer aided biopharmaceutical characterizationComputer aided biopharmaceutical characterization
Computer aided biopharmaceutical characterization
souravpaul769171
 
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
Sérgio Sacani
 
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
Sérgio Sacani
 
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDEANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
RanjithaSL
 
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpectiveGasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
Recupera
 
Komodo Dragon I PPT
Komodo Dragon I PPT Komodo Dragon I PPT
Komodo Dragon I PPT
alokitapramanik0
 
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDYSUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
Dr Kirpa Ram Jangra
 
Fluxional Isomerism in organometallic compounds.pptx
Fluxional Isomerism in organometallic compounds.pptxFluxional Isomerism in organometallic compounds.pptx
Fluxional Isomerism in organometallic compounds.pptx
DivyaK787011
 
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
PANDURANGLAWATE1
 
Dalghren, Thorne and Stebbins System of Classification of Angiosperms
Dalghren, Thorne and Stebbins System of Classification of AngiospermsDalghren, Thorne and Stebbins System of Classification of Angiosperms
Dalghren, Thorne and Stebbins System of Classification of Angiosperms
Gurjant Singh
 
Forces grade 9 slideshow used for grade 9
Forces grade 9 slideshow used for grade 9Forces grade 9 slideshow used for grade 9
Forces grade 9 slideshow used for grade 9
manavhelamuki
 
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdfEl Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
Champs Elysee Roldan
 
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptxsmallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
muralinath2
 
Summer program introduction in Yunnan university
Summer program introduction in Yunnan universitySummer program introduction in Yunnan university
Summer program introduction in Yunnan university
Hayato Shimabukuro
 
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
Dr. sreeremya S
 

Recently uploaded (20)

Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
Probing the northern Kaapvaal craton root with mantle-derived xenocrysts from...
 
Liver & Gall Bladder 23098463278654387654328765439875.pptx
Liver & Gall Bladder 23098463278654387654328765439875.pptxLiver & Gall Bladder 23098463278654387654328765439875.pptx
Liver & Gall Bladder 23098463278654387654328765439875.pptx
 
Properties of virus(Ultrastructure and types of virus)
Properties of virus(Ultrastructure and types of virus)Properties of virus(Ultrastructure and types of virus)
Properties of virus(Ultrastructure and types of virus)
 
poikilocytosis 23765437865210857453257844.pptx
poikilocytosis 23765437865210857453257844.pptxpoikilocytosis 23765437865210857453257844.pptx
poikilocytosis 23765437865210857453257844.pptx
 
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
Modelling, Simulation, and Computer-aided Design in Computational, Evolutiona...
 
Computer aided biopharmaceutical characterization
Computer aided biopharmaceutical characterizationComputer aided biopharmaceutical characterization
Computer aided biopharmaceutical characterization
 
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
The cryptoterrestrial hypothesis: A case for scientific openness to a conceal...
 
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
A slightly oblate dark matter halo revealed by a retrograde precessing Galact...
 
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDEANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
ANTIGENS_.pptx ( Ranjitha SL) PRESENTATION SLIDE
 
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpectiveGasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
Gasification and Pyrolyssis of plastic Waste under a Circular Economy perpective
 
Komodo Dragon I PPT
Komodo Dragon I PPT Komodo Dragon I PPT
Komodo Dragon I PPT
 
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDYSUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
SUBJECT SPECIFIC ETHICAL ISSUES IN STUDY
 
Fluxional Isomerism in organometallic compounds.pptx
Fluxional Isomerism in organometallic compounds.pptxFluxional Isomerism in organometallic compounds.pptx
Fluxional Isomerism in organometallic compounds.pptx
 
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
[1] Data Mining - Concepts and Techniques (3rd Ed).pdf
 
Dalghren, Thorne and Stebbins System of Classification of Angiosperms
Dalghren, Thorne and Stebbins System of Classification of AngiospermsDalghren, Thorne and Stebbins System of Classification of Angiosperms
Dalghren, Thorne and Stebbins System of Classification of Angiosperms
 
Forces grade 9 slideshow used for grade 9
Forces grade 9 slideshow used for grade 9Forces grade 9 slideshow used for grade 9
Forces grade 9 slideshow used for grade 9
 
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdfEl Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
El Nuevo Cohete Ariane de la Agencia Espacial Europea-6_Media-Kit_english.pdf
 
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptxsmallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
smallintestinedisorders-causessymptoms-240626051934-b669b27d.pptx
 
Summer program introduction in Yunnan university
Summer program introduction in Yunnan universitySummer program introduction in Yunnan university
Summer program introduction in Yunnan university
 
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
Direct instructions, towards hundred fold yield,layering,budding,grafting,pla...
 

20240520 Planning a Circuit Simulator in JavaScript.pptx

  • 1. PLANNING OUT A CIRCUIT SIMULATOR IN JAVASCRIPT, FOR A STEP COUNTER SHARON LIU. 2020/12/23-2024/05/20.
  • 2. BATTERY SIMULATION • Principles • The battery discharges, at an ever decreasing rate, when the on-off switch, in the pendulum subcircuit, is switched on. • Whatever energy is left, is discharged, when the on-off switch, in the resistor display subcircuit, is switched on. • The battery energy, has to be calibrated. If statement • On-off switch Loop or setInterval • Battery discharging Square root • Battery discharging • Depends on curve fitting InnerHITML • Display battery discharging
  • 3. DISPLAY RESISTOR SIMULATION • Equation or principles • The rate of water electrolysis, or evaporation, is proportional to the current from the battery. • The rate of evaporation, is also proportional to the surface area to volume ratio, of the droplet. • In the experiment, we need to confirm whether there is a noticeable difference, in evaporation, when there is a current. Named setInterval function • Evaporation rate Mathematical operators • Evaporation equation
  • 4. NOTES • Use water droplets, as a fast science experiment. • What about environmental concerns? • Investigate what happens, when electrons are lost from a bicarbonate of soda solution. • Recharge the battery, with a current from a moving magnet.
  • 5. FOUR YEARS LATER... A QUICK UPDATE. • A while ago, I prototyped a step counter, which was supposed to count 3000 steps, to within 5% accuracy, either side. • The results were that, I achieved maybe a 19% error, with 3000 steps. Therefore, there was maybe a 10% error, to either side. • I did this experiment, in 2021. • 3000 steps were not fully counted, but I know how to increase the accuracy of the step counter prototype. (Just use more drops of water, simultaneously.) The prototype, is only for indoor use, and you need to keep looking at the drops, to count the steps, as the step counter relies on evaporation. • The actual results, were that in 5 minutes, I had counted 194 and 252 steps.
  • 6. SIMULATION OF HOW THE STEP COUNTER WORKS. -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0 50 100 150 200 250 300 350 400 Height (zy view) of the water drop route. (2nd attempt.) y -0.6 -0.4 -0.2 0 0.2 0.4 0.6 -1.5 -1 -0.5 0 0.5 1 1.5 xy view of the water drop route. (2nd attempt.) y y2