VEML6070 I2C problems in reading (CYBLE 222014)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
NIFR_4499596
Level 2
Level 2
Welcome! 5 replies posted First question asked

Hi everybody,

I'm working on CYBLE222014, to read data from an UV sensor from Vishay (VEML6070). This sensor has one write register(0x70>>1) and two read register(0x71>>1 and 0x73>>1), for UV MSB and LSB. In the  datasheet they say to inizialize the sensor with 2 step: first read ACK register(0x18>>1) and second write 0x06 in write register(0x70>>1); than you can read the UV value from the 2 registers, but if i run my code i read only 0x0000. I think i make a mistake in the read function, but I checked many times and seems OK.

Any idea to solve?

Best Regards

Francesco

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Briefly reading your I2C_Utils are doing more complicated things than mine.

By any chance, can you modify my program to use the slave_address of your sensor and register command?

Or use some blank project with my i2c_utils.c/h just set slave_address to your sensor and call read_reg,

since VEML_6075 and VEML_6070 sound quite close, those utilities may work.

Then you can compare functions for difference(s).

moto

View solution in original post

0 Likes
11 Replies