This resource will help you in setting up your own computer for use with our lab equipment.
General Instructions
-
Set up IDE and module:
-
Install Thonny IDE
-
Follow Lab 1 procedure instructions to install engi1020 module in Thonny
-
From Thonny → go to tools → open system shell → type
pip install engi1020
-
-
-
Connect Ardiuno to your computer via the USB cable provided with your kit
-
Run following statements in Thonny shell and observe the output
-
The module import statement:
from engi1020.arduino.api import *
-
Test one of the sensors:
analog_read(0)
-
If you got the rotary readings, you are done! If not, check out the debugging tips below
Debugging Tips
-
Check Device Manager to see if Arduino properly recognized
-
Open Device Manager
-
Check to see where CP2102N is located within your Device Manager listing
-
If it is listed under other devices as below, you need to install the Arduino driver
-
Download the archive file containing the Arduino driver here
-
Unarchive the file (Extract all files)
-
Follow these instructions for installing the driver
-
Restart Thonny and try again!
-
-
Select correct device
-
Your computer may not be able to distinguish which device is the Arduino and ask for advice/input via the Python console
-
Select the appropriate one (which is 2 in the image below)
-