This Streamlit app enables users to convert electrode potential readings between different reference electrodes, accommodating temperature variations. It supports conversions among several standard reference electrodes including the Standard Hydrogen Electrode (SHE), Saturated Calomel Electrode (SCE), Copper-Copper(II) Sulfate Electrode (CSE), and the Silver-Silver Chloride (Ag/AgCl) electrode in saturated KCl. The app's intuitive interface allows users to input potential values, select reference electrodes, and specify operating temperatures for accurate conversion. A unique feature of this app is its ability to account for thermal effects on electrode potentials, offering both thermal and isothermal conversion options. Additionally, it features a visualization component that plots the reference electrode scales, illustrating the conversion result graphically.
https://reference-electrode-converter.streamlit.app
To run this app locally, ensure you have Python and pip installed on your system. Follow these steps:
- Clone this repository to your local machine.
git clone <repository-url>
- Navigate to the app's directory.
cd electrode-potential-converter
- Create a virtual environment.
python -m venv venv
- Activate the virtual environment.
- On Windows:
venv\Scripts\activate
- On MacOS/Linux:
source venv/bin/activate
- On Windows:
- Install the required dependencies.
pip install -r requirements.txt
- Launch the app.
streamlit run app.py
To use the app, perform the following steps:
- Choose the "Select Temperature Dependence" option to indicate the conversion context—either Thermal or Isothermal.
- Select the original reference electrode from the dropdown menu.
- Input the potential vs. the original reference electrode (in volts).
- Enter the operating temperatures for the original and target electrodes.
- Select the target reference electrode for the conversion.
- Click "Convert Potential" to obtain the converted potential. The visualization of reference electrode scales and the converted potential will be displayed on the graph, illustrating the impact of temperature adjustments.
Your contributions to enhance and improve the app are highly appreciated. To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your enhancements (
git commit -am 'Add some enhancement'
). - Push to the branch (
git push origin feature-branch
). - Submit a Pull Request.
Distributed under the MIT License.