# Send data with MavLink to QgroundControl

**URL:** <https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926>\
**Category:** Blue Robotics Software\
**Created:** [July 6, 2018, 5:56am UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926 "2018-07-06T05:56:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeidjson](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@saeidjson](https://discuss.bluerobotics.com/u/saeidjson)\
**Post date:** [July 6, 2018, 5:56am UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/1 "2018-07-06T05:56:10Z")

</div>

hi  
I have a temperature sensor =\> [Product link](https://www.amazon.com/DS18b20-Waterproof-Temperature-Transmitter-Stainless/dp/B073XKXB3G/ref=asc_df_B073XKXB3G/?tag=hyprod-20&linkCode=df0&hvadid=216574878909&hvpos=1o1&hvnetw=g&hvrand=14376782565476749567&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=2840&hvtargid=pla-350075920462&psc=1)  
I read the temperature data using raspberry pi 3  
I want to send temperature information to QgroundControl and show it  
help me

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [July 6, 2018, 2:29pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/2 "2018-07-06T14:29:31Z")

</div>

~~There is support for this sensor in ArduSub. You can plug the sensor into an autopilot like a pixhawk, and it will send the information to QGC.~~ If you do not want to use an autopilot, then you can look here at the same question about sensors connected to the Pi:

> [@Using I2C sensors with QgroundControl](https://discuss.bluerobotics.com/t/using-i2c-sensors-with-qgroundcontrol/2893):
>
> I’ve gotten a i2c thermometer and humidity sensor that I’d like to measure inside of the electronics enclosure of my ROV. It’s currently plugged into the pixhawk. How can I/ can I read the sensor data over the tether on QGroundcontrol?

---

<div class="post-metadata">

**Author:** ![saeidjson](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@saeidjson](https://discuss.bluerobotics.com/u/saeidjson)\
**Post date:** [July 6, 2018, 2:56pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/3 "2018-07-06T14:56:52Z")

</div>

hi  
I use pixhawk  
help me to connect the temperature sensor to pixhawk

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [July 6, 2018, 3:29pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/4 "2018-07-06T15:29:11Z")

</div>

Plug it into the ‘I2C’ port on the pixhawk. If you have more than one I2C sensor like a Bar30, then you can connect both with an I2C splitter, or just connect all the wires in parallel.

[https://www.google.com/search?q=i2c+splitter&source=lnms&tbm=isch&sa=X&ved=0ahUKEwj5rOCP5YrcAhWKd98KHaz9BEAQ\_AUICygC&biw=1847&bih=945](https://www.google.com/search?q=i2c+splitter&source=lnms&tbm=isch&sa=X&ved=0ahUKEwj5rOCP5YrcAhWKd98KHaz9BEAQ_AUICygC&biw=1847&bih=945)

---

<div class="post-metadata">

**Author:** ![saeidjson](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@saeidjson](https://discuss.bluerobotics.com/u/saeidjson)\
**Post date:** [July 6, 2018, 3:40pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/5 "2018-07-06T15:40:28Z")

</div>

The ds18b20 temperature sensor is connected to 3 wires and not I2c  
How can i2c do it?

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [July 6, 2018, 3:56pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/6 "2018-07-06T15:56:55Z")

</div>

It won’t work with I2C. You will need to write your own code for it. I thought you were referring to the [Blue Robotics Celsius temperature sensor](https://www.bluerobotics.com/store/electronics/celsius-sensor-r1/) in the first place, sorry.

---

<div class="post-metadata">

**Author:** ![saeidjson](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@saeidjson](https://discuss.bluerobotics.com/u/saeidjson)\
**Post date:** [July 6, 2018, 4:02pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/7 "2018-07-06T16:02:43Z")

</div>

I set up the Sensor Code for Raspberry pi and it works properly  
I would like to send the temperature information to MavLink for QgroundControl and show it  
help me

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [July 6, 2018, 4:29pm UTC](https://discuss.bluerobotics.com/t/send-data-with-mavlink-to-qgroundcontrol/2926/8 "2018-07-06T16:29:53Z")

</div>

You can use mavlink. There are examples on [ardusub.com](http://ardusub.com): [Pymavlink · GitBook](https://www.ardusub.com/developers/pymavlink.html)

Try sending the SCALED\_PRESSURE3 message, and fill in the temperature with your reading, then you will see it in QGC.
