# Getting data from strain guages

**URL:** https://discourse.processing.org/t/getting-data-from-strain-guages/15978
**Category:** Electronics (Arduino, etc.)
**Created:** [November 30, 2019, 12:09pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978 "2019-11-30T12:09:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![shariqqureshi](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)
#### Post date: [November 30, 2019, 12:09pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/1 "2019-11-30T12:09:30Z")

</div>

hello guys… i am facing problem regarding processing 3…  
we are doing final year project in which we are doing structural health monitoring by using strain guages. now being a civil engineer i am not capable of writing code in processing software to get data from ardunio with which strainguages are attached.  
can u people help me to write code to recieve data from dtrain guages…

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 30, 2019, 12:55pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/2 "2019-11-30T12:55:15Z")

</div>

> [@shariqqureshi](#):
>
> write code to recieve data from dtrain guages

Hi. You want the arduino code? Isn’t it easier to search on the Arduino forum?  
What are you using as hardware? A strain gauge in a quarter Wheatstone bridge formation with the HX711?

---

<div class="post-metadata">

### Author: ![shariqqureshi](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)
#### Post date: [November 30, 2019, 1:00pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/3 "2019-11-30T13:00:38Z")

</div>

we will upload code of strain guage from arduino software to arduino chip and then want to receive output in processing software…  
first of all we are doing it on small sacel using strain guage bf350 strain guage attached with steel rule… after gettting results…  
then we wil perform it on large scale on real bridges…  
so we need code of processing software to get data from these strain guages…

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 30, 2019, 1:33pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/4 "2019-11-30T13:33:36Z")

</div>

> [@shariqqureshi](#):
>
> receive output in processing software

So how will the data be transferred? If you are going to install it on bridges you will need wifi at the least, or are you going to store it on SD and need this data to be displayed in sketch?

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 30, 2019, 1:49pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/5 "2019-11-30T13:49:24Z")

</div>

There is a related topic from @shariqqureshi :

> [@Visually show beam in processing](https://discourse.processing.org/t/visually-show-beam-in-processing/15979):
>
> in our final year project our wants us to show beam in processing software… i.e if we apply load on he beam in reality it will be visible in processing software also show us deformation recorded by strain guages … can we do this in processing software ??? ???

🙂

---

<div class="post-metadata">

### Author: ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)
#### Post date: [November 30, 2019, 9:30pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/6 "2019-11-30T21:30:46Z")

</div>

You can‘t get Strain gauge Output as Input in Processing, because Processing doesn‘t read that, your Arduino does. What you can do is to get data (serial) from your Arduino into a Processing sketch.

Here‘s a link to how that is done :

[https://forum.processing.org/one/topic/sending-data-from-arduino-to-processing-serially](https://forum.processing.org/one/topic/sending-data-from-arduino-to-processing-serially)

——————

@glv i think he knows about that, since he‘s the one who posted that 😅

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 30, 2019, 9:47pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/8 "2019-11-30T21:47:31Z")

</div>

@shariqqureshi

Here is a resource for you:

[https://itp.nyu.edu/physcomp/lessons/serial-communication/interpreting-serial-data/](https://itp.nyu.edu/physcomp/lessons/serial-communication/interpreting-serial-data/)

🙂

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 30, 2019, 9:55pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/9 "2019-11-30T21:55:14Z")

</div>

> [@Lexyth](#):
>
> @glv i think he knows about that, since he‘s the one who posted that 😅

That was for the benefit of the community assisting him with this topic.

Good catch! 🙂

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 30, 2019, 10:11pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/10 "2019-11-30T22:11:08Z")

</div>

In the other post(and I hate people posting more posts about same subject), he said he had to show some work tomorrow at the meeting. So I think that kll’s help was sufficient Anyhow, a strange story for someone’s final year using such a cheap sensor. This will only work on a very flat polished surface attaching with the right glue. Even then data will come out very noisy.

---

<div class="post-metadata">

### Author: ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)
#### Post date: [November 30, 2019, 10:35pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/11 "2019-11-30T22:35:11Z")

</div>

What alternative would you suggest, to not have to use strain gauges? (I‘m asking, cause i‘m working with strain gauges on a project and i‘d be nice to know the possible alternatives 😅 )

---

<div class="post-metadata">

### Author: ![shariqqureshi](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)
#### Post date: [November 30, 2019, 10:46pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/12 "2019-11-30T22:46:08Z")

</div>

Thanks … for ur assistance… i will write code and if it shows some error then i will tell u…😊😊🥰🤗🤗

---

<div class="post-metadata">

### Author: ![shariqqureshi](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)
#### Post date: [November 30, 2019, 10:52pm UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/13 "2019-11-30T22:52:43Z")

</div>

I have posted 2 posts .in one post i have asked about the coding for strain gauge… and in the other post i asked about that if we are able to show the beam in processing as we apply load on it… so basically they are different topic.

And tomorrow is our progress meeting to show progress. This fyp is 1 year project … and first we are using cheap sensors to test it because its new field in civil engineering so we are starting from basics… ( Structural health monitoring). After that we will get expansive ones which have wifi facility and we will get alerts on mobiles…  
😊😊 By the way thanks for ur help also… 🤗🤗 You all are nice people…

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 1, 2019, 12:17am UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/14 "2019-12-01T00:17:27Z")

</div>

SHM often uses piezoelectric transducers for  
measurement but also ultrasonic stress measurement can ne done…  
But I think the art of the whole project is to know where to position the sensors, due to natural resonation, vehicle-induced vibration, environmental factors wind etc. But as he mentioned in his latest post, that it is about giving alarms on mobiles; if you take the threshold high enough, those cheaper sensors could be used. Along with that I would use the ESP 32 LoRa which has a wifi range of six kilometers.

---

<div class="post-metadata">

### Author: ![shariqqureshi](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)
#### Post date: [December 1, 2019, 2:10am UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978/15 "2019-12-01T02:10:52Z")

</div>

We are also studying literature regarding the strain guages and other sensors used in ships and aeroplates for detection of cracks to relate them with our… In ships they are using optical strain guages…🤗🤗 We are looking all the available options their availability and also price… there are some systems that directly do shm but they are 4k to 5k dollars worth… That is too much for us…
