User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
20201223 planning a circuit simulator in java script
1. PLANNING OUT A
CIRCUIT SIMULATOR IN
JAVASCRIPT, FOR A STEP
COUNTER
SHARON LIU. 2020/12/23.
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.