amjoshaghani / thermometer Goto Github PK
View Code? Open in Web Editor NEWSimulation of a simple digital thermometer using sound velocity in a specific environment.
Simulation of a simple digital thermometer using sound velocity in a specific environment.
This module is a `Thermometer` which uses two devices, one as server and one as client to detect environmental temperature using sound transmission speed. At a glance, we can summarize this phenomenon into this simple equation, on which the basis of this test is implemented: (1) v = 331 * SQRT(1 + T / 273) Which, then comes to be written in this form: (2*) T = 273 * ((v/331)^2 - 1) In this case, for evaluating the LHS of the equation, we only need to find value of variable (v), which can be arranged in way of measuring the time duration between sending and receiving of the sound wave. It is where having two devices in same environment comes to be useful. Using the simple motion formula (3) v = x/t We can obtain value of the LHS setting x** to 1m and achieving t through said measurement. Thus, putting x and t inside the equation generates value of v, using which we can now evaluate in formula (2) and obtain the desired environmental temperature. __NOTES __ (*) It is to be noted that the result is in Kelvin, and we can generate the results in Celsius and Fahrenheit afterward using following formulae. (i) θ = T - 273 (ii) F = (9/5)(θ) + 32 (**) x is the distance between devices, and can be set to desired distance in meters. Also, please note that the second device requirement can be completely ignored if distance to the nearest wall or obstacle can be measured.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.