Académique Documents
Professionnel Documents
Culture Documents
EXPERIMENT NO.9
TITLE: FLEX SENSOR
DISCUSSION
LEARNING OBJECTIVES
Abando, Danielle
Audit of Materials 100 % 100
1
Cavida, Denmark
Noah Gather of Data 100% 100
3
Cortez, Vanessa
Troubleshooting 100 % 100
4
Magsombol. Juan
Federico Assembly of the
100 % 100
5 Circuit
Resistor
Breadboa
rd
Flex
Sensor
Schematic
SAFETY PROCEDURES
1. Audit and make sure that all materials and components are
complete and is properly working.
5. Apply and write the required codes of the project.
6. Compile, Debug and upload the codes and command to the
Arduino.
7. Test the project.
8. Troubleshoot if problems are encountered.
9. Gather the data.
ARDUINO PROGRAM
const int FLEX_PIN = A0;
void setup()
{
Serial.begin(9600);
pinMode(FLEX_PIN, INPUT);
}
void loop()
{
int flexADC = analogRead(FLEX_PIN);
float flexV = flexADC * VCC / 1023.0;
float flexR = R_DIV * (VCC / flexV - 1.0);
Serial.println("Resistance: " + String(flexR) + " ohms");
delay(500);
}
Objects Distance
Bending Angle
(Serial Monitor)
0 37 300.00
15 46 083.33
30 54 866,67
45 63 650.00
60 72 433.33
Recommendation
Check all the materials if it is complete and properly
working. Also make sure that connection is correct.
Conclusion
Answers to questions:
REFERENCE