1

I am working on a project which involves to power on/off a Raspberry Pi with an Arduino. In fact the project contains several sensors like a motion sensor and the Arduino will be supplied with a 10kmA battery.

The motion sensor is connected on the Arduino device.

Once the sensor detects a movement, the Arduino will receive the instruction to deliver the 5V to the Raspberry Pi.

How can I supply the Raspberry Pi with the Arduino? GPIO? USB?

I have already seen solutions to power an Arduino with a Raspberry Pi, but never the opposite.

4

1 回答 1

3

开机很容易:只需使用一个您用 Arduino 控制的小型继电器,它将 5v 从电池切换到 RPi。

关闭 Pi 应分两步完成:

  • 将 GPIO 连接设置到 Pi 的 GPIO 标头,“发送”信号以关闭。RPi 必须接收此信号作为 GPIO 上的中断,并且可以执行关闭脚本
  • 第二步应该等到 RPi 完全关闭。也许您可以借助 RPi LED 或类似的东西观察到这一点(否则,不干净的解决方案是等待 XX 秒)。知道 Pi 关机后,可以再次打开 5V 继电器。
于 2015-11-26T13:33:02.043 回答