Interfacing Pressure Sensor SPD005G to Arduino
2016-10-05 | By Abid Jamal
License: None Arduino
Microcontrollers are a great platform for learning. You can interface them to a variety of peripheral devices and perform many experiments and tests to further improve your next project. For this particular project, we interface a SPD005G pressure sensor to an Arduino Uno. Arduino Uno’s are great to study because they are very easy to learn and have a plethora of online resources.
Since the bulk of this project is interfacing, it is prudent to first identify and familiarize ourselves with the ports of both the sensor and microcontroller. Again, there are a lot of resources out there to help with this.
Building on a former project in which we interfaced an LCD to a microcontroller, we can also add an LCD here to display the readings of our sensor. The bulk of this project relies heavily on interfacing. A schematic of how everything is connected is shown as well as all the necessary passive components. Once you have gathered all of the components, you can go ahead and begin to connect everything as shown.
Once you have everything properly connected, you can move on to the other half of the project: the code. For now, copy the code and run. The code basically sets the pins needed by the LCD to run, and sets A0 as the analog input where you connected your pressure sensor. The LCD should display the readings of your pressure sensor in real-time at 300 milliseconds delay.
Pressure sensors are extremely versatile and have a number of possible applications whether it be smaller home projects or large-scale industrial applications. This is just the beginning, the rest is up to you. Get inspired and see what innovative ways you can use a pressure sensor!
Arduino coding tutorial -
https://www.arduino.cc/en/Tutorial/HomePage
Source:
http://www.electronicslovers.com/2015/02/interfacing-pressure-sensor-spd005g-to.html
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum