This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
soft-robotics:sensors:mps-20n004d0d [2019/02/16 16:24] avnerus |
soft-robotics:sensors:mps-20n004d0d [2021/12/15 16:11] avnerus |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MPS20N0040D-S Pressure Sensor ====== | + | ====== MPS20N0040D Pressure Sensor ====== |
{{:soft-robotics:sensors:sens-mps20n0040d.jpg?400|}} | {{:soft-robotics:sensors:sens-mps20n0040d.jpg?400|}} | ||
Line 5: | Line 5: | ||
===== Description ===== | ===== Description ===== | ||
- | This is a cheap yet ubiquitous pressure sensor. Unlike the [[soft-robotics:sensors:mis-2500|MIS-2500]], it requires amplification using an Op-Amp. | + | This is a cheap yet ubiquitous pressure sensor based om a Wheatstone bridge. Unlike the [[soft-robotics:sensors:mis-2500|MIS-2500]], it requires amplification using an Op-Amp. |
+ | |||
+ | ===== Datasheet ===== | ||
- | ==== Datasheet ==== | ||
{{ :soft-robotics:sensors:mps20n0040d-s_datasheet.pdf |Download here.}} | {{ :soft-robotics:sensors:mps20n0040d-s_datasheet.pdf |Download here.}} | ||
+ | ===== Circuit Design ===== | ||
+ | |||
+ | After plenty of reading and experimenting I came up with the following LM358 based circuit that I am satisfied with. | ||
+ | |||
+ | ==== Pinout ==== | ||
+ | This pin diagram is for the version of the sensor that I ordered. | ||
+ | |||
+ | {{:soft-robotics:sensors:mps-pinout.png?400|}} | ||
+ | |||
+ | ==== Circuit ==== | ||
+ | The circuits I have seen online use two connections to the LM358, first as a differential amplifier and then as a normal amplifier. | ||
+ | I believe that I can manage with just differential amplification, because it provides both amplification to the signal and eliminating the 2.5v offset of the output. | ||
+ | |||
+ | **The following setup is for 3.3v on the Teensy** | ||
+ | |||
+ | {{:soft-robotics:sensors:pressure_sensor_connection_avner.png?800|}} | ||
+ | |||
+ | *Based on the image in "The answer is 42" | ||
+ | |||
+ | ==== Breadboard image ==== | ||
+ | |||
+ | {{:soft-robotics:sensors:breadboard_pressure_sensor.jpg?400|}} | ||
+ | |||
+ | * I also added 100Uf capacitors because seems like that was recommended. | ||
+ | |||
+ | |||
+ | ==== Raspberry Pi Circuit ==== | ||
+ | To connect the pressure sensor to a Raspberry Pi, the ADS1115 board may be used. | ||
+ | Below is a Fritzing image of the circuit: | ||
+ | |||
+ | {{:soft-robotics:sensors:mps20n0040d_pressure_sensor_-_raspberry_pi_bb.png?400|}} | ||
+ | |||
+ | The pressure is measured as a differential pressure, counting the difference between A0 and A1. | ||
+ | The Fritzing sketch is available [[https://version.aalto.fi/gitlab/peleda1/puppetbots/-/blob/439b3ef9cbe7f46207e2e06fb6bcbe6fcdbf993c/prototype/fritzing/MPS20N0040D%20Pressure%20Sensor%20-%20Raspberry%20Pi.fzz|here]]. | ||