Как собрать MindCub3r из набора LEGO MINDSTORMS EV3
MindCub3r – робот, которого можно собрать из одного набора LEGO MINDSTORMS EV3 Обычная версия (31313) или из наборов EV3 Education Core и Expansion sets (45544+45560). Этот робот способен полностью решить и правильно собрать известную головоломку Кубик Рубика (Rubik’s Cube puzzle).
Все программы для MindCub3r будут правильно работать с прошивкой LEGO firmware v1.06H (home) или v1.06E (Education), а также с последующими новыми версиями прошивок. Рекомендуется всегда обновлять программное обеспечение центрального блока EV3 ( прошивку) до самой последней официальной версии от LEGO.
Аккуратно соберите робота по инструкции Инструкция по сборке (Обычная версия EV3 31313) или Инструкция по сборке (Образовательная версия EV3 Education 45544) , затем загрузите и установите программное обеспечение, как описано далее.
Программное обеспечение MindCub3r состоит из трех частей:
- Файл проекта: MindCub3r-v1p8.ev3 or MindCub3r-Ed-v1p8.ev3, который содержит программу управления моторами и сенсорами. Она создана в стандартном визуальном редакторе программ и проектов LEGO MINDSTORMS EV3
- Дополнительная запускаемая программа: mc3solver-v1p8.rtf, которая написана на C++ и реализует более эффективный и быстрый алгоритм решения головоломки, чем тот, который использовался для предыдущей версии NXT MindCuber ( для набора LEGO NXT)
- Приложение для EV3: “MC3 Solver v1p8”, которое используется для запуска программы mc3solver-v1p8.rtf
The main program and mc3solver-v1p8.rtf executable program communicate with each other via shared files on the EV3. Примечаниеe: Файл v1p8 использует расширение .rtf для возможности загрузки его в блок EV3 с помощью стандартного программного обеспечения LEGO MINDSTORMS EV3 для персонального компьютера. Расширение .rtf , которое обычно используется для текстовых файлов, в данном случае применяется к запускаемой программе, в качестве альтернативы. Пожалуйста, не открывайте этот файл с помощью обычного текстового редактора.
MindCub3r использует датчик EV3 color sensor (сенсор цвета) в режиме RGB, чтобы сделать возможным распознавание тех оттенков цветов, которые обычно не определяются в стандартном режиме сенсора, по умолчанию используемом в программном обеспечении LEGO MINDSTORMS EV3 . Программа Color Sensor RGB Block должна быть импортирована в программное обеспечение LEGO MINDSTORMS EV3 для персонального компьютера, чтобы поддерживать режим RGB для сенсора.
2. Программное обеспечение
Примечание: Используйте ссылки Загрузить следующим образом:
- На Windows – клик правой кнопкой мыши на ссылке Загрузить
- На Mac – при нажатой клавише control(ctrl), кликните на ссылку Загрузить
- Сохранить ссылку как…
- Сохранить содержимое как…
- Загрузить содержимое ссылки как…
- Запустите программное обеспечение LEGO MINDSTORMS EV3 на персональном компьютере и создайте новый пустой проект.
- Выберите в меню Tools (Инструменты) а затем – Block Import(Импортировать блок).
- В разделе Block Import and Export(Импортировать блок и Экспорт), выберите Browse(Обзор).
- Найдите загруженный ранее файл ColorSensorRGB-v1.00.ev3b на вашем компьютере и нажмите Open(Открыть).
- Выберите ColorSensorRGB-v1.00.ev3b из списка Select Blocks to Import( Выбрать Блоки для Импорта) и нажмите Import(Импорт).
- Чтобы правильно завершить установку , нажмите Сlose (Закрыть) , а после этого также закройте программное обеспечение LEGO MINDSTORMS EV3 полностью.
- Файл проекта с основной программой MindCub3r-v1p8.ev3 или MindCub3r-Ed-v1p8.ev3 project file with the main program
- Запускаемый файл программы mc3solver-v1p8.rtf
- InstallMC3-v1p8.rbf – приложение для запуска файла mc3solver-v1p8.rtf
- Запустите программное обеспечение LEGO MINDSTORMS EV3 для персонального компьютера, выберите в меню команду File(Файл) и затем выберите пункт Open Project( Открыть проект ).
- Найдите файл проекта MindCub3r-v1p8.ev3 или MindCub3r-Ed-v1p8.ev3 и нажмите кнопку Open(Открыть).
- Download (Загрузить) – с помощью этой кнопки загрузите программу MindCub3r в блок EV3 (но пока не запускайте ее).
- Выберите в меню пункт Tools(Инструменты) и затем пункт Memory Browser(Обзор памяти) .
- Нажмите кнопку Brick или SD Card (SD Карта)( если в основной блок EV3 у вас вставлена карта micro-SD ), найдите и выделите MindCub3r-v1p8 или MindCub3r-Ed-v1p8 в папке проектов (Projects) и нажмите кнопку Download(Загрузить).
- Find the folder on the computer where the files were extracted from MindCub3r-v1p8.zip or MindCub3r-Ed-v1p8.zip. Select mc3solver-v1p8.rtf and Open to download this program to the EV3.
- Find the folder on the computer where the files were extracted from MindCub3r-v1p8.zip or MindCub3r-Ed-v1p8.zip. Select InstallMC3-v1p8.rbf and Open to download this file to the EV3.
- Close the Memory Browser dialog.
- Go to the Run Recent screen on the EV3.
- Turn off the EV3 brick to ensure all the files are saved to the flash memory and then turn it on again.
- Run the “MC3 Solver v1p8” application on the EV3 from the Brick Apps screen to start the mc3solver-v1p8.rtf executable program.
- 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.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.
- 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.
- 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 release of the MindCub3r software is installed including the latest enhanced firmware. Version v1p8 has some improvements in the position of the scan arm and the underlying algorithm for discriminating the colors.
- 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.
- 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.
В появившемся меню выберите один вариант:
Затем выберите папку на вашем компьютере, куда вы собираетесь сохранить файл.
2.1 Установка Color Sensor RGB Block-
блок, ColorSensorRGB-v1.00.ev3b, на ваш компьютер. Иногда при загрузке этот файлe может быть переименован в ColorSensorRGB-v1.00.zip . В этом случае после загрузки, переименуйте его снова в ColorSensorRGB-v1.00.ev3b
-
Загрузите соответствующий вашей системе файл на ваш компьютерe:
-
(Обычный набор EV3 31313) (Education набор EV3 45544+45560)
-
Select Download again from the Memory Browser dialog.
-
Press the right button on the EV3 to move to the File Navigation screen. Select the MindCub3r-v1p8 or MindCub3r-Ed-v1p8 folder and press the center button to open it. If there is a micro-SD card in the EV3, select and open the SD_Card folder first.
-
Use the down button to Select InstallMC3-v1p8 and press the center button to run it. The EV3 will make a short beep.
MindCub3r is now ready to use!
3. Operation
-
Run the MindCub3r program on the EV3 from the Run Recent screen or from the File Navigation screen if it is the first time it has been run.
4. Troubleshooting Tips
4.1 ScanningIf MindCub3r attempts to scan the cube 3 times and displays the message “Scan error” the following tips may help.
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 pageand 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 youtube.com/IAssemble and youtube.com/ARMflix
Copyright © 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 (David Gilday)