Coder Social home page Coder Social logo

thermometer's Introduction

    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.

thermometer's People

Contributors

amjoshaghani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.