4. Custom Weather Station: UV Sensor install

in #diy5 years ago (edited)

Welcome back, in this post I will cover connecting, testing and integrating the VEML 6070 sensor with the raspberry Pi3 and Ros2. The VEML 6070 is a UV light sensor.

serveimage.gif

Connecting and Testing

Used the following guide from adafruit to wire, start up example code and test that the device was working. To start I had to remove the BME 280 sensor and connect just the UV sensor to the raspberry Pi. I added a small bread board instead of directly connecting the UV sensor during this step so I could more easily add back in the BME 280 sensor.

Adding Ros2

Added another ros node to the project called VEML6070_sensor.py. The node publishes the raw UV value reported by the sensor and its danger level as interpreted by the sensors code. These are published on topics /veml6070_uv and /veml6070_uv_risk.

Check out the third blog for information on downloading and using the code, 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