FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Practical DIY: Birth of an Arduino thermometer

     

    Arduino is an essential magic weapon of Corporate DIY. With the Arduino development board, CNG can implement some common electronic devices to run functionality through simple code programs. Today, Chuangxin's Workkeeper has brought you an Arduino thermometer. This thermometer can be used as a daily thermometer, and a home decoration can be made, especially a small innovation guest that is suitable for love. So, how is it realized? Final work photo First, material preparation Arduino Uno X1 Arduino expansion board x1 LM35 temperature sensor X1 9G steering gear X1 A number of wires A4 white card paper x1 materials needed Second, the box production Ready tools and jams First, we have to use the rules and pencils to draw the plan of the box to be made according to the drawing of the box, draw it on the paper, the size of the box is based on the size of the next Arduino board, which is very test space imagination and box. structure. Square paper box expands After painting, we can cut it with scissors, as shown below: Drawing drawing after cutting Everyone can see a pointer to a small water drop in it, this is very simple, everyone cuts a color on the remaining card paper. Next, according to the edge of the original painted edge, you can remember the one-faced view of the drawing line, which can ensure the cleanliness of the appearance. Here everyone remembers taking out your own colors! Give it a good-looking painting, and the scale can be designed yourself. Box making completion Third, Arduino circuit construction and assembly After completing the previous box production, this step we have to complete the core part of the entire work, the sensor connection and the circuit are set up, and the connection diagram is as follows: Circuit connection diagram Circuit After connecting the circuit, put the steering gear in the box, and open a small hole in front of the box before installation, and then secure the steer in the carton with hot melt glue, as shown in the figure: Install a steering gear How is the small water drip pointer installed on the servo? Here, you should use the steering wheel that you bring on the servir! Directly use double-sided adhesive to fix the pointer on the rudder disc, please see the figure below: Multi-disk and pointer installation Install the steering gear, rudder, pointer to carton Here, all of the hardware is completed, and next is the write driver. Fourth, the program is written Arduino driver is written, we still use Arduino IDE to write this program, below is the driver of this beautiful Arduino thermometer, let us diy let this cold winter change. The principle of the code of this code is to collect the simulation value by the LM35 temperature sensor, convert the analog value to the temperature value by the transformation formula, because the dial is used by the steering machine, so it will be used here to use a mapping function MAP, turn the temperature The value mapped to the corresponding angular value, thereby controlling the pointer to the corresponding position. code show as below: #include #include Servo myservo; INT A, VAL; / / Defining variables FLOAT TEMPERATURE; / / Define floating point variables for storing the conversion temperature INT b = 3975; // Basic reference value of thermistor B Float Resistance; Void setup () { MyServo.attach (4); / / Define the servo drive port } void loop () { a = analogread (0); // read the simulation value of the temperature sensor Resistance = (float) (1023-a) * 10000 / a; / / calculate the resistance value of the sensor Temperature = 1 / (log (Resistance / 10000) /B +1/298.15) -273.15; // Convert resistance to temperature values DELAY (500); // delayed 500 ms VAL = MAP (Temperature, 0, 50, 0, 180); // // map the conversion temperature value to the angle value of the steering machine MyServo.write (VAL); // Switch to the corresponding angle } WeChat public account search "Love Board Network" plus attention, daily update development board, intelligent hardware, open source hardware, activities, etc., you can make you full. Recommended attention! [WeChat scanning picture can be directly paid]

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us