36 questions
1
vote
0
answers
82
views
Is it possible to compare multiple line graphs to give a sort of ' similarity rating'
So I am trying to measure data from a smartphone ambient light sensor (ALS). My goal is to be able to be able to look at the data and be able to infer the location of the device.
To do this my plan is ...
0
votes
0
answers
110
views
TSL2591 I2C protocol : sensor returning register number instead of valid data
as part of my academy project I am writing i2c protocol in system Verilog in VIVADO on FPGA PYNQ Z2.
after completed all code and pass simulation, connected the TSL2591 device.
according to ILA ...
1
vote
2
answers
299
views
Android Studio shows bug when trying to use event.values in kotlin
I got the following problem in Android Studio.
I tried to rebuild an Google Android Guide for using the light sensor. While typing the code I got this error from Android Studio. It says Unresolved ...
0
votes
0
answers
64
views
Is it possible to send data to light sensor in android?
I am working with sensors in my application in which I got stuck on a question is there any way to send data through the light sensor or to the light sensor in android programmatically?
Any help will ...
0
votes
1
answer
2k
views
How to read 16 bit hardware register
I am working on VEML7700 Lux Sensor.datasheet link. I can detect the sensor and read/write data using i2c-tool. I2C address of sensor is 0x10. Here I am getting correct reading of 0x04 result register....
0
votes
1
answer
163
views
How to pass the multiple sensor values to the notification bar in android when the app is in the background
I am a newbie in android sensors and notifications. I am working with sensor data(light, proximity, accelerometer, and gyroscope sensor). My goal is to make an app that will be displaying four sensor ...
0
votes
1
answer
614
views
I'm trying to get light sensor data from an Android device for use in a Unity app
Preface: There is a post made in 2016 by Ice-Blaze that covers this, his solution no longer works.
I've tried using his plugin and it does not seem to pass data or retrieve light sensor data. In ...
0
votes
2
answers
2k
views
How to get data of BH1750 (light sensor) via on I2C interface using i2c-tools
I am trying to use BH170FVI sensor via on I²C interface on Ubuntu-16.04. My board is UpSquared not Raspberry.
To be able to use i2c interface, I installed i2c-tools. I also controlled BMI160 sensor ...
0
votes
0
answers
80
views
how to count only if light sensor event going from 100 to 50 and don't count if it from 0 to 50
How to count only if light sensor event going from 100 to 50 and don't count if it from 0 to 50 ?
I'm using light sensor in my app( onsensorchange event )
I want to count only if light fade from ...
0
votes
1
answer
74
views
Conflict between WiFi and lightsensor?
I have a weird problem with my ESP8266 Lolin32.
I try to make a project which get value from a lightsensor and establish a WiFi connection. I can properly display values, but when I add Wifi ...
0
votes
1
answer
83
views
Is there a way in Android studio of polling the light sensors rather than waiting for a SensorEvent?
I need a very high rate of information from the light_sensor in android studio and i can't get it with an event so i want the real time information if its possible
@Override
public void ...
1
vote
2
answers
278
views
How is the value in a BH1750 light sensor assigned using a shifting operator <<? [duplicate]
I'm using a BH1750 light sensor with arduino to display the lux values on an LCD. But in the code, I'm unable to get the formula. Can anybody explain me the formula?
I tried to find it in the ...
0
votes
0
answers
43
views
ANDROID: How to calculate difference between two significant changes in light sensor data?
I am trying to calculate the number of troughs, that is number of times the sensor value goes drastically down, and then up to achieve a down-up (bringing hand near the phone, and then taking it away) ...
0
votes
1
answer
96
views
I want to change the theme based on value getting from sensor manager . But i don't know the range of it .
@Override
public void onSensorChanged(SensorEvent event) {
if(event.sensor.getType() == Sensor.TYPE_LIGHT){
textLIGHT_reading.setText("LIGHT: " + event.values[0]);
}
}
Here i am ...
1
vote
0
answers
63
views
Time.sleep() zeroes photo resistor readings on Raspberry Pi
I have a Raspberry Pi 3 and a photoresistor, LEDs, resistors, breadboard etc. Now, I have observed a strange occurrence. When I run the following code all of the readings from the light sensor are ...