“Arduino实验二十四:水位传感器实验”的版本间的差异

来自丢石头百科
(创建页面,内容为“=== 实验现象 === * 通过串口打印模块测量到的距离 === 电路连接 === * === 主要程序 === <pre> temp=(long)analogRead(A0); data=(temp/650)*…”)
(没有差异)

2023年2月23日 (四) 14:55的版本

实验现象

  • 通过串口打印模块测量到的距离

电路连接

主要程序

  temp=(long)analogRead(A0);
  data=(temp/650)*40;
  Serial.print("the depth is:");
  Serial.print(data);
  Serial.println("mm");
  delay(1000);

相关下载