Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
O P(https://www.pantechsolutions.net/)
BRAIN COM Pquality
/ Water U Tmeasurement
E R I using
N TPHE RF
sensor withA C EPi (https://www.pantechsolutions.net/water-
Raspberry
Click Here (https://www.pantechsolutions.net/brain-computer-interface)
quality-measurement-using-ph-sensor-with-raspberry-pi)
PROJECTS 2019
Water quality measurement using
Online Sales: 9840974406 | 9003113840 Academic: 9840974408 / 07
PH sensor with Raspberry Pi
(https://www.pantechsolutions.net
udGVjaHNvbHV0aW9ucy5uZXQvd2F0ZXItcXVhbGl0eS1tZWFzdXJlbWVudC11c2luZy1waC1zZW5zb3Itd2l0aC1yYXNwYmVycnktcGk,/)
act-us/)
quality-measurement-using-ph-
sensor-with-raspberry-pi)
(https://www.pantechsolutions.net/)
Write a review
Sign up to get notified when this product is back in stock
(https://www.pantechsolutions.net/productalert/add/stock/product_id/25
0 item(s) - 0.00
(https://www.pantechsolutions.n
(https://www.pantechsolutions.net/wishlist/index/add/prod
(https://www.pantechsolutions.net/catalog/product_
(https://www.pantechsolutions.net/sendfriend
(https://www.pantechsolutions.net/media/catalog/product/cache/1/image/600x600/9df78eab33525d08d6e5fb8d27136e95/images/catalog/
ABSTRACT
Raspberry Pi based water quality measurement system uses a PH sensor for
obtaining the water quality parameters. The single sensor which has the capability to
provide you the different parameter such as PH level, water level, LDR for turbidity
measurement and Temperature of the water. So by interfacing this sensor with
Raspberry Pi serially to obtain every value. Each value gets decoded and split up
using python programming. Water quality can be easily predicted using PH values.
But with furthermore water parameters you can able to know the water quality by
using this system.
HARDWARE REQUIRED
Raspberry Pi
SD card
Power supply
VGA to HDMI converter (Optional)
MCP3008 (ADC IC)
PH sensor
T O P B R A I N C O M Click
P UHere
T E(https://www.pantechsolutions.net/brain-computer-interface)
R INTERFACE
SOFTWARE REQUIRED
PROJECTS 2019
Raspbian Stretch OS
SD card
Online Sales: Formatter
9840974406 | 9003113840 Academic: 9840974408 / 07
Win32DiskImager (or) Etcher
PYTHON LIBRARIES USED
udGVjaHNvbHV0aW9ucy5uZXQvd2F0ZXItcXVhbGl0eS1tZWFzdXJlbWVudC11c2luZy1waC1zZW5zb3Itd2l0aC1yYXNwYmVycnktcGk,/)
act-us/) Time library (For Time delay)
Serial library for enabling serial communication to obtain values from PH sensor
(https://www.pantechsolutions.net/)
serially.
CODE
import serial
import time
port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=1.0) 0 My Bag
0 item(s) - 0.00
(https://www.pantechsolutions.n
def value():
x = 10
for i in range(x):
rcv = port.readline()
if len(rcv) > 4:
a = True
break
else:
x = x + 1
while a:
value = rcv.split(',')
# print value
ph = value[0]
w = value[1]
l = value[2]
t = value[3]
__, ph = ph.split(':')
__, w = w.split(':')
__, l = l.split(':')
__, t = t.split(':')
ph = float(ph)
w = float(w)
l = float(l)
t = float(t)
a = False
return ph, w, l, t
while True:
print(value())
time.sleep(2)
T O P B R A I N C O M Click
P UHere
T E(https://www.pantechsolutions.net/brain-computer-interface)
R INTERFACE
PROJECTS 2019
Online Sales: 9840974406 | 9003113840 Academic: 9840974408 / 07
Powered by
udGVjaHNvbHV0aW9ucy5uZXQvd2F0ZXItcXVhbGl0eS1tZWFzdXJlbWVudC11c2luZy1waC1zZW5zb3Itd2l0aC1yYXNwYmVycnktcGk,/)
act-us/) (http://my.yotpo.com/landing_page?
redirect=https%3A%2F%2Fwww.yotpo.com%2Fpowered-
by- (https://www.pantechsolutions.net/)
yotpo%2F&utm_campaign=branding_link_reviews_widget_v2&utm_medium=widget&u
WRITE A REVIEW
0 My Bag
More Information
Cancellation Order (https://www.pantechsolutions.net/cancellation-order/)
T O P B R A I N C O M Click
P UHere
T E(https://www.pantechsolutions.net/brain-computer-interface)
R INTERFACE
holidays (https://www.pantechsolutions.net/holidays/)
PROJECTS 2019
Terms for Softwares (https://www.pantechsolutions.net/terms-for-
rohs (https://www.pantechsolutions.net/rohs/)
Dealership (https://www.pantechsolutions.net/dealership/)
udGVjaHNvbHV0aW9ucy5uZXQvd2F0ZXItcXVhbGl0eS1tZWFzdXJlbWVudC11c2luZy1waC1zZW5zb3Itd2l0aC1yYXNwYmVycnktcGk,/)
act-us/) Shipping Policy (https://www.pantechsolutions.net/shipping-policy/)
Company (https://www.pantechsolutions.net/)
Resources
Events (https://www.pantechsolutions.net/events-/)
Contact us (https://www.pantechsolutions.net/contact-us/)