Section 2 - November 15, 2024 - February 14, 2025
[am4show have='p8;p9;p11;p38;p92;p162;' guest_error='Guest error message' user_error='User error message' ]Scripts for this class are available here: https://github.com/FutureVision-Research/coding_micropython
In this class, we introduce and work with an OLED display.
We learn more about OLED displays and I2C communication during this class.
Homework:
- Try the "One Pixel" activity discussed during class by rewatching the video.
- Build Activity 3 - LED and Photocell
In this class, we build Activity 3 with an LED and Photocell. We then start our discussion on sensors.
Homework: Build Activity 4
In this class, we build Activity 4 and learn more about the TMP36 temperature sensor. We then learn more about variables and the function type().
Homework: Use the TMP36 to display temperature onto the OLED display. (Explanation is provided during Session 15).
In this class, we review the use of a TMP36 sensor with an OLED display.
Homework: Build Activity 5
In this class, we learn more about serial communication. We then learn about user input and output by using scripts to create Madlib style stories.
Homework: Use the break to review past activities or to catch up on sessions you haven't had a chance to complete.
Note: There was no class on Friday, December 13, 2024.
In this class, we build the LED Sequencer circuit and discuss the script. We also begin our conversation on "for loops".
Homework: Rebuild Activity 6 and draw the schematic on your own piece of paper. (Reminder, you don't need to label the unused connections on the Pico.)
In this class, we learn more about "for loops" and then build the light meter activity.
In this class, we review the light meter activity and then discuss the computer science concepts of control flow and exception handling.
In this class, we build Activity 8 and use the Hall effect sensor to detect a magnetic field.
Homework: Build Activity 9. Remember to connect the positive connection from the 9 volt battery directly into the motion sensor, and not into the Pico RP2040!
In this class, we learn about conditionals and Boolean expressions by using a "guess the number" game.
Challenge due next week:
- Build a circuit connecting a bi-polar LED and 150Ω resistor via two GPIO pins.
- Add code so that the LED starts off Red, but turns green when the user guesses the correct number.
- The LED should reset to red if the user wants to play again.
- The LED should turn off if the user wants to stop playing
In this class, we build Activity 10 - Using the Ultrasonic Distance Sensor.
In this class, we discuss the "Guess the Number" LED challenge. We then learn more about voltage regulators and the ultrasonic sensor.
In this class, we build a circuit to play tones over a speaker using PWM. We also learn about the Python data type called "lists".
Reminder, for Activity 11, please use a 6V battery pack instead of a 9V battery.
In this class we introduce functions and then start going through the Section 2 review quiz.
In this class, we finish the Section 2 review quiz. We then cover an introduction to electromechanical devices.
[/am4show]