create account

5. Custom Weather Station: Ground Temperature Sensor by robotjini

View this thread on: hive.blogpeakd.comecency.com
· @robotjini · (edited)
$0.05
5. Custom Weather Station: Ground Temperature Sensor
Welcome back, in this post I will cover connecting, testing and integrating the [DS 18B20](https://www.adafruit.com/product/381) sensor with the raspberry Pi3 and Ros2.

# Connecting and Testing

Started by following the Ground Temperature section of this [guide](https://projects.raspberrypi.org/en/projects/build-your-own-weather-station/2).  It didn't fully work and I found myself questioning whether or not I had correctly crimped wire connectors onto the end of the sensor.  After some time I found you have to actually mount /boot before editing /boot/config.txt.  The boot config editing should go as follows:

<code> sudo mount /dev/mmcblk0p1 /boot </code>

<code> sudo nano /boot/config.txt </code>

Add <code> dtoverlay=w1-gpio,gpiopin=4 </code> to the end of the file.

The ground sensor is connected through the bread board as shown.

![ground_temp_bb.png](https://cdn.steemitimages.com/DQmUchYVTxKp7HN51ZNVECc2kAwLf64S1SHg7RkTxPVNRYj/ground_temp_bb.png)

# Adding Ros2 

Added another ros node to the project called [DS18B20_sensor.py](https://gitlab.com/Robotjini/mimir/-/blob/master/mimir/DS18B20_sensor.py).  The node publishes the temperature in Celsius published on the ros topic /ds18B20_temperature.  Check out the [third blog](https://steemit.com/diy/@robotjini/5tdps3-3-custom-weather-station-temperature-pressure-humidity-sensor-install) for information on downloading and using the code.  

Created a [launch file](https://gitlab.com/Robotjini/mimir/-/blob/master/launch/all_sensors_launch.py) in /launch to launch all 3 active sensors and will be expanded for the remaining wind and rain sensor.  To use after building and sourcing the ROS project run <code>ros2 launch mimir all_sensors_launch.py</code>.

Please like and subscribe.

1. [Building a Custom Weather Station in ROS2 Parts and Plans (DIY BLOG)](https://beta.steemit.com/ros2/@robotjini/1-building-a-custom-weather-station-in-ros2-parts-and-plans-diy-blog)
2. [Custom Weather Station: Installing Ros2 (DIY BLOG)](https://beta.steemit.com/diy/@robotjini/2-custom-weather-station-installing-ros2-diy-blog)
3. [Custom Weather Station: Temperature, Pressure, Humidity Sensor Install](https://steemit.com/diy/@robotjini/5tdps3-3-custom-weather-station-temperature-pressure-humidity-sensor-install)
4. [Custom Weather Station: UV Sensor install](https://steemit.com/diy/@robotjini/4-custom-weather-station-uv-sensor-install)
👍  , , , , , , ,
properties (23)
authorrobotjini
permlink5-custom-weather-station-ground-temperature-sensor
categorydiy
json_metadata{"tags":["robotics","grandsolarminimum","weather","raspberrypi","maine","ros2"],"image":["https://cdn.steemitimages.com/DQmUchYVTxKp7HN51ZNVECc2kAwLf64S1SHg7RkTxPVNRYj/ground_temp_bb.png"],"links":["https://www.adafruit.com/product/381","https://projects.raspberrypi.org/en/projects/build-your-own-weather-station/2","https://gitlab.com/Robotjini/mimir/-/blob/master/mimir/DS18B20_sensor.py","https://steemit.com/diy/@robotjini/5tdps3-3-custom-weather-station-temperature-pressure-humidity-sensor-install","https://gitlab.com/Robotjini/mimir/-/blob/master/launch/all_sensors_launch.py","https://beta.steemit.com/ros2/@robotjini/1-building-a-custom-weather-station-in-ros2-parts-and-plans-diy-blog","https://beta.steemit.com/diy/@robotjini/2-custom-weather-station-installing-ros2-diy-blog","https://steemit.com/diy/@robotjini/4-custom-weather-station-uv-sensor-install"],"app":"steemit/0.2","format":"markdown"}
created2020-03-17 14:13:42
last_update2020-03-17 14:19:30
depth0
children1
last_payout2020-03-24 14:13:42
cashout_time1969-12-31 23:59:59
total_payout_value0.023 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,407
author_reputation56,114,087,414
root_title"5. Custom Weather Station: Ground Temperature Sensor"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,436,473
net_rshares282,987,128,601
author_curate_reward""
vote details (8)
@build-it.curator ·
**Thank you for using the recommended tag/s. This post has been manually rewarded with BUILD tokens in the form of an upvote. You can buy, stake, and exchange our "BUILD" tokens for steem on [steem engine](https://steem-engine.com/?p=tokens) or [SteemLeo](http://dex.steemleo.com/market/BUILD)**  

**[Build-it](https://www.build-it.io/) is a central hub for DIY and How-To projects. It's an opportunity to find and share the latest in DIY, and How-To tutorials. The recommended tags required when creating a DIY article are #diy, #build-it. #how-to, or #doityourself. Please subscribe to our community [here](https://beta.steemit.com/created/hive-129017)**

**Chat with us on our discord and telegram channels [Discord](https://discord.gg/XW5ER8E), [Telegram](https://t.me/build_it_diy).**

<center>**Follow @build-it for more updates!**</center>
properties (22)
authorbuild-it.curator
permlinkq7e5ok
categorydiy
json_metadata{"tags":["build-it","diy","how-to","doityourself"],"users":["build-it"],"links":["https://steem-engine.com/?p=tokens","http://dex.steemleo.com/market/BUILD","https://www.build-it.io/","https://beta.steemit.com/created/hive-129017","https://discord.gg/XW5ER8E","https://t.me/build_it_diy"],"app":"buildit/0.1","canonical_url":"https://www.build-it.io/@build-it.curator/q7e5ok"}
created2020-03-18 13:33:57
last_update2020-03-18 13:33:57
depth1
children0
last_payout2020-03-25 13:33:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length847
author_reputation49,417,665,048
root_title"5. Custom Weather Station: Ground Temperature Sensor"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,463,064
net_rshares0