Question

please help me with the Question below. please explain to me how arduino connections with the...

please help me with the Question below.

please explain to me how arduino connections with the breadboard can be used to measure a few basic parameters of water quality?
i paragrah is okay for me in your answer.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hardware:-

1.Arduino MKR1000 * 1

2.4.7k ohm resistor * 2

3.Dupont Line * 3

4. 2P 2.54mm connector Line * 1

5. 2.54mm gold plated pin 2P * 2

Connections:

Code:-
void loop() {
 // start
 digitalWrite(ledPin, HIGH);
 //port LL
 digitalWrite(port1, LOW);
 digitalWrite(port2, LOW);
 sensorValue1 = analogRead(sensorPin);
 delay(delaytime);
 //port LH
 digitalWrite(port1, LOW);
 digitalWrite(port2, HIGH);
 sensorValue2 = analogRead(sensorPin);
 delay(delaytime);
 digitalWrite(ledPin, LOW);
 //port HH
 digitalWrite(port1, HIGH);
 digitalWrite(port2, HIGH);
 sensorValue3 = analogRead(sensorPin);
 delay(delaytime);
 //port HL
 digitalWrite(port1, HIGH);
 digitalWrite(port2, LOW);
 sensorValue4 = analogRead(sensorPin);   
 delay(delaytime);
 Serial.print(sensorValue1);
 Serial.print(",");
 Serial.print(sensorValue2);
 Serial.print(",");
 Serial.print(sensorValue3);
 Serial.print(",");
 Serial.print(sensorValue4);
 Serial.println();
}

Result:-

1. Gold plated pin is out of water

2. Pin in clean water

3. Pin in non-pure water

Analysis

When pin in clean water, data is

"159, 434, 874, 601"

"163, 433, 873, 600"

"165, 436, 871, 598"

When pin in non-pure water data is

"159, 462, 876, 566"

"159, 465, 878, 564"

"158, 463, 878, 565"

Here the 1st and 3rd are close at each sample, 2nd and 4th have 25~30 count gap.

Add a comment
Know the answer?
Add Answer to:
please help me with the Question below. please explain to me how arduino connections with the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT