- 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.
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(第三版)
- Spring Cloud Alibaba核心技術(shù)與實戰(zhàn)案例
- Learn TypeScript 3 by Building Web Applications
- UML和模式應(yīng)用(原書第3版)
- TensorFlow Lite移動端深度學(xué)習(xí)
- 自己動手實現(xiàn)Lua:虛擬機、編譯器和標(biāo)準(zhǔn)庫
- Java 9 Programming Blueprints
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- Bootstrap Essentials
- 青少年P(guān)ython編程入門
- Learning Hunk
- Node.js Design Patterns
- Learning Vaadin 7(Second Edition)
- 焊接機器人系統(tǒng)操作、編程與維護
- PHP 7從零基礎(chǔ)到項目實戰(zhàn)