MANE 3351 - Manufacturing Engineering Analysis
Laboratory One Assignment
Assigned: September 10, 2025
Due: September 17, 2024 before 9:30 AM
Utilize Raspberry PI General Purpose Input/Output to control blinking an LED.
Equipment Needed
The following items are required to complete the first laboratory assignment and will be provided during laboratory session 3.
- Raspberry Pi (already issued)
- Quart Ziplock bag to store materials
- 1 breadboard
- 1 LED
- 4 female-to-male (fm or mf) jumper cables
- 1 male-to male (mm) jumper cable
- 1 miniature switch
- 1 220Ω resistor
- 1 10KΩ resistor
You may want to take a few extra jumper cables of each type. Future labs will also have equipment distributions.
Assignment
Step One
Construct the circuit shown below on a breadboard and connect to Raspberry Pi as shown. Note this information is found on page 10 of the CanaKit Raspberry Pi 4 Quick-start Guide that will be in some of your Raspberry Pi 4 boxes.

Step Two
Create a subdirectory on your Raspberry Pi for Lab One.
Step Three
Open the Thonny Python IDE on the Raspberry Pi and enter the following code. When the program is entered, save the file with a .py file name.
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(25,GPIO.IN)
while True:
if GPIO.input(25):
GPIO.output(18, False)
else:
GPIO.output(18, True)
Step Four
At the top of the file containing your Python code, add the following lines of documentation and save the file again.
# Your Name
# Class name and term
# Assignment
Step Five
Save and run the Python program. Hopefully, there will be no errors in the circuit and code and it will run immediately. Debug the schematic and code until everything works.
Step Six
Meet with Dr. Timmer in his office before the deadline (September 17, 2025 9:30 AM) and demonstrate your working laboratory one project.

