本帖最后由 pal_liu 于 2017-1-14 20:44 编辑
刚入ev3家用版的第一个作品就是解魔方机器人
ev3
期间遇到扫描失败的问题,后经过查阅资料后发现与购买的魔方有关
If MindCub3r attempts to scan the cube 3 times and displays the message "Scan error" the following tips may help. - MindCub3r is designed to work with an official Rubik's Cube branded by Rubik's. However, it should work with most cubes provided one set of stickers is white and the others are distinct colors. It is optimized to work with white, yellow, red, orange, green and blue stickers.
NOTE: cubes with very bright, vivid, "fluorescent" stickers may not scan reliably because the LEGO color sensor can return similar values for colors that look different to us. If none of the other tips help and you think this may be an issue, please consider replacing the stickers with more conventional colors or try an alternative cube.
这是官方原话,大致就是说扫描魔方的颜色为白,黄,红,橙,绿,蓝,6个颜色,表面太亮会影响识别。
于是我就换了57mm磨砂表面(由于磨砂表面的贴纸相对较厚不容易被底色混淆)黑色\白色底的魔方淘宝价格7.90-9.90马上就成功了
程序版本MindCub3r-v2p1.ev3
附上我做的一个颜色识别的小程序,把魔方放在托盘上将颜色传感器调整到魔方色块上方识别成的颜色会用英语读出来
color read.ev3
(44.07 KB, 下载次数: 78)
祝大家成功!
|