pH Level Monitor

The pH Level Monitor project uses 4D Systems' gen4-uLCD-50DT to display the pH level of a certain substance.

Ā 

pH Level Monitor

Things used in this project

Ā 

Hardware components

HARDWARE LIST
1 DFRobot Analog pH Sensor Kit
1 Jumper wires (generic)
1 uSD Card
1 uUSB cable
1 4D Systems gen4-uLCD-50DT
1 4D Systems gen4-PA

Software apps and online services

Ā 

4D Systems Workshop4 IDE

Story

Ā 

The pH Level Monitor project uses 4D Systems' gen4-uLCD-50DT to display the pH level of a certain substance. It can also be used to monitor the acidity of your aquarium or pond.

In this project, the pH level can be automatically or manually read when you press the buttons provided on the graphical user interface of the gen4 HMI Display. It is programmed using the Visi Environment of Workshop 4 IDE.

Ā 

Ā 

Ā 

How it Works

Ā 

Ā 

Ā 

Ā 

Components

Ā 

gen4-uLCD-50DCT-CLBgen4-PA and FFC CableAnalog pH Sensor Kit -pH Electrode -pH sensor circuit board -analog cablemicro USB CableConnecting Wires and 5V power Supply

Ā 

Ā 

Ā 

Implementation

Ā 

Step 1: Build

Ā 

Build the circuit as shown in the diagram.Ā Connect the gen4-PA to gen4-uLCD-50DCT-CLB or any gen4-HMI Display module with 480x800 px resolution.Ā 

Note: The graphics used in this project has 480x800px, but you can still costumize them into smaller displays.

Ā 

Ā 

Ā 

Step 2: Program

Ā 

Download the code here.Ā Open the Visi project using Workshop 4. This project uses the Visi Environment.Ā You can modify the properties of each widgets and buttons.Ā 

Ā 

PA1 is set as analog input pin.Ā 

Ā 

You can also check and modify some part of the code according to your preferences. Each sections and functions has comments for your referenceĀ 

Displaying of pH Level and acidity indication:

Ā 

Ā 

Analog voltage reading and conversionTouch Function of the pH Level Monitor

Ā 

Ā 

Ā 

Step 3: Compile

Ā 

Click on the ā€œCompileā€ button.Ā 

Note: This step could be skipped. However, compiling is essential for debugging purposes.

Ā 

Ā 

Ā 

Step 4: Comms Port

Ā 

Connect the display to the PC. Make sure that you are connected to the right port. Red Button indicates that the device is not connected, Blue Button indicates that the device is connected to the right port.

Ā 

Ā 

Ā 

Step 5: Compile and Upload

Ā 

Go back to ā€œHomeā€ tab. This time, click on the ā€œComp’nLoadā€ button.Ā Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.

Ā 

Ā 

Ā 

Step6: Mount uSD Card

Ā 

When the uSD card is not yet inserted, this message will appear on your gen4 Display: "Drive not mounted"Ā After inserting your uSD card this GUI should appear on the gen4 Display:

Ā 

Ā 

Ā 

Video

Ā 

Schematics

Ā 

Schematic Diagram

Ā 


Ā 

The article was first published in hackster, December 8, Ā 2017

cr: https://www.hackster.io/4DMakers/ph-level-monitor-e19d54

author: 4D Makers

License
All Rights
Reserved
licensBg
0