0

VEML6070 and Si1145 on BBBW using cloud9
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

VEML6070 and Si1145 on BBBW using cloud9

by chibi309 on Mon Feb 06, 2017 1:35 pm

I'm new in beaglebone black wireless and python like 8days. I'm using Cloud9 IDE for programming like in the "beaglebone getting started". Can someone share or make some tutorials on I2C's like Adafruits VEML6070 Si1145. I want to test my beaglebone on VEML6070 for reading the UV, Si1145 for the IR, Vis, UV index and DHT22 for temperature, humidity and heat index at the same time.

chibi309
 
Posts: 3
Joined: Mon Feb 06, 2017 1:33 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Tue Feb 07, 2017 5:33 pm

For DHT22, checkout this Python library:
Adafruit Python DHT Sensor Library
Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.


DHT tutorial:
DHT Humidity Sensing on Raspberry Pi or Beaglebone Black with GDocs Logging

For Si1145, checkout this Python library:
Python library for the SI1145
Python library for accessing the SI1145 temperature


For VEML6070, I don't see Python library but I do see this:
veml6070-sensor
A Node.js I2C module for the Vishay Semiconductors VEML6070 UVA Light Sensor

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Mon Feb 13, 2017 5:30 am

I've used this Python library SI1145 successfully:
THP-JOE/Python_SI1145

My BeagleBone Black is running the latest Debian Jessie image from BeagleBoard.org.

Configure P9.17 as I2C1_SCL & P9.18 as I2C1_SDA:
debian@beaglebone:~$ sudo config-pin p9.17 i2c
debian@beaglebone:~$ sudo config-pin p9.18 i2c


For reference, this is the diagram of the header pins:
http://beagleboard.org/static/images/ca ... rs-i2c.png

Install the library from Github and run the example:
debian@beaglebone:~$ git clone https://github.com/THP-JOE/Python_SI1145
debian@beaglebone:~$ cd Python_SI1145/
debian@beaglebone:~/Python_SI1145$ sudo python ./setup.py install
debian@beaglebone:~/Python_SI1145$ sudo python ./examples/simpletest.py
Press Cntrl + Z to cancel
Vis: 262
IR: 309
UV Index: 0.03
Vis: 261
IR: 305
UV Index: 0.03
Vis: 263
IR: 309
UV Index: 0.03

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Mon Feb 13, 2017 6:19 am

I've used this Python library for VEML6070 successfully:
python-veml6070

My BeagleBone Black is running the latest Debian Jessie image from BeagleBoard.org.

Configure P9.17 as I2C1_SCL & P9.18 as I2C1_SDA:
debian@beaglebone:~$ sudo config-pin p9.17 i2c
debian@beaglebone:~$ sudo config-pin p9.18 i2c


For reference, this is the diagram of the header pins:
http://beagleboard.org/static/images/ca ... rs-i2c.png

Install the library from Github, install libffi dependency, and run the example:
debian@beaglebone:~$ git clone https://github.com/cmur2/python-veml6070
debian@beaglebone:~$ sudo apt-get install libffi-dev
debian@beaglebone:~$ cd python-veml6070/
debian@beaglebone:~/python-veml6070$ sudo python ./setup.py install
debian@beaglebone:~/python-veml6070$ sudo python ./demo.py
Integration Time setting 0: 0.000000 W/(m*m) from raw value 0
Integration Time setting 1: 0.056250 W/(m*m) from raw value 1
Integration Time setting 2: 0.056250 W/(m*m) from raw value 2
Integration Time setting 3: 0.042188 W/(m*m) from raw value 3

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by chibi309 on Fri Feb 24, 2017 12:28 am

thanks for the reply! i follow your instructions and i think it runs perfectly. My question now is that when is run the program i always have an 260, 261 output for my visible light even when its dark. what is reason behind that?

Also, the program in DHT22, it also works. the problem is that it cant read the Heat index. do you have any tutorial that can share?

chibi309
 
Posts: 3
Joined: Mon Feb 06, 2017 1:33 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Sun Feb 26, 2017 6:02 am

chibi309 wrote:thanks for the reply! i follow your instructions and i think it runs perfectly. My question now is that when is run the program i always have an 260, 261 output for my visible light even when its dark. what is reason behind that?


These are the readings I got a night in my living room with dim lights on:
Code: Select all | TOGGLE FULL SIZE
Vis: 262
IR: 309
UV Index: 0.03
Vis: 261
IR: 305
UV Index: 0.03
Vis: 263
IR: 309
UV Index: 0.03

I'll try taking reading during the day with the window shades open and share what results I get.

chibi309 wrote:Also, the program in DHT22, it also works. the problem is that it cant read the Heat index. do you have any tutorial that can share?

I'm not sure what you mean by "Heat index". Could you elaborate?

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by chibi309 on Sun Feb 26, 2017 10:31 pm

These are the readings I got a night in my living room with dim lights on:
Code: Select all | TOGGLE FULL SIZE
Vis: 262
IR: 309
UV Index: 0.03
Vis: 261
IR: 305
UV Index: 0.03
Vis: 263
IR: 309
UV Index: 0.03

I'll try taking reading during the day with the window shades open and share what results I get.


Thank you again for replying. Is that normal? the reading is 261, 262, 263 even when its dark? i know visible light is visible to human eyes. So if the room is very dark the there is no light present except the monitor screen, should the Si1145 will give us an output of 0 or just lower that 260, 261, 262 on visible light? Correct me if i'm wrong. i also did not test the sensor under the sun. maybe when i test it, the result will change.

I'm not sure what you mean by "Heat index". Could you elaborate?

Never mind about the heat index. I just found a solution on that.

chibi309
 
Posts: 3
Joined: Mon Feb 06, 2017 1:33 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Wed Mar 01, 2017 5:25 am

That seems reasonable compared to the SI1145 Arduino example:
Adafruit SI1145 Breakout Board - UV index / IR / Visible Sensor

adafruit_products_proxtest.gif
adafruit_products_proxtest.gif (24.73 KiB) Viewed 772 times


One way to test with a higher light level is the LED flash on a smartphone.

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: VEML6070 and Si1145 on BBBW using cloud9

by drewfustini on Wed Mar 01, 2017 5:05 pm

Here is some test data from the BeagleBone using THP-JOE/Python_SI1145. It does seem that the Vis: is not very dynamic. It might be good to change the scale used in that library for low visible light use cases.

Sensor covered up:
Vis: 260
IR: 255
UV Index: 0.02
Vis: 262
IR: 284
UV Index: 0.03
Vis: 262
IR: 255
UV Index: 0.03
Vis: 261
IR: 253
UV Index: 0.02



Dim room lighting:
Vis: 261
IR: 253
UV Index: 0.02
Vis: 260
IR: 255
UV Index: 0.02
Vis: 259
IR: 253
UV Index: 0.02
Vis: 260
IR: 253
UV Index: 0.02




Bright Room Light:
Vis: 264
IR: 354
UV Index: 0.04
Vis: 265
IR: 359
UV Index: 0.04
Vis: 267
IR: 361
UV Index: 0.05
Vis: 264
IR: 355
UV Index: 0.05


LED flashlight:
Vis: 317
IR: 528
UV Index: 0.32
Vis: 315
IR: 520
UV Index: 0.32
Vis: 354
IR: 683
UV Index: 0.52
Vis: 313
IR: 510
UV Index: 0.3

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Please be positive and constructive with your questions and comments.