Section 1 - October 10, 2024 - November 14, 2024

[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 discuss how to find resources, and we review safety guidelines. We then review how to install the program Thonny and how to configure it to communicate with your Raspberry Pi RP2040.

Homework for today is to ensure Thonny is communicating with your RP2040 as shown in the video.

 

This class includes a discussion on the concepts of digital, binary, and counting methods. We also complete Activities 2, 3 & 4; copying a script, blinking the onboard LED, and changing the blink rate.

Homework for today is to reload the script from a blank screen in Thonny and to try different blink rates Reminder: Never completely remove the sleep statement from your script.

 
In this class, we learn how to use breadboards and jumpers and we blink an external LED. 
 
Homework for today is Activity 6: Type in a sketch and add comments.

 

 

In this class, we cover some computer science terms regarding coding. We then discuss the assignment of Challenge 1, with a goal of blinking three LEDs one at a time in sequence.

Homework for today is Challenge 1.

 
In this class, we review how to complete the code for Challenge 1. We then review the concepts of indentation, modules, and libraries.

Homework: Activity 7

 

 
In this class, we build Activity 8 - Button and LED. We then learn about pull up and pull down resistors and the Pin class.
 
Homework: Rebuild Activity 8

 

 
In this session, we learn about the programming concept of class and how it relates to modules and libraries. We then build Activity 9 to read an analog input.
 
Homework: Have Activity 9 built and ready for the next session.

 

 
In this session we learn more about analog inputs and how to use them to read voltage. We also discuss the coding concepts of objects and constructors.
 
Homework: Build Activity 11
 
In this session, we review Activity 11. We then begin a discussion on variable types and demonstrate how to use interactive mode in the Thonny shell.
 
Optional Homework: Activity 12

 

 
In this session, we build Activity 12 and introduce Pulse Width Modulation (PWM).

 

 
In this session, we wrap up a discussion on PWM and then complete a review quiz on Section 1.

 

 

[/am4show]