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
- Install MAX: https://cycling74.com/downloads
- Run
MUGIC_Connect_1.5.0.maxproj
(provided in this repository. Credit: Mari Kimura) - Run
MUGIC_Starter.maxproj
(provided in this repository. Credit: Mari Kimura) - Connect your MUGIC unit to your computer. Tutorials here: https://mugicmotion.com/instruction-videos
- 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
- Inser the SD card into the EV3 unit and turn it on
- Connect your EV3 unit to the same network either through WIFI (instructions below) or a USB cable
- Move
mugic_receiver.py
to the EV3 - Run
remote_start.py
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
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.
According to https://www.ev3dev.org/docs/networking/, there are 3 supported Wifi dongles:
- NetGear WNA1100 Wireless-N 150 (officially supported by LEGO’s software)
- Edimax EW-7811Un 802.11n Wireless Adapter (officially supported by LEGO’s software. Requires network driver update. Instructions below)
- EP-N8508GS 150Mbps Mini Wireless 802.11N USB Adapter (not officially supported by LEGO, but also works)
From: http://msdl.cs.mcgill.ca/people/rparedis/sources/wifi-dongle-EV3
- Download this driver (8188eu.ko).
- 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!) - Reboot the EV3.
- Insert the WiFi-dongle into the device once it has started.
- Check that the WiFi-option is still empty.
- Execute (on the EV3)
sudo modprobe 8188eu
. - To automatically enable it on startup, add
8188eu
to/etc/modules
. - The WiFi should now be available on the EV3-brick. Use either the UI or the commandline to connect to a network
- Connect the LEGO brick to the computer.
- Set up venv if needed. (Do it under the MUGIC directory)
python -m venv venv
source venv/bin/activate
- Install the dependency it is run for the first time.
pip install -r requirements.txt
- Run udp_server.py
python udp_server.py
In the terminal, Use SSH to connect to the LEGO brick.
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.