[摄影摄像] arduino检测用传感器

[复制链接]
查看135 | 回复0 | 2022-5-23 02:37 | 显示全部楼层 |阅读模式
问题:
arduino检测用传感器

我需要arduino 传感器检测气体,液体,固体(不晓得行不行)需要什么传感器。(请一一列举名称,型号,用途)还有制作飞行器和机械手臂(加上摄像头,和超声波测距)需要怎么做?


推荐答案:
读取模拟口数据,在空气中为0,完全插入水中月700左右。
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
【玉璞集 YUPUG.COM】