#  Step 4: Equipment Setup 

 



 ##  

  expand\_more  

 
  

 

The equipment setup provided here serves only as a guideline. The only requirement is the ability to measure pressure in the line and measure the resistance (or voltage) between the leads of the sensor. A high level overview is presented below.

 ![wiring-diagram](/sites/g/files/omnuum4601/files/2024-11/wiring-diagram.png)

 

### Measuring Pressure

If the digital (I2C) version of the pressure sensor is being used, connect the SDA, SCL, VCC, and GND pins to the respective pins on the microcontroller. This guide will not provide detailed instructions for communicating using I2C, please consult the datasheet for the specific microcontroller.

If the analog version of the pressure sensor is being used, connect the 0-5V or 0-3.3V output from the sensor to the analog input of the microcontroller or data acquisition hardware.

### Measuring Resistance

Data acquisition device setup:

- Analog out: 2 Vpp sine wave (+ - 1V) at 100Hz
- Analog in: RSE mode (Single-Ended-Grounded Reference) with voltage divider circuit as explained in the [Measuring Resistance with AC](https://sandbox.softroboticstoolkit.com/f2875f32/design/subpage2) page

#### Choosing the Resistor

To get the most dynamic range out of the sensor, the resistance of the resistor in the voltage divider should closely match the sensor's resistance at rest.

 ![voltage-divider](/sites/g/files/omnuum4601/files/2024-11/voltage-divider_0.png)

 

Choosing the resistor is done by following process:

1. Choose an arbitrary resistance, a good starting point is 80 kOhms.
2. Measure the response of the sensor at rest. Let's say we get a \\(V\_M\\) of 0.2 volts.
3. Calculate the resistance of the saline water with \\(R\_{SALT}=\\frac{R\_{KNOWN} \\times V\_{M\_{RMS}} }{V\_{S\_{RMS}}-V\_{M\_{RMS}}}\\)
4. Select a resistor with a resistance close to \\(R\_{SALT}\\). If the voltage at rest is not near 0.5 volts, reiterate by repeating steps 1 to 3.

### Bibliography

Preechayasomboon et. al. [Multi-Modal Sensing and Actuation in Biomechanical Hydraulic and Pneumatic Systems.](/publications/multi-modal-sensing-and-actuation-biomechanical-hydraulic-and-pneumatic?admin_panel=1)

[Export Citation](/bibcite/export?content_filter%5B0%5D=1333742&format=bibtex)

### Contributors

Pornthep Preechayasomboon

Gaurav Mukherjee

Eric Rombokas