Michael
Michael

Reputation: 1

Can't read from VEML6030 (or only get 0x0000) via I²C using Renesas r5F104GK

My problem: I have connected a VEML6030 (Ambient Light Sensor from Vishay) to my µC. If I want to read this sensor, I only get 0x0000 as an answer.

I'm programming in c on a Renesas r5F104GK. I used Applilet as a code generator.

I have the data sheet and an application note as documentation. I have also already spent days searching online - unfortunately unsuccessful so far.

I also have a Lis3DH sensor on my PCB, which is connected to the same I²C bus. I can separate both components from the bus with a jumper.

What I have already achieved:

If I try to read output, I only get 0x000: Output

During the tests I am sure that only the VEML6030 is contacted.

I would be very happy if someone here could share their experience with the VEML6030 and, if necessary, have a tip on what I'm doing wrong.

In the end, I'm sure that the problem is in front of the monitor ;)

Update (@Lundin)

  1. How can I move my ticket to electronics.stackexchange.com?
  2. Unfortunately I can only publish a part of the schematic

2.1) SDA & SCL have got 10k Pullups

2.2) SDA is connected to µC Pin 18 (P14/RxD2/SI20/SDA20/TRDIOD0/(SCLA0))

2.3) SCL is connected to µC Pin 17 (P15/PCLBUZ1/SCK20/SCL20/TRDIOB0/(SDAA0))

2.4) INT is connected to µC Pin 36 (P140/PCLBUZ0/INTP6)

The Connector at ADDR is just used to get the correct footprint on the PCB. In real it is a Jumper with 3 pins.

P.S.: Solved Communication enter image description here

Upvotes: 0

Views: 181

Answers (1)

Michael
Michael

Reputation: 1

I hope this is the correct way now.

My problem is solved.

I've to send only a "Start".

Upvotes: 0

Related Questions