Giter VIP home page Giter VIP logo

mugic_mindstorms's Introduction

MUGIC Mindstorm

UCI IN4MATX 117 MUGIC TEAM

More about MUGIC here: https://mugicmotion.com/

Project Team Members: James Kim, Warren Ma, Kelton Lindsey, Bolun Ruan, Yiyang Li, Iyad Hassan

Instructions

Setting Up MUGIC

  1. Install MAX: https://cycling74.com/downloads
  2. Run MUGIC_Connect_1.5.0.maxproj (provided in this repository. Credit: Mari Kimura)
  3. Run MUGIC_Starter.maxproj (provided in this repository. Credit: Mari Kimura)
  4. Connect your MUGIC unit to your computer. Tutorials here: https://mugicmotion.com/instruction-videos

Setting Up LEGO EV3 Mindstorms

  1. Download and flash the EV3Dev disk image onto your micro SD card. Image file and instructions here: https://www.ev3dev.org/docs/getting-started/#step-1-download-the-latest-ev3dev-image-file
  2. Inser the SD card into the EV3 unit and turn it on
  3. Connect your EV3 unit to the same network either through WIFI (instructions below) or a USB cable
  4. Move mugic_receiver.py to the EV3
  5. Run remote_start.py

Troubleshooting Tips

My EV3 does not receive any MUGIC signals.

You may need to change your localIP in mugic_receiver.py and MUGIC_Starter.maxproj accordingly. You should be able to see the EV3's local IP address when you run mugic_receiver.py

Otherwise, refer to MUGIC tutorials here: https://mugicmotion.com/instruction-videos

I don't know how to change the IP address in MUGIC_Starter.maxproj

On the MUGIC_Starter.maxproj window, click on the yellow presentation button on the bottom left to turn off presentation mode. Additionally, click on the lock icon on the bottom left if editing is locked. Now, you should be able to edit the MAX project.

Wireless Connection

According to https://www.ev3dev.org/docs/networking/, there are 3 supported Wifi dongles:

  1. NetGear WNA1100 Wireless-N 150 (officially supported by LEGO’s software)
  2. Edimax EW-7811Un 802.11n Wireless Adapter (officially supported by LEGO’s software. Requires network driver update. Instructions below)
  3. EP-N8508GS 150Mbps Mini Wireless 802.11N USB Adapter (not officially supported by LEGO, but also works)

Updating network drivers for Edimax EW-7811Un V2 WiFi dongle

From: http://msdl.cs.mcgill.ca/people/rparedis/sources/wifi-dongle-EV3

  1. Download this driver (8188eu.ko).
  2. Replace the driver on the EV3 in the /lib/modules/4.14.117-ev3dev-2.3.5-ev3/drivers/net/wireless/ folder. (Make a backup, just in case!)
  3. Reboot the EV3.
  4. Insert the WiFi-dongle into the device once it has started.
  5. Check that the WiFi-option is still empty.
  6. Execute (on the EV3) sudo modprobe 8188eu.
  7. To automatically enable it on startup, add 8188eu to /etc/modules.
  8. The WiFi should now be available on the EV3-brick. Use either the UI or the commandline to connect to a network

Other

Auto Connect

  1. Connect the LEGO brick to the computer.
  2. Set up venv if needed. (Do it under the MUGIC directory)

python -m venv venv
source venv/bin/activate

  1. Install the dependency it is run for the first time.

pip install -r requirements.txt

  1. Run udp_server.py

python udp_server.py

Manual Connect

In the terminal, Use SSH to connect to the LEGO brick.

ssh [email protected]

Type in the default password "maker" in the prompt.
If success, the EV3DEV lego will pop up. Try to let the robot say something.

espeak "Hello World."

If we need to update the code on LEGO brick, we will need to use SCP.

scp ev3dev_connector.py [email protected]:~

Again, type in the default password "maker" in the prompt.

mugic_mindstorms's People

Contributors

james-lsk avatar keltonlindsey avatar mrsteamedbun avatar rblpaul avatar youngyad avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

mugic_mindstorms's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.