Section 3 - February 20, 2025 - March 28, 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 video we learn how to use an electromechanical relay by building Activity 1.
 
Reminder: Do not connect the 9 volt battery to the pushbutton as shown in the schematic at the beginning of this video. The handout shows the proper connections.
 
Homework: Build Activity 1 and have it ready for the next class.

 

 
In this class, we take a break from coding to discuss some hardware troubleshooting methods, which are useful when building circuits on breadboards. We then learn more about relays and how to work with boolean variables.

 

 
In this class, we discuss the scripts used with the relay activity and learn more about working with boolean variables. We then introduce DC motors.
Homework: Work on challenge 1.
 
In this class, we review the solution for challenge 1 and then build Activity 2, which demonstrates how to control the speed of a DC motor.

 

 
In this class, we build Activity 3 and learn more about servomotors.

 

 
In this class, we learn more about coding syntax and servos by typing in the servo script from Activity 3.
 
Homework:
 
Part 1: Pick an Activity from Section 1, build the circuit, and manually type in the script from the Github example. Type in the script without comments and then add the comments yourself...while checking against the example in Github.
 
Part 2: Add comments to the servo script we entered during class.

 

 
In this class, we build Activity 4 and learn how to use a H-bridge integrated circuit.
 
Homework: Draw your own schematic for Activity 4.

 

 
In this class, we learn more about debouncing buttons and we dig into h-bridge integrated circuits. We then start typing in the script to control the speed and direction of a motor.

 

 
In this session we finish our script for motor speed and direction. We then learn about variable scope and cover some troubleshooting concepts.
 
Homework: Add comments to our new copy of the motor speed and duration script.

 

 
In this class, we built Activity 5 and learn how to use a bipolar stepper motors. We also learn how stepper motors are able to move in small increments. 

 

 
In this class, we conduct a short review of the stepper motor script and then begin the Section 3 Review Quiz.

 

 
In this class, we conclude the Section 3 Review Quiz.

 

[/am4show]