玩转猫头超声波测距
猫头超声波测距模块硬件示意图

猫头超声波测距模块积木

这个积木块就是检测猫头超声波测距的距离
猫头超声波测距积木详解

把积木块拖到积木块编程区中,可以检测超声波返回来的距离
必须插上超声波模块才会有数值!
小车电源必须要打开才会有数值!
在线模式测试

点积木块(保证小车已经恢复出厂固件!恢复出厂固件!)
可以看到当猫头超声波返回的距离数值
在线模式:
软件是必须打开,只要关闭了这个程序就是失效了。在线模式一般是用来调试的,可以快速看到编程的结果。即点就可以即运行。
离线模式:
当程序调试好了,这个时候就可以下载在电路板的芯片上,即使关闭电脑了,程序还是可以运行的。
大概测试了这个积木块的功能后,我们可以写控制猫头超声波RGB的程序了
编写猫头超声波距离感应程序转译并下载程序

根据上图操作,把积木块拖出来,组成一个完整的程序。
(或者直接打开我提供的程序)
绿色旗子积木块是必须的!
下载中

下载完成

猫头超声波距离小于阈值亮RGB灯

如果下载不成功,请检查:
板子类型是否选对?
是否连上COM口?
USB线是否连接好?
程序是否正确?
如果以上都不能解决问题,请联系小喵科技,热诚为你服务