Physics 4
  • HOME
    • Introduction
    • Pre-course Setup
  • PHYSICS 4AL
    • 4AL Grading Policy
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • 4AL Lab Sections /Office hours
    • Unit 1 - Training (Winter 2023)
    • Unit 2 - Motion (Winter 2023)
    • Unit 3 - Oscillations (Winter 2023)
    • Unit 4 - Project (Winter 2023)
  • PHYSICS 4BL
    • Grading Policy
    • Lab Sections/ Office Hours
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • Unit 1 - Training
    • Unit 2 - Sound
    • Unit 3 - Circuits
    • Unit 4 - Optics
    • Unit 5 - Project
    • Pre-Lab Assignments
  • RESOURCES
    • Physics
    • Python
    • Arduino
    • Electronics
    • Software Download
  • EXTERNAL LINKS
    • GradeScope
    • CCLE
    • MyUCLA
    • CampusWire
    • UCLA Calendars
    • UCLA Physics Dept.
  • HOME
    • Introduction
    • Pre-course Setup
  • PHYSICS 4AL
    • 4AL Grading Policy
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • 4AL Lab Sections /Office hours
    • Unit 1 - Training (Winter 2023)
    • Unit 2 - Motion (Winter 2023)
    • Unit 3 - Oscillations (Winter 2023)
    • Unit 4 - Project (Winter 2023)
  • PHYSICS 4BL
    • Grading Policy
    • Lab Sections/ Office Hours
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • Unit 1 - Training
    • Unit 2 - Sound
    • Unit 3 - Circuits
    • Unit 4 - Optics
    • Unit 5 - Project
    • Pre-Lab Assignments
  • RESOURCES
    • Physics
    • Python
    • Arduino
    • Electronics
    • Software Download
  • EXTERNAL LINKS
    • GradeScope
    • CCLE
    • MyUCLA
    • CampusWire
    • UCLA Calendars
    • UCLA Physics Dept.

Unit 1 - Training Labs

Introduction to Python and Arduino

Unit 1 - Introduction to Python and Arduino 

The purpose of this unit is to introduce you to the basics of creating circuits with an Arduino micro-controller and the basics of programming Python.

Pre-Lab Week 1 - Arduino Check

  • Before the first class, please purchase an Arduino and perform the Pre-course Setup. 

    ​
    All analysis in this class will be done using the Python programming language. To keep the data and code centralized, we will be storing the code on Google Drive and compiling it with the Colaboratory Jupyter notebook compiler.

    Consult the 
    pre-course setup for instructions on how to run the Jupyter notebooks. Go over the "Basic Programming" video lectures and the supplemented Tutorial notebook. There is no submission required for the first pre-lab.
  • Tutorial notebook - Basic Programming
  • Video Lecture - Basic Programming
  • Video Lecture - Basic Programming continued

Lab Instructions 1A - Introduction to arrays and plotting in Python

  • Reference slides 1A

Python lecture videos and practice notebooks

The tutorial notebooks below go over important concepts in Python that you will be using throughout the quarter. These notebooks are supplemented by short video lectures. These are optional to those who are proficient with the listed concepts in Python. There will be no portion of the "Tutorial notebooks" turned in, but the concepts and syntax are important to understand (you have gone over most of these concepts in Lab 1A). ​
  • Tutorial notebook - Arrays
  • Video Lecture - Arrays
  • Tutorial notebook - Basic Plotting​
  • Video Lecture - Basic Plotting
  • Video Lecture - Polynomial Fitting
  • Sample dataset
  • Beginner's Python Pre-lab Notebook 

Lab Instructions 1B - Introduction to Arduino and speed of sound

  • Reference Slides 1B

Post-lab Week 1​

  • Slides
edited Jan 19, 2023 by Javier Carmona
  • HOME
    • Introduction
    • Pre-course Setup
  • PHYSICS 4AL
    • 4AL Grading Policy
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • 4AL Lab Sections /Office hours
    • Unit 1 - Training (Winter 2023)
    • Unit 2 - Motion (Winter 2023)
    • Unit 3 - Oscillations (Winter 2023)
    • Unit 4 - Project (Winter 2023)
  • PHYSICS 4BL
    • Grading Policy
    • Lab Sections/ Office Hours
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • Unit 1 - Training
    • Unit 2 - Sound
    • Unit 3 - Circuits
    • Unit 4 - Optics
    • Unit 5 - Project
    • Pre-Lab Assignments
  • RESOURCES
    • Physics
    • Python
    • Arduino
    • Electronics
    • Software Download
  • EXTERNAL LINKS
    • GradeScope
    • CCLE
    • MyUCLA
    • CampusWire
    • UCLA Calendars
    • UCLA Physics Dept.