Throughout the following missions, you will be working with Python 3 code to program your EV3 Brick, and Node.js for an Alexa Skill. To make this process as easy as possible, these missions assume the use of Visual Studio Code and recommended extensions that make it easy to connect to and program your EV3 Brick. Learn more about Visual Studio Code.
1. Download and install Visual Studio Code.
2. Download and unzip alexa-gadgets-mindstorms.zip.
3. Open Visual Studio Code, and select File > New Window from the top menu.
4. Select File > Open from the top menu. On a PC, this may be listed as Open Folder.
5. Open the agt-python-software
folder within the alexa-gadgets-mindstorms
folder you downloaded.
6. At the bottom of the screen, you will see a callout for recommended extensions. Click Show Recommendations. If extensions are not recommended, you will need to search manually in the Extensions panel (shown in Step 7 below).
7. Install the ev3dev-browser extension. If you have Python installed on your computer, you can install that extension too. (Don't install it if you don't have Python already installed.)
8. Once the extensions have installed, click on the Explorer iconon the left of VS Code where you’re able to see your project files.
9. Click the arrow next to the EV3DEV DEVICE BROWSER to expand more options.
10. Ensure that your EV3 Brick is turned on and has a connection to your computer (USB or Wi-Fi will work), and that your EV3 Brick has the ability to connect to the internet. You should see an IP address in the upper-left of the EV3 Brick interface.
11. Click "Click here to connect to a device".
12. A box will pop up that lists discovered devices. Select your device, or if you don't see your device, click "I don't see my device...“.
If you selected I don’t see my device... enter the name you want to give your EV3 Brick, and press the Enter key.
If you selected I don’t see my device... enter the IP address of your EV3 Brick as shown in the upper-left of the interface displayed on your EV3 Brick, and press the Enter key.
14. Once the device has connected, you will see a green dot next to your Brick’s name.
15. If you click the arrow next to the green dot, you will see information about your EV3 Brick, including battery level and files. When you hover over the EV3DEV DEVICE BROWSER title bar, you will see buttons for Refresh and Send workspace to device.
16. Copy the agt-python-software files over to your EV3 Brick by clicking the Send workspace to device button. In the bottom-right of VS Code, you will see the status of the files being copied.
17. Once complete you should see the agt-python-software folder show up in the EV3DEV DEVICE BROWSER.
Once your EV3 Brick is connected, and you’ve copied your workspace over to your EV3 Brick, you’re ready to move on!