官术网_书友最值得收藏!

Smart light – working with digital sensor

After writing our first C/C++ program for Raspberry Pi, we can now write a program that will take input from an LDR sensor and turn the LED on or off. For this project, you will need the following hardware components:

  • 1 LDR sensor module
  • 1 LED
  • Raspberry Pi
  • 5 female-to-female connecting wires

First, let's explore how the LDR sensor works.

主站蜘蛛池模板: 政和县| 镇江市| 四子王旗| 漠河县| 绥德县| 武乡县| 萝北县| 清流县| 乐安县| 旺苍县| 伊金霍洛旗| 墨竹工卡县| 黔东| 保亭| 页游| 定兴县| 二手房| 克拉玛依市| 望奎县| 永年县| 鹤庆县| 太康县| 青冈县| 驻马店市| 闵行区| 九寨沟县| 禹城市| 孟村| 夏津县| 尉犁县| 清流县| 兰州市| 长汀县| 浠水县| 楚雄市| 辽宁省| 盐源县| 黔西| 永靖县| 中超| 阿拉善左旗|