机器人编程-无需与PC连接 [英] Robot programming- without interfacing with PC

查看:102
本文介绍了机器人编程-无需与PC连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索,但找不到合适的指南.
Scenerio是:机器人必须穿过迷宫并放置一些有色盒子.
在每个框中,它必须放一个颜色匹配的球,并在所有球都放下后退出.
我们将使用壁式传感器(型号:GP2D120XJ00F Sharp传感器或型号:GP2Y0A02YK0F Sharp传感器)和颜色传感器(完成的工作的一半:)),但实际上不知道代码结构,即如何从传感器获取输入,以及如何借助来自墙面传感器的输入来穿越迷宫.
注意:机器人不受遥控器或蓝牙等的控制.代码必须转储到与微控制器一起使用的内存中,重置机器人时必须开始执行.

我们对java,C,C ++感到满意.任何相关的教程或建议都将受到高度赞赏.

I have been searching around but was not able to find a suitable guide.
Scenerio is: The robot has to traverse a maze where some colored boxes are placed.
In each box it must drop a ball of matching colour and after all balls have been droped, then exit.
We will be using wall sensor(Model: GP2D120XJ00F Sharp sensor or Model: GP2Y0A02YK0F Sharp sensor) and color sensor(half of the work done:)), but really dont know about the code structure i.e. how to get the input from sensor, and how to traverse the maze with the help of input coming from wall sensor.
Note: The robot is not to be controlled by a remote control or bluetooth etc. The code has to be dumped in memory used with a microcontroller, must start execution when the robot is reset.

We are comfortable with java,C, C++. Any related tutorial or suggestions are highly appreciated.

推荐答案

我将使用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.


这篇关于机器人编程-无需与PC连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