To get the pump to work properly, a supply of around 5V to 6V is required. The purpose of the pump is to bring fresh water into the anodic chamber before taking voltage reading, it need not be continuously on. Also, to allow flexibility in controlling the pump flowrate, the PWM pin will also be used. To drive the pump this way, the L-298 H-bridge is used.
Click Here to download the the Arduino Sketch file for the pump test run.For voltage measurement, the ADC pin (PC1) is used. The bluetooth module HC-04 is connected to the Tx and RX pins on the Atmega chip (Pin 1 and Pin 0). For the Android handphone App, the MIT App Inventor is used.
MIT App Inventor is an intuitive, visual programming environment that allows everyone to build fully functional apps for smartphones and tablets. It is started by a small team of CSAIL staff and students, led by Professor Hal Abelson and today there are more than 8.2 million registered users from 195 countries. Till date more than 34 million Apps have been created with App Inventor.
I referred to the following websites to develop my App below:
Roboindia.com site 1MIT App Inventor is web-based and is easy to use with many built-in programming blocks. These built-in blocks are available for a wide range of components.
To arrange the PCB as well as the breakout boards, a fixture is designed using Fusion 360 and 3D printed.
The MFC is designed to sample every 10 minutes. Prior to reading and transmitting the voltage to the smartphone, the water pump will be on for 8 seconds to bring fresh solution to the anodic chamber. For the demostration video, the Sketch program is modified as follows:
Click Here to download the modified Sketch file used for the testing