{"product_id":"ph-sensor-module-v1-1-ph-probe-for-avr-51-ph-shield-med-msp430-test-code-sensor","title":"PH Sensor Module V1.1 + PH Probe For AVR 51 PH Shield med MSP430 Test Code Sensor","description":"\u003cspan style=\"font-size:14px;\"\u003e\u003cspan style=\"font-size:16px;\"\u003e\u003cstrong\u003eSpecification:\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003eModule Power : 5.00V\u003cbr\u003eModule Size : 43 x 32mm\u003cbr\u003eMeasuring Range :0 - 14PH\u003cbr\u003eMeasuring Temperature: 0 - 60 °C\u003cbr\u003eAccuracy : ± 0.1pH (25 °C)\u003cbr\u003eResponse Time : ≤ 1min\u003cbr\u003epH Sensor with BNC Connector\u003cbr\u003epH2.0 Interface ( 3 foot patch )\u003cbr\u003eGain Adjustment Potentiometer\u003cbr\u003ePower Indicator LED\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"font-size:16px;\"\u003e\u003cstrong\u003ePackage includes:\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e1 x PH Sensor Module\u003cbr\u003e1 x Probe\u003cbr\u003e1 x Cable\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003eArduino DEMO Code:\u003cbr\u003e \u003cbr\u003e\/*\u003cbr\u003e# This sample codes is for testing the pH meter V1.0.\u003cbr\u003e# Editor : YouYou\u003cbr\u003e# Date : 2013.10.21\u003cbr\u003e# Ver : 0.1\u003cbr\u003e# Product: pH meter\u003cbr\u003e# SKU : SEN0161\u003cbr\u003e*\/\u003cbr\u003e \u003cbr\u003e#define SensorPin 0 \/\/pH meter Analog output to Arduino Analog Input 0\u003cbr\u003e#define Offset 0.00 \/\/deviation compensate\u003cbr\u003eunsigned long int avgValue; \/\/Store the average value of the sensor feedback\u003cbr\u003evoid setup()\u003cbr\u003e{\u003cbr\u003epinMode(13,OUTPUT);\u003cbr\u003eSerial.begin(9600);\u003cbr\u003eSerial.println(\"Ready\"); \/\/Test the serial monitor\u003cbr\u003e}\u003cbr\u003evoid loop()\u003cbr\u003e{\u003cbr\u003eint buf[10]; \/\/buffer for read analog\u003cbr\u003efor(int i=0;i\u0026lt;10;i++) \/\/Get 10 sample value from the sensor for smooth the value\u003cbr\u003e{\u003cbr\u003ebuf[i]=analogRead(SensorPin);\u003cbr\u003edelay(10);\u003cbr\u003e}\u003cbr\u003efor(int i=0;i\u0026lt;9;i++) \/\/sort the analog from small to large\u003cbr\u003e{\u003cbr\u003efor(int j=i+1;j\u0026lt;10;j++)\u003cbr\u003e{\u003cbr\u003eif(buf[i]\u0026gt;buf[j])\u003cbr\u003e{\u003cbr\u003eint temp=buf[i];\u003cbr\u003ebuf[i]=buf[j];\u003cbr\u003ebuf[j]=temp;\u003cbr\u003e}\u003cbr\u003e}\u003cbr\u003e}\u003cbr\u003eavgValue=0;\u003cbr\u003efor(int i=2;i\u0026lt;8;i++) \/\/take the average value of 6 center sample\u003cbr\u003eavgValue+=buf[i];\u003cbr\u003efloat phValue=(float)avgValue*5.0\/1024\/6; \/\/convert the analog into millivolt\u003cbr\u003ephValue=3.5*phValue+Offset; \/\/convert the millivolt into pH value\u003cbr\u003eSerial.print(\" pH:\");\u003cbr\u003eSerial.print(phValue,2);\u003cbr\u003eSerial.println(\" \");\u003cbr\u003edigitalWrite(13, HIGH);\u003cbr\u003edelay(800);\u003cbr\u003edigitalWrite(13, LOW);\u003cbr\u003e}\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/1A\/37\/142fb891-0056-4bea-9b03-5dda43c9e5a5.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/C1\/31\/31a0a6f3-60dc-4cf1-a203-3f5d44d70765.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/4B\/38\/f07f5fb8-607d-407f-a343-ba16c2d45e68.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/7C\/59\/c0f47587-9304-4a78-a0ab-748d406cd30e.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/7D\/48\/f3342fcc-3a19-4f4a-a59d-1d288703fd09.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/C8\/DF\/fa3ecc42-7e69-4822-b215-8e833d9c9010.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/82\/04\/e5b24487-d4ae-48dd-b017-611d45e03bd8.JPG\"\u003e\u003cbr\u003e\u003cbr\u003e\u003cimg alt=\"\" src=\"https:\/\/img.staticbg.com\/images\/oaupload\/banggood\/images\/C2\/B2\/1c60d98f-5578-4acf-ade6-4deba8edf828.JPG\"\u003e","brand":"Shopify","offers":[{"title":"Default Title","offer_id":14594225438764,"sku":"1460488","price":1399.36,"currency_code":"ZAR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/2787\/9162\/products\/4af258d6-fd3b-4855-b4a5-0414e7c2f894_a7e20ecd-ae74-4f00-a589-2b5167dc070c.jpg?v=1582109535","url":"https:\/\/electronic-pro-south-africa.myshopify.com\/products\/ph-sensor-module-v1-1-ph-probe-for-avr-51-ph-shield-med-msp430-test-code-sensor","provider":"Electronic Pro ","version":"1.0","type":"link"}