简体   繁体   中英

How to read raspberry pi temperature from script on an Arduino to control fan

我正在做一个包括我的树莓派和 aruduino 的学校项目,我制作了一个温度脚本,允许我监控 pi 的当前温度,我想知道是否可以从我的 arduino 读取此输出以控制风扇的速度。

You can actually to it all with the Raspberry Pi. Control you fan with a PWM value that will then turn on and off a MOSFET.

If you really have to do it with the Arduino, the "simple noob" way of doing this is to send a PWM pulse output from the Pi and analog read it from the Arduino. From there, do the same as you would do with the Pi.

You could also use serial communication. If you have to use the Arduino, then Dat Ha is right, PWM is the easiest.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM