Arduino Temperature Sensor

Introduction: Arduino Temperature Sensor

專題來源:

https://www.instructables.com/id/Arduino-LED-Tempe...

可以放在房間或是室外測溫度,測量範圍是0~100度,天氣冷或涼涼的時候會亮藍色的燈;介於熱跟涼之間會亮綠燈;熱的時候會亮紅燈,另外我加了喇叭表示警示。

Step 1: 零件

Arduino Leonardo *1

麵包板 *1

跳線*11

220Ω電阻*3

LED燈泡*3( 紅、藍、綠)

LM35溫度感測器*1

喇叭*1

鱷魚夾跳線*9

Step 2: 接溫度感測器

  • GND 接負極,5V接正極
  • 接上溫度感測器中間接A2兩邊接上正負極

Step 3: 接燈泡

  • 藍色燈泡長腳接Digital pin 2再接電阻,短腳接負極
  • 綠色燈泡長腳接Digital pin 3再接電阻,短腳接負極
  • 紅色燈泡長腳接Digital pin 4再接電阻,短腳接負極

Step 4: 接喇叭

  • 正極接Digital pin 11,負極接GND

Step 5: 程式碼

Step 6: 放入外盒

Be the First to Share

    Recommendations

    • Retro Tech Challenge

      Retro Tech Challenge
    • Rocks, Gems, and Stones Speed Challenge

      Rocks, Gems, and Stones Speed Challenge
    • Halloween Contest

      Halloween Contest

    Comments

    0
    Elaina M
    Elaina M

    1 year ago

    Very cool - looks like a great project. Congratulations on sharing your first instructable :)