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

Project schematic

The peripherals we need to build this project are:

  • PIR sensor
  • Raspberry Pi 3 or Intel Edison with Arduino breakout kit
  • Google Firebase account
  • Wire jumpings

You can buy a PIR sensor in an online store such as Amazon, Sparkfun, or Adafruit.

The following diagram describes how to connect the PIR sensor to the Android Things board if you are using Raspberry Pi 3:

If you are using Intel Edison with Arduino breakout kit the connections are shown here:

In this case, we can directly connect the sensor to our board. The connections are:

  • Connect the PIR to the pin that supplies +5V
  • Connect the ground PIR pin to the ground of the board
  • Connect the PIR signal to pin 7 for Raspberry or pin 4 for Intel Edison

As you can notice, the sensor connects to +5V in both cases: Raspberry and Intel Edison. The signal pin provided by PIR is zero when no motion is detected and +3V when the motion is detected. Considering that the high level supplied by the PIR is +3, then we can connect the PIR sensor safely to Raspberry Pi 3.

Remember to connect the sensor to the board when this one is unplugged from your computer. Do not try to connect the sensor when your board is turned on, as you could damage your board and the sensor.
主站蜘蛛池模板: 徐州市| 阿拉善右旗| 嘉荫县| 灵璧县| 永嘉县| 昌吉市| 宝兴县| 瑞安市| 吉水县| 积石山| 永城市| 饶河县| 衡阳县| 化德县| 闽侯县| 梅州市| 阿克苏市| 平顶山市| 和硕县| 莎车县| 乐平市| 耒阳市| 茶陵县| 化德县| 山阴县| 乾安县| 淮滨县| 桦南县| 双鸭山市| 桦川县| 乌兰浩特市| 三河市| 邮箱| 乡宁县| 佳木斯市| 南投县| 手机| 新竹县| 额尔古纳市| 镇江市| 新疆|