找回密码
 马上注册

QQ登录

只需一步,快速开始

查看: 305977|回复: 279

EV3版的MindCuber搭建及程序下载(更新至v2p1版)

   火... [复制链接]
发表于 2013-10-12 23:04:05 | 显示全部楼层 |阅读模式
本帖最后由 ntwuhui 于 2016-6-6 23:02 编辑

如题,能直接访问的可以看这里,本视频下载来源于原站点! 具体实施步骤见2楼

家庭版演示:


教育版演示:


搭建方案:
       家庭版(31313)v1.0          教育版(45544+45560) v1.1  v1.0

执行程序:
       家庭版   v2p1 v2p0
                    v1p9 v1p8 v1p7 v1p6  v1p5  v1p4  v1p3  v1p1a  版本v1p1:下载  v1p0:下载   
       教育版   v2p1 v2p0
                    v1p9 v1p8 v1p7 v1p6  v1p5  v1p4  v1p3

增强固件:仅使用于v1p1和v1p0版,新版使用官方原版固件(1.06H、1.06E以上)
      1.04M 下载            1.05M 下载

颜色传感器模块:下载

说明:
v2p1  改善扫描可靠性(改变对“亮”魔方的检测)

v2p0  与旧的固件版本兼容(如1.06H)  

v1p9   添加加扰模式选项

v1p8   改善对部分方块位置的计算时间
          改善自动白平衡(红色与橙色之间的识别力)
          调整扫描的速度和位置
          使用自适应延迟(为RGB模式下的颜色传感器)

v1p7  改善自动白平衡算法(特别对于亮橙色)
         当处于低电量时,通过降低阀值来改善扫描位置
         通过调整扫描臂的位置, 改善对魔方块边缘的识别
         通过提高红外传感器识别范围, 提供更可靠的魔方检测

v1p6  改善解魔方算法(教育版固件体积仍然很小)
         在三次扫描有误之后显示"cube errors"
         
v1p5  自动调整扫描采样点的位置来提高扫描的可靠性

v1p4  调整扫描速度和位置
         颜色传感器扫描错误后重新扫描
         多次扫描并试图解决扫描错误时信息提示

v1p3  能够通过EV3程序块按钮的模式选择来直接求解
         在解魔方过程中增加计时器和进度信息显示
         对过硬的魔方移动提高了可靠性
         更迅速、更可靠的扫描
         调整倾斜运动以提高可靠性
         减少mc3solver可执行程序的大小
         支持使用Ev3教育核心和扩展套装的变种搭建

v1p2 未释放

v1p1a 使用程序块应用程序,支持标准乐高固件

v1p1  重命名autorun、mc3solver为可执行文件,以便可以在Mac上下载
         改进扫描算法(含改进的扫描臂算法)
         三次扫描后报错
         允许通过使用EV3程序块按钮调整转盘

v1p0  初始版本

版权所有:David Gilday

评分

参与人数 4乐币 +72 人气 +7 收起 理由
wxy0404 + 2 + 1
leoxia + 10 + 5 中文乐高有你更精彩:)
RRRay + 50 中文乐高有你更精彩:)
xgt107 + 10 + 1 中文乐高有你更精彩:)

查看全部评分

本帖被以下淘专辑推荐:

如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
发表于 2015-1-16 13:52:36 | 显示全部楼层
解魔方机器人程序运行到find solver停止怎么搞
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 8 0

使用道具 举报

 楼主| 发表于 2013-10-12 23:17:31 | 显示全部楼层

方案实施说明

本帖最后由 ntwuhui 于 2016-6-6 23:06 编辑

1. 描述
      MindCub3r 是一个由一套乐高头脑风暴EV3家庭版套件(31313)或者一套EV3教育版核心和扩展套件(45544+45560)搭建而成并用于解决著名的魔方问题的机器人。
      所有
