![]() But still the reading fluxuate as much as three points. I am using averaging to mitigate wave action. One reason could be the water being sensed was directly from the ground water source without being mixed with the pool water which could have more particulates increasing conductivity. The water temperature hasn't changed.Ĭan someone explain the reason for the level to drop when water was first added and then rise only to shoot back up after it has finished filling? Eight hours later it is at 702 with no more water being added. ![]() Two hours later it read 690 and then 693 two hours after that. When it shut off the water it was reading 663. After that it went up (relatively) for the next hour as it filled. Two and a half minutes later is read 664 when the level had risen a little. ![]() Last night it was reading 682 when the filler started filling the pool. ![]() The problem is that the sensor reading isn't consistent. I take ten successive readings from the sensor pin and then divide by 10.ĭoes anyone know how to get more precise reading as with a few decimal places? float waterSensorInValue = analogRead(A0) įloat waterSensorInValue2 = analogRead(A0) įloat waterSensorInValue3 = analogRead(A0) įloat waterSensorInValue4 = analogRead(A0) įloat waterSensorInValue5 = analogRead(A0) įloat waterSensorInValue6 = analogRead(A0) įloat waterSensorInValue7 = analogRead(A0) įloat waterSensorInValue8 = analogRead(A0) įloat waterSensorInValue9 = analogRead(A0) įloat waterSensorInValue10 = analogRead(A0) įloat waterSensorInValueA = (waterSensorInValue+waterSensorInValue2+waterSensorInValue3+waterSensorInValue4+waterSensorInValue5+waterSensorInValue6+waterSensorInValue7+waterSensorInValue8+waterSensorInValue9+waterSensorInValue10)/10 I am using an Arduino Pro Mini pin A0 for the input from sensor. I have attached the leads for my schematic to the graphite rods using silver epoxy. I am designing a water level sensor using two 2mm graphite rods about 10cm long. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |