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 and Python

In this class, we will be creating circuits using an Arduino. 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 Collaboratory Jupyter notebook compiler. Consult the pre-course setup for instructions on how to run the Jupyter notebooks. 

You do not have to submit anything.​

Lab Instructions 1A - Introduction to Python and Arduino

  • Reference slides 1A

Lab Instructions 1B - Introduction to Circuit components and code

  • Reference slides 1B​​​

Post-lab Week 1

  • Slides

Pre-lab Week 2

  • Slides

Lab Instructions 1C - Arrays and Plots in Python

  • Slides

Lab Instructions 1D - Speed of sound

In the following lab, we will be using our Arduino kit ultrasonic sensor, the HC-SR04. Before the lab, take out the sensor and examine it closely. Additionally, unwrap the "Prototype Expansion Board" as we will be using this in the following lab.
  • Slides

Post-lab Week 2

  • Slides

Pre-lab Week 3

  • Slides

Lab Instructions 1E - Reaction Time to Light and Sound

  • Slides

Post-lab Week 3

  • Slides

Pre-lab Week 4

  • Slides

Lab Instructions 1F - Reaction Times for Colors

  • Slides

Unit 1 Report

  • Unit 1 Report instructions 
  • ​Unit 1 Report team participation
Other useful material
  • Tips for better lab reports
  • Example scientific report

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.