In this class, we will be using an Arduino microcontroller to collect data and control various systems (running motors, generating electrical currents, playing sounds). An Arduino can be thought of as a mini-computer which we can run programs on. Instead of running an application on a screen, the Arduino will generate electrical currents that can run speakers, light up LEDs, and send data from various sensors back to the computer for analysis. We will be carrying out this analysis using the programming language Python. Programming is now a requirement in all STEM fields, even outside of computer science, as it is a powerful tool in any kind of analysis.
As such, for every class, you will need to bring your own laptop computer and you will need to carry out the following tasks before the first class. Here, we will make sure that your laptops are compatible with the Arduino and with our Python system. Even if you have your own Arduino and Python distribution, please read the following instructions carefully as we will be using a specific Arduino and Python code will not be compiled locally.
As such, for every class, you will need to bring your own laptop computer and you will need to carry out the following tasks before the first class. Here, we will make sure that your laptops are compatible with the Arduino and with our Python system. Even if you have your own Arduino and Python distribution, please read the following instructions carefully as we will be using a specific Arduino and Python code will not be compiled locally.
Arduino Setup
You will need to purchase an Arduino starter kit. This kit includes extra elements that will be used in the class. If you already have your own Arduino, make sure it is an Arduino Uno, and that you have a full set of all of the elements that are in the Arduino kit (speakers, breadboard extender, etc.), as our wiring diagrams will be written for the Arduino Uno and we will be using various elements included in the Arduino kit.
You can buy the Arduino Kit from the UCLA student store, or the following links
You can buy the Arduino Kit from the UCLA student store, or the following links
- ELEGOO UNO Project Super Starter Kit at Amazon
- ELEGOO UNO Project Super Starter Kit at ELEGOO Homepage
Python Set-up
In this class, we will not be running Python on your own computer. Instead we will be running code on the Google Drive servers. Your code and data will be on a Google Drive. This helps us ensure against cheating and will allow us to easily access your code if you need assistance. To make sure that you can access the system, please follow the following tutorial to run a Google Drive Jupyter notebook.
Jupyter Tutorial
During our first class, you will be given access to the class-wide Google Drive.
Jupyter Tutorial
During our first class, you will be given access to the class-wide Google Drive.