MANE 3351 - Manufacturing Engineering Analysis
Laboratory Three Assignment
Assigned: September 18, 2024
Due: September 25, 2024 (before 2:00 pm)
Utilize Arduino to make measurements using ADC on a light detecting resistor and display results on Serial Monitor.
Equipment Needed
In addition to the materials used in Labs One and Two, you will need the following additional items.
- 1 Light Detecting Resistor (LDR)
Assignment
Step One
Construct the circuit shown below on a breadboard. Do not connect to an Arduino until the program has been uploaded.

Step Two
Open the Arduino IDE on the Raspberry Pi and add your documentation (course name, lab assignment and name) to this sketch.
Step Three
Below you documentation, enter the sketch code.
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bits per second
}
void loop() {
int sensorValue = analogRead(A0); // Read the input on analog pin A0
Serial.println(sensorValue); // Print the value from analog pin A0 to the Serial Monitor
delay(500); // Wait for 500 milliseconds
}
Step Four
Save and run the Sketch. The value printed should be an integer between 0 and 1023. Debug the schematic and code until everything works.
Step Five
Add code to convert the sensorValue to voltage (float) and print the voltage in the Serial Monitor.
Step Six
Meet with Dr. Timmer before the deadline (September 25, 2024 at 2:00 pm) and demonstrate your laboratory three project.