Firmware, Python reader, and PCB fabrication files for HiPi: Reproducible High-Fidelity Piezoresistive Sensors for Robotic Manipulation.
This initial release provides a basic software quick start for an already assembled HiPi sensor using a WeAct Black Pill V2.0 (STM32F411CEU6). Illustrated wiring, fabrication, and assembly instructions will follow. Do not infer connector pinouts from PCB filenames.
Use Python 3.10 or newer and a graphical desktop. Run these commands from this folder on Linux; ROS is not required.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install platformio==6.1.19The default upload method is ST-Link; tactile data uses the MCU's USB connector. Close any serial reader before uploading.
pio run
pio run -t uploadThe default environment is blackpill_f411ce. Additional timing profiles are
listed in platformio.ini.
Connect the MCU with a USB data cable and enable the intended readout modules. Find the serial port, then start the viewer:
python -m serial.tools.list_ports
python pc_reader/view_tactile.py --port /dev/ttyACM0Replace /dev/ttyACM0 with your device's port. Keep the sensor unloaded during
the startup baseline. Press r while unloaded to recalibrate and q to quit.
The viewer automatically displays the enabled readout modules, each as a
64x16 block. Use --layout 32x16 to show the first 32 rows of each block.
Display refresh defaults to 50 Hz. Run the viewer with --help for other options.
Restart the viewer after changing enabled modules.
src/: STM32 firmware.include/: pin definitions and timing settings.pc_reader/: viewer, configuration, and raw stability checker.PCB_Fabrication/: HiPi PCB manufacturing files.