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

  • Android Things Projects
  • Francesco Azzola
  • 228字
  • 2021-07-02 20:46:27

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.
主站蜘蛛池模板: 奉节县| 泰来县| 济宁市| 广宗县| 乌兰察布市| 青海省| 苏尼特右旗| 天台县| 托里县| 姚安县| 鄂温| 宁夏| 孟津县| 金塔县| 沙田区| 微山县| 九寨沟县| 连州市| 西丰县| 白沙| 焦作市| 永吉县| 吴江市| 稷山县| 绥中县| 凉山| 沅江市| 宁海县| 佛教| 商河县| 淅川县| 广德县| 广汉市| 泗水县| 雷山县| 新丰县| 阜新市| 新田县| 施秉县| 威远县| 六盘水市|