create account

4. Custom Weather Station: UV Sensor install by robotjini

View this thread on: hive.blogpeakd.comecency.com
· @robotjini · (edited)
$0.05
4. Custom Weather Station: UV Sensor install
Welcome back, in this post I will cover connecting, testing and integrating the [VEML 6070 sensor](https://www.adafruit.com/product/2899) with the raspberry Pi3 and Ros2.  The VEML 6070 is a UV light sensor.


![serveimage.gif](https://cdn.steemitimages.com/DQmY5PjVvF5CWieSXYM215y8BK7Qaw4QjSKyjJeAw1f1dYf/serveimage.gif)


# Connecting and Testing

Used the following [guide](https://learn.adafruit.com/adafruit-veml6070-uv-light-sensor-breakout/python-circuitpython) 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](https://www.adafruit.com/product/2652) 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](https://gitlab.com/Robotjini/mimir/-/blob/master/mimir/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)](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)
👍  , ,
properties (23)
authorrobotjini
permlink4-custom-weather-station-uv-sensor-install
categorydiy
json_metadata{"tags":["robotics","grandsolarminimum","weather","raspberrypi","maine","ros2"],"links":["https://www.adafruit.com/product/2899","https://learn.adafruit.com/adafruit-veml6070-uv-light-sensor-breakout/python-circuitpython","https://www.adafruit.com/product/2652","https://gitlab.com/Robotjini/mimir/-/blob/master/mimir/VEML6070_sensor.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/5tdps3-3-custom-weather-station-temperature-pressure-humidity-sensor-install"],"app":"steemit/0.2","format":"markdown","image":["https://cdn.steemitimages.com/DQmY5PjVvF5CWieSXYM215y8BK7Qaw4QjSKyjJeAw1f1dYf/serveimage.gif"]}
created2020-03-16 22:40:21
last_update2020-03-16 22:45:42
depth0
children0
last_payout2020-03-23 22:40:21
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.025 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,804
author_reputation56,114,087,414
root_title"4. Custom Weather Station: UV Sensor install"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,418,620
net_rshares278,005,513,402
author_curate_reward""
vote details (3)