
KiCad Pi Pico
intel00000/EChem_Auto_Potential_Optimization
MasterFlex Pump Controller implemented in Python, utilizing a Raspberry Pi Pico for hardware control and a PC-side GUI for pumps automation and operations.

MasterFlex Pump Controller implemented in Python, utilizing a Raspberry Pi Pico for hardware control and a PC-side GUI for pumps automation and operations.
Potentiostat control is an open-source printed circuit board by intel00000, from the intel00000/EChem_Auto_Potential_Optimization repository on GitHub. It is a 2-layer board of 73 × 46 mm with 13 parts on 62 nets, routed with 95 tracks and 21 vias.
It is built around the L717HDE15PD1CH4F. Its parts include 3 resistors, 2 transistors, 1 IC, 1 connector and 1 switch. It belongs with the RP2040 boards of this library.
This repository contains a Electrochemistry Reactor Controller User Interface implemented in Python, utilizing multiple microcontrollers for hardware control and a PC-side GUI for experimental automation and operations.
See the Release Page for:
Screenshots of the GUI are shown below. The GUI is designed to be user-friendly, allowing users to easily set up and control the pumps, valves, and other components of the electrochemistry reactor.
git clone https://github.com/intel00000/EChem_Auto_Potential_Optimization.git
cd EChem_Auto_Potential_Optimizationpip install -r requirements.txt -Ucd pump_control_gui
python pump_control.pyIt is recommended to use a Python virtual environment for better dependency management, especially when compiling the executable. See https://docs.python.org/3/library/venv.html for more details.
python -m venv .venv.\.venv\Scripts\Activate.ps1Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachinecd pump_control_gui
pip install -r requirements.txtpython pump_control.pyOpen a terminal and navigate to the project directory.
Create a virtual environment:
In bash, run the following commands (assuming using apt)
sudo apt-get install python3-venv
python3 -m venv .venvActivate the virtual environment:
source ./.venv/bin/activateInstall the required packages:
cd pump_control_gui
pip install -r requirements.txtTo run the Pump Controller Demo, activated the virtual environment first and use the following command:
python3 pump_control.pyTo compile the application to a standalone executable using PyInstaller, it is recommended to use a Python virtual environment.
Create and activate a virtual environment as described above.
Install PyInstaller if you haven't already:
pip install pyinstaller
cd pump_control_guiRun PyInstaller to compile the executable:
pyinstaller pump_control_console.specOR
pyinstaller pump_control_noconsole.specAfter the process completes, you will find the executable in the dist directory.
main.py: The main entry point for the Raspberry Pi Pico script. It calls the main function from pump_control_pico.py.
pump_control_pico.py: Contains the logic for controlling the pumps connected to the Raspberry Pi Pico.
pwm_dma_fade_onetime.py: Fade the onboard led of the pi pico using DMA & PWM without using logic core. (Currently don't work for Pi Pico W where the onboard led is controlled by the wifi chip.)
pump_control.py: The Python script for the PC-side GUI, allowing users to interact with the pumps, load recipes, and monitor progress.
An example of a recipe file structure (CSV or Excel):
Time point (min),Pump 1,Pump 2,Pump 3,Valve 1,Valve 2,Valve 3,Notes
0,On,Off,Off,CW,CW,CW,Start initial fill with reaction solution
0.5,Off,On,On,CCW,CCW,CCW,For testing
1,On,On,Off,,,For testing
5,Off,,,,,,
125,,On,,CW,CW,CW,Post reaction emptying
130,,Off,,,,
130,,On,CCW,CCW,CCW,3x rinse with solvent
135,,Off,,,,
135,,On,CW,CW,CW,
140,,Off,,,,
140,,On,CCW,CCW,CCW,
145,,Off,,,,
145,,On,CW,CW,CW,
150,,Off,,,,
150,,On,CCW,CCW,CCW,
155,,Off,,,,Time point (min) Pump 1 Pump 2 Pump 3 Valve 1 Valve 2 Valve 3 Notes
0 OFF OFF OFF CW CW CW 1
0.2 ON ON ON CCW CCW CCW 2
0.4 OFF OFF OFF CW CW CW 3
0.6 ON ON ON CCW CCW CCW 4
0.8 OFF OFF OFF CW CW CW 5
1 ON ON ON CCW CCW CCW 6
1.2 OFF OFF OFF CW CW CW 7
1.4 ON ON ON CCW CCW CCW 8
1.6 OFF OFF OFF CW CW CW 9
1.8 ON ON ON CCW CCW CCW 10Ensure the Time point (min) column is sorted in ascending order.
Inside the control_board_Kicad folder is a KiCad project for the control board design. The control board is designed to plug into a pump with a DB25 connector which allow one pico to control one pump respectively. Using a PCB enable secure and reliable connection between the pump and the pico, and also allow for easy expansion of the system.
For any issues or contributions, please open an issue or pull request on GitHub.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 4.7 kΩ | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1, R2, R3 |
| 2 | 2N7002 | Package_TO_SOT_SMD:SOT-23_Handsoldering | Q1, Q2 |
| 1 | 3-1825910-5 | TE_3_1825910_5:SW4_1825910-I_TEC | SW1 |
| 1 | L717HDE15PD1CH4F | DB15_L717HDE15PD1CH4F:AMPHENOL_L717HDE15PD1CH4F | J1 |
| 1 | LOGO | UW-Madison Logo:logo | G*** |
| 1 | Raspberry Pi Pico | RPi_Pico:RPi_Pico_SMD_TH | U1 |
The 9 most common of 13 parts.

intel00000/EChem_Auto_Potential_Optimization
MasterFlex Pump Controller implemented in Python, utilizing a Raspberry Pi Pico for hardware control and a PC-side GUI for pumps automation and operations.



samyk/magspoof
A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

fossasia/pslab-scripts
Pocket Science Lab - Scripts for Sensor Experiments


willem-pennings/balancing-cube
A cube that balances itself in a corner or edge using reaction wheels

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
It measures 73 × 46 mm and has 2 copper layers, 1.6 mm thick.
13 parts, built around the L717HDE15PD1CH4F. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the intel00000/EChem_Auto_Potential_Optimization repository on GitHub, at the commit this page was made from: the board is control_board_Kicad/potentiostat control/potentiostat control.kicad_pcb and its schematic control_board_Kicad/autosampler control/autosampler control.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask intel00000 before reusing the design.