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 17:38] avnerus |
soft-robotics:sensors:mps-20n004d0d [2021/12/15 16:11] (current) avnerus |
||
|---|---|---|---|
| Line 20: | Line 20: | ||
| {{:soft-robotics:sensors:mps-pinout.png?400|}} | {{:soft-robotics:sensors:mps-pinout.png?400|}} | ||
| - | === Circuit === | + | ==== Circuit ==== |
| The circuits I have seen online use two connections to the LM358, first as a differential amplifier and then as a normal amplifier. | 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. | 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|}} | {{:soft-robotics:sensors:pressure_sensor_connection_avner.png?800|}} | ||
| Line 28: | Line 30: | ||
| *Based on the image in "The answer is 42" | *Based on the image in "The answer is 42" | ||
| - | === Breadboard image === | + | ==== Breadboard image ==== |
| {{:soft-robotics:sensors:breadboard_pressure_sensor.jpg?400|}} | {{:soft-robotics:sensors:breadboard_pressure_sensor.jpg?400|}} | ||
| * I also added 100Uf capacitors because seems like that was recommended. | * 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]]. | ||
| + | |||