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

Unit 1 - Training Labs

Introduction to Python and ESP 32

Unit 1 - Introduction to Python and ESP32

The purpose of this unit is to introduce you to the basics of creating circuits with an ESP32 microcontroller and the basics of programming Python.

Pre-Lab Week 1 - ESP 32 Check

Before the first class, please purchase an ESP 32 and perform the Pre-course Setup for ESP 32. 

​
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 Google Colab 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 Python and ESP 32


  • Reference slides 1A

Lab Instructions 1B - Arrays and Plots in Python 

​
  • Reference slides 1B

Python lecture videos and practice notebooks

The tutorial notebooks 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 1B). 
  • Notebooks can be found in your JupyterHub Repository:
    • Physics_4AL_2023-24/Practice Notebooks​
  • Video lectures guiding you through the notebooks can be found:
    • Video Lecture - Arrays​
    • Video Lecture - Basic Plotting
    • Video Lecture - Polynomial Fitting
  • Sample dataset

Post-Lab Week 1

  • Post-Lab Assignment:
    • Physics_4AL_2023-24/Assignments/Post-Labs/Post-Lab-Week-1.ipynb​​
    • ​​Due at 11:59pm on Sunday week 1

Pre-Lab Week 2

There will be no portion of the "Tutorial notebooks" turned in, but the concepts and syntax are important to understand. The tutorial notebooks are supplemented by short "Video Lectures". These are optional to those who are proficient with the listed concepts in Python.  ​
  • Pre-Lab Assignment:
    • Go over the following slides​
    • Physics_4AL_2023-24/Assignments/Pre-Labs/Pre-Lab-Week-2.ipynb
    • ​Due before Lab 1C

Lab Instructions 1C - Introduction to ESP 32 Code and Evaluating Speed of Sound

  • Reference slide 1C​​

Lab Instructions 1D - Ultrasound sensor with Bluetooth

  • Reference slides 1D​

Post-Lab Week 2

  • Post-Lab Assignment:
    • Physics_4AL_2023-24/Assignments/Post-Labs/Post-Lab-Week-2.ipynb​​
    • ​​Due at 11:59pm on Sunday week 2​

Pre-Lab Week 3

  • ​​Pre-Lab Assignment:​
    • Physics_4AL_2023-24/Assignments/Pre-Labs/Pre-Lab-Week-3.ipynb
    • ​Due before Lab 2A
Dec. 18, 2024 by Travis Nichols
  • HOME
    • Introduction
    • Pre-course Setup
  • PHYSICS 4AL
    • 4AL Grading Policy
    • Lab Sections/ Office Hours
    • Weekly Schedule
    • Google Drive
    • Report Writing
    • Unit 1 - Training
    • Unit 2 - Motion
    • Unit 3 - Oscillations
    • Unit 4 - Project
  • PHYSICS 4BL
    • Grading Policy
    • Lab Sections/ Office Hours
    • Google Drive
    • Report Writing
    • Weekly Schedule
    • Unit 1 - Training
    • Unit 2 - Sound
    • Unit 3 - Circuits
    • Unit 4 - Optics
    • Unit 4.5 Magnetism
    • Unit 5 - Project
  • RESOURCES
    • Physics
    • Python
    • Arduino
    • ESP32
    • Electronics
    • Software Download
  • EXTERNAL LINKS
    • GradeScope
    • CCLE
    • MyUCLA
    • CampusWire
    • UCLA Calendars
    • UCLA Physics Dept.