且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

机器人编程-无需与PC连接

更新时间:2023-02-22 20:15:44

我将使用Arduino-查看
I''d use an Arduino - check out the ^Teensy.
Teensy supports the Arduino dev environament, and is perfect for stuff like this.
Connect the sensor''s Vo to one of the Teensy''s analog inputs, then use the sensor datasheet''s chart to compute the distance from the A/D reading.
You''ll have troubles with the 15cm boundary, though.
Also unknown how you''ll detect color as both of the sensors you list detect range not color.