This repo is about using Arduino to get te Thin Film Pressure Sensor data. First, you need Arduino IDE/PIO to build the script and upload to the board. Then, using the pySerial to get the data. Finally, you could read and publish data under the ROS platform. This repo as a ros-package.
Sensor : Film Pressure Sensor Link
Model: RP-C10-ST
Specification :
- Trigger force: 20 g, triggered when resistance is less than 200 kΩ by default
- Pressure sensing range: 20 g ~ 2 kg
- Pressure action mode: Static or dynamic (frequency within 10 Hz)
- Non-trigger resistance: More than 10 MΩ
- Activation time: less than 0.01 S
- Operating temperature: -40 ℃ ~ +85 ℃
- Lag: +10%, (RF+ - RF-)/FR+, 1000g force
- Response time: < 10 ms
Circuit diageam
Source : Link
- Using Platformio to build and upload the script to the board
- Read sensor data by pySerial
- Publishing data under ROS
Board : UNO
Using vs code
Ctrl
+ Atl
+ P
- Open Home page and select the project (Platformio : Home)
- Build and Upload
- Open Serial Monitor (Platformio : Serial Monitor)
requriement :
- pySerial
conda env create -n pressure_sensor -f environment.yml
conda activate pressure_sensor
python scripts/pressure_sensor_pyserial.py
requriement :
- ROS
- pySerial
rosrun pressure_sensor pressure_sensor_ros.py