5. Custom Weather Station: Ground Temperature Sensor

in #diy4 years ago (edited)

Welcome back, in this post I will cover connecting, testing and integrating the DS 18B20 sensor with the raspberry Pi3 and Ros2.

Connecting and Testing

Started by following the Ground Temperature section of this guide. 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:

sudo mount /dev/mmcblk0p1 /boot

sudo nano /boot/config.txt

Add dtoverlay=w1-gpio,gpiopin=4 to the end of the file.

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

ground_temp_bb.png

Adding Ros2

Added another ros node to the project called DS18B20_sensor.py. The node publishes the temperature in Celsius published on the ros topic /ds18B20_temperature. Check out the third blog for information on downloading and using the code.

Created a launch file 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 ros2 launch mimir all_sensors_launch.py.

Please like and subscribe.

  1. Building a Custom Weather Station in ROS2 Parts and Plans (DIY BLOG)
  2. Custom Weather Station: Installing Ros2 (DIY BLOG)
  3. Custom Weather Station: Temperature, Pressure, Humidity Sensor Install
  4. Custom Weather Station: UV Sensor install
Sort:  

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 or SteemLeo

Build-it 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

Chat with us on our discord and telegram channels Discord, Telegram.

Follow @build-it for more updates!

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.029
BTC 60320.14
ETH 3373.37
USDT 1.00
SBD 2.51