- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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