MindCub3r版本软件可以在EV3固件版本为 v1.06H (家庭) 和 v1.06E (教育)及以上版本工作。建议EV3固件更新到乐高发布的最新版本。
      请仔细按照 搭建方案 (家庭版) 或者 搭建方案 (教育版) 构建机器人,下载并安装下面所描述的软件。
      MindCub3r 软件主要由三个部分组成:
  • 一个项目文件: MindCub3r-v2p1.ev3 或 MindCub3r-Ed-v2p1.ev3,一个使用标准乐高MINDSTORMS EV3 图形化编程环境创建的包含电机和传感器的控制程序。
  • 一个可执行程序: mc3solver-v2p1.rtf, 编译自一个用C++实现的高效求解算法程序,通过这个程序可以找到比NXT MindCuber变种更高效的解决方法。
  • 一个EV3应用程序: "MC3 Solver v2p1", 用来启动mc3solver-v2p1.rtf可执行程序。
      主程序和mc3solver-v2p1.rtf可执行程序通过位于EV3内的共享文件进行通信。(PS:详细通信原理参考这里——译者注

注意:
v2p1发行版之所以使用.rtf扩展名,是为了允许使用标准乐高MINDSTORMS EV3软件下载该文件。 该.rtf文件的使用目的是为了一个包含文本的文件(PS:mc3.rtf,内含通信指令),因此使用.rtf文件其实是围绕这一文本文件,并作为一个可执行程序来运行的。请不要尝试使用文本编辑工具打开这个文件。
      MindCub3r使用了一个位于RGB模式下的EV3颜色传感器模块, 它可以测量即便使用标准乐高MINDSTORMS EV3软件中提供的标准颜色模式的颜色传感器都无法区分的色彩。这个RGB模式的EV3颜色传感器模块必须导入到乐高MINDSTORMS EV3软件中来支持这个模式

2. 软件
注意: 使用下面的下载链接:
  • Windows - 在链接上右击
  • Mac - 点击链接时按住控制(ctrl)键
从弹出的菜单中选择
  • 链接另存为...
  • 目标另存为..
  • 下载链接文件为...
然后从你的计算机中选择一个文件夹来保存这个文件。
2.1 安装颜色传感器模块
  • 下载 模块ColorSensorRGB-v1.00.ev3b到你的计算机中。注意一下这个文件在下载过程中或许会重命名为ColorSensorRGB-v1.00.zip。 如果发生这样的情况,请重新改名为ColorSensorRGB-v1.00.ev3b。
  • 启动乐高MINDSTORMS EV3软件并创建一个新的空项目文件。
  • 选择工具菜单下的模块导入向导
    2.1.3.png
  • 在模块导入与导出向导对话框中,选择浏览按钮。
    2.1.4.png
  • 在计算机中找到文件ColorSensorRGB-v1.00.ev3b并打开它。
    2.1.5.png
  • 从选择模块导入列表中选择ColorSensorRGB-v1.00.ev3b,然后选择导入按钮。
    2.1.6.png
  • 为完成安装,关闭对话框并退出乐高MINDSTORMS EV3软件。

2.2 下载MindCub3r程序
  • 将相应的文件下载到计算机:
    注: 以前的版本在这里下载。
  • 从压缩包中解压所有的文件。在一台运行Windows的计算机中,找到Windows资源管理器中的文件,单击右键并选择 解压到... 压缩包中包含:
    • 项目主程序MindCub3r-v2p1.ev3 或 MindCub3r-Ed-v2p1.ev3
    • 可执行程序mc3solver-v2p1.rtf
    • 安装文件InstallMC3-v2p1.rbf 用来启动 mc3solver-v2p1.rtf
  • 开启LEGO MINDSTORMS EV3 软件,选择 文件 菜单,然后 打开项目
  • 找到项目文件MindCub3r-v2p1.ev3 或 MindCub3r-Ed-v2p1.ev3 并打开
  • 下载 MindCub3r 程序到EV3中 (但不要运行它)。
  • 选择 工具 菜单并打开 内存浏览器
  • 选择 程序块 (或 SD 卡,如果EV3中有一个微型SD卡的话) ,在项目文件夹中找到并选择 MindCub3r-v1p9MindCub3r-Ed-v1p9 ,然后选择 下载
  • 在计算机中找到 MindCub3r-v2p1.zip 或 MindCub3r-Ed-v2p1.zip 解压后的文件。选择 mc3solver-v2p1.rtf , 打开并下载程序到EV3中。
  • 从内存浏览器中再次选择 下载
  • 在计算机中找到 MindCub3r-v2p1.zip 或 MindCub3r-Ed-v2p1.zip 解压后的文件。选择 InstallMC3-v2p1.rbf, 打开并下载文件到EV3中。
  • 关闭内存浏览器对话框。
2.3 安装MC3 Solver应用
  • 转到EV3第一个屏:最近运行
  • 通过按EV3上的右移按钮到 文件导航 屏幕。选择MindCub3r-v2p1或MindCub3r-Ed-v2p1文件夹并按下中间的按钮打开它。如果有一个迷你SD卡插在EV3内,首先选择SD_Card文件夹并打开它。
  • 使用向下按钮选择InstallMC3-v2p1并按下中间按钮执行它。EV3将会发出“哔”的一声。
  • "MC3 Solver v2p1"应用程序将会安装在 程序块应用 屏幕内。
  • 关闭EV3程序块并确认所有文件均已保存在闪存内,然后再次打开它。
       MindCub3r 现在准备完毕!

3. 操作
  • 从EV3的 程序块应用 下面执行"MC3 Solver v2p1"应用程序,启动mc3solver-v2p1.rtf可执行程序。
  • 在每次打开EV3时,这个程序仅需要执行一次,然后程序会一直在后台持续运行,直到EV3被关闭。
  • 最近运行 或者 文件导航 屏幕下面运行MindCub3r应用程序,首次运行从 文件导航 下执行。
  • The program first resets the position of the scan arm (holding the color sensor) and then the tilt arm. If the turntable starts to rotate or the two arms do not move in this order, please carefully check that cables have been connected to the correct ports on the EV3 as shown by the color coding in the build instructions. During this period, the EV3 buttons flashes red.
    The program then connects to the mc3solver-v2p1.rtf program that was downloaded to the EV3. If the program is found, the EV3 makes a short beep and continues. If the solver program is not running, the buttons continues to flash red and the message "Find solver" is displayed on the EV3 screen. If this happens, please check that the "mc3solver-v2p1.rtf" program has been downloaded to the MindCub3r-v2p1 or MindCub3r-Ed-v2p1 project folder on the EV3 and that the "MC3 Solver v2p1" application has been installed and run once.
    When MindCub3r is ready to start, the EV3 buttons turn orange and the message "Insert cube..." is displayed on the screen.
  • Gently turn the turntable in each direction with your finger so that it moves slightly because of "play" in the gears connecting it to the motor. If necessary, adjust the position of the motor so that there is an equal mount of play in each direction. Use the left and right buttons on the EV3 to do this. A short press nudges the motor by a small angle. Holding the button for longer moves it by larger angles more quickly.
  • Insert a scambled Rubik's Cube into the turntable tray and MindCub3r will start to scan and solve the cube.
    MindCub3r may scan the cube up to three times if it is unable to determine the colors at first. If the scanned colors do not result in a valid pattern, MindCub3r will stop after the third attempt and display the message "Scan error" on the EV3 display. If this happens, there may be a number of possible causes. See the troubleshooting section.
  • MindCub3r can solve the cube directly into patterns or scramble it. Before inserting the cube, use the up and down buttons on the EV3 to select a specific pattern, "All" to create each pattern in turn or "Random" to cause MindCub3r to solve normally and occasionally generate a random pattern. Selecting "Scramble" will make MindCub3r scramble the cube without scanning it.
    If there is a cube present before MindCub3r is ready, the buttons will stay red and the message "Remove cube..." is displayed for you to remove the cube. If this happens even when no cube is present or if MindCub3r does not start to scan the cube when it is inserted, please check that the cables to the infra red or ultrasonic and color sensors are connected to the correct ports on the EV3 as shown in by the color coding in the build instructions.

4. 故障排除提示
4.1 一般情况
The video of the home variant of MindCub3r shows a prototype. The scan arm support was improved before the build instructions were published so do not worry if your MindCub3r does not look quite like the video. There are many other videos of MindCub3r built by other people in this playlist
4.2 翻转
If MindCub3r fails to tilt the cube correctly the following tip may help:
  • Check that the tilt arm has been built exactly as shown in the build instructions. In particular, carefully check the position of the grey connectors and pegs that connect the tilt arm to the levers from the tilt motor.
4.3 扫描

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.
  • Cubes with a white plastic body may scan less reliably that those with a black body but may work reasonably well if there are no other issues.
  • A standard cube is about 57mm along each edge. MindCub3r will work most reliably with a cube this size although cubes that are only slightly larger or smaller may work. It has been known to solve some cubes as small as 55mm but not all.
  • Make sure latest version of the EV3 firmware from LEGO is installed on the EV3.
  • Make sure latest release of the MindCub3r software is installed.
  • Check that the scan arm has been built exactly as shown in the build instructions. Small differences such as how the black 5-hole beams on either side of the scan arm are connected can alter the position of the color sensor during the scan or even jam the scan arm so it stops during the scan. In particular, if the color sensor looks as though it is over the edge of the cube or too close to the middle while scanning the corner or edge, please check the build instructions again.
  • Even if the cube appears to tilt each time during the scan, it may be that the cube is being pushed too far across the turntable affecting its position under the color sensor. Check that the tilt arm has been built exactly as shown in the build instructions. In particular, carefully check the position of the grey connectors and pegs that connect the tilt arm to the levers from the tilt motor.
  • If the EV3 is positioned one hole too far towards the turntable, the corner of the turntable may catch on the edge of the screen causing it to "jump" a little as the turntable rotates. Check that the EV3 is positioned exactly as shown in the build instructions.
  • Make sure that the turntable is carefully aligned before inserting the cube as described here. This is required to ensure that the cube is positioned correcetly under the color sensor during the scan.
  • Use new or well charged batteries as the reset position of the scan arm can be affected by low battery levels.
  • Try the scan in dim lighting conditions as the color sensor can become saturated in bright lights.
  • Try to bend the cable connecting the color sensor to the EV3 in its most natural direction (swap the two ends if necessary) and through the clip at the bottom of the scan arm to minimize any force that the cable applies to the position of the color sensor during the scan.
If this does not help, please upload a video showing a failing scan with close up views of the scan arm from different angles and the position of the color sensor over the cube as the scan arm moves and post a link on the MindCuber Facebook page and I will try to help.

Like MindCuber on Facebook to share your experiences and help each other with troubleshooting.

See more LEGO robot Rubik's Cube solvers at 水管.com/IAssemble and 水管.com/ARMflix
版权 © 2013-2015 David Gilday
LEGO and MINDSTORMS are trademarks of the LEGO Group
Rubik's Cube is a trademark of Seven Towns Limited
Disclaimer: thoughts and opinions expressed here are my own
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 7 0

使用道具 举报

发表于 2014-1-8 22:05:27 | 显示全部楼层

我也照着做了一个,可是颜色传感器卡住了,那个扳动魔方的机械臂也卡住了,我仔细检查了一遍,没有发现组装错误。请问大家有相同的经历吗?
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 5 0

使用道具 举报

发表于 2014-8-24 10:54:50 | 显示全部楼层
fubin123 发表于 2014-2-9 13:14
实验了手里胡几个魔方,魔方的颜色也有区别,用这个程序都能解开。
看来只要魔方转动灵活选什么牌子的魔方 ...

我按照搭建图搭建,程序也也是按照说明下载和导入,可是运行起来不对,程序一开始复位,扫描,然后颜色手臂复位,接着就最左边的A马达复位,然后就没有然后了,核心一直不停的闪烁这红色等,而且显现找到解?请问高手这是什么原因?有一点,我用的不是视频里的红外,我用的超声波传感器、
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 3 0

使用道具 举报

发表于 2014-4-10 18:06:54 | 显示全部楼层
1、打开EV3 Home软件,与EV3建立链接
        2、检查并升级固件,工具菜单——固件升级
                这一步一定要有耐心,不能断电、随意断开链接,更新成功后系统后自动重启。
        3、导入颜色模块,工具菜单——模块导入向导
                注:下载的文件如果为ColorSensorRGB-v1.00-EV3.zip,直接将后缀改为.ev3b即可。
        4、网络上下载的MindCub3r-v1p1-EV3.zip,解压后包含有用的3个文件,即项目程序MindCub3r-v1p1.ev3、autorun.rtf、mc3solver-v1p1.rtf    楼主,我就差最后一步了,第4步到底怎么做的,求解啊!!!到底怎么把那2个软件下载到程序块里
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 2 1

使用道具 举报

发表于 2015-1-16 13:52:05 | 显示全部楼层

我的是教育版,固件版本1.06E,使用的是v1p6程序,也是出现这个问题!我已经把压缩包里面的另外两个文件下载到程序中咯,还是不行!换了其他版本也不行!重启也不行
求高手指点
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 1 0

使用道具 举报

发表于 2014-6-2 17:47:21 | 显示全部楼层
我也照着做了一个,可是颜色传感器卡住了,那个扳动魔方的机械臂也卡住了,我仔细检查了一遍,没有发现组装错误。怎么解决呀?
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 1 0

使用道具 举报

发表于 2014-2-7 16:40:08 | 显示全部楼层
从机械结构角度来看类似NXT版本的设计,对于程序还没有进行对比,感谢LZ分享。
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 1 0

使用道具 举报

发表于 2013-10-19 23:16:33 | 显示全部楼层
机构上问题不大,关键是程序啊。。。
曾努力过,但是还是搞不定程序。、。。。
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复 1 0

使用道具 举报

发表于 2013-10-13 10:07:55 | 显示全部楼层
静等。
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-13 11:05:53 | 显示全部楼层
开搞~
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-13 15:20:23 | 显示全部楼层
咋能下载能
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-13 17:31:19 | 显示全部楼层
非常不错!等待中
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-14 19:40:37 | 显示全部楼层
逆天那!新入手的EV3正愁没用呢!
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-15 09:43:11 | 显示全部楼层
怎么下载
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-15 09:44:09 | 显示全部楼层
你好
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

 楼主| 发表于 2013-10-15 11:28:48 | 显示全部楼层

作者暂时还没提供
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-15 22:30:44 | 显示全部楼层
静待
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-16 10:23:52 | 显示全部楼层
和原来的其实没啥差别吧。
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

 楼主| 发表于 2013-10-16 21:04:54 | 显示全部楼层
结构上应该差不过
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

发表于 2013-10-20 14:14:16 | 显示全部楼层
不错
如果您觉得我的帖子对您有用,请不吝给我一个“赞”!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|中文乐高 ( 桂ICP备13001575号-7 )

GMT+8, 2024-3-29 14:49 , Processed in 0.100416 second(s), 27 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表