Unit 1 - Training�Lab 1A : Introduction to Python and Arduino
UCLA Physics Department
University of California, Los Angeles
Department of Physics and Astronomy
Physics 4AL
Class Learning
Class Learning Outcomes
UCLA Physics Department
Class Schedule
Detailed schedule: https://www.uclaphysics4labs.org/weekly-schedule.html
UCLA Physics Department
Outline of Lab 1A
UCLA Physics Department
Logistics
UCLA Physics Department
Lab Resources and Office hours
UCLA Physics Department
Online Lab Resources and Format
UCLA Physics Department
Assignments
Detailed information about grading can be found at https://www.uclaphysics4labs.org/4al-grading-policy.html
UCLA Physics Department
Google Drive
UCLA Physics Department
Introduction to Python
UCLA Physics Department
Python
12
Python Notebooks
13
Python Notebooks
14
Google Collaboratory Notebook
Input Code
Output
TA checkpoint 1 - Colab Notebook
15
Numbers
UCLA Physics Department
Variables
UCLA Physics Department
Comments
UCLA Physics Department
Numpy
UCLA Physics Department
TA checkpoint 2 - Colab Notebook continued
Hit +Code to create a new cell.
20
Introduction to Arduino
UCLA Physics Department
Arduino Basics
UCLA Physics Department
Arduino Input/Output
Input/output pins
PWM Pins(~): 3, 5, 6, 9, 10, 11
Digital Pins: 2, 4, 7, 8, 12, 13
USB input/output/power
Battery power
Output power + ground
Analog Input
Connecting an Arduino
UCLA Physics Department
24
Arduino Connection
UCLA Physics Department
Arduino Test
Beginner’s Programming Notebook (for practice only)
27