wallage
Posts: 5
Joined: Fri Nov 02, 2012 9:29 am

trouble communicating with T6703 sensor using I2C

Thu Feb 06, 2020 12:23 pm

I am trying to measure the CO2 level within a room using my Rpy 3 and a T6703 sensor.
The Rpy is running "windows 10 core IOT". I have written a simple program to initiate the communication with the sensor on the I2C bus.
The Rpy and sensor are connected using a level shifter pcb specifically for the I2C interface.
the levels in the blue graph are roughly 0.15V and 4.96V. the brown graph is the digital representation.
I also have a honeywell temperature and humidity sensor connected and that is working fine.

I keep getting the exception "Slave address was not acknowledged." and communication is failing.

i have the c# code attached.

i also attached a file with the waveform on the pins of the sensor. The levels and command look OK.
T6703 I2C.jpg
T6703 I2C.jpg (40.72 KiB) Viewed 618 times
Anyone has a solution how to solve this problem?
Attachments
MainPage.xaml.cs.zip
(1.08 KiB) Downloaded 27 times

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: trouble communicating with T6703 sensor using I2C

Thu Feb 06, 2020 12:43 pm

Does it work if you use plain Raspbian rather than the less than well supported Windows 10 IoT?

Try posting your question on https://social.msdn.microsoft.com/Forum ... WindowsIoT
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

wallage
Posts: 5
Joined: Fri Nov 02, 2012 9:29 am

Re: trouble communicating with T6703 sensor using I2C

Thu Feb 06, 2020 2:39 pm

I have not as much experience in writing gui apps in c and c++. Therefor c# is much more convinient. Also I can perfectly communicate with the honeywell sensor.

wallage
Posts: 5
Joined: Fri Nov 02, 2012 9:29 am

Re: trouble communicating with T6703 sensor using I2C

Fri Feb 07, 2020 2:49 pm

thanks for the effort to help.
I found another datasheet on the web which specified the correct method to put the device in I2C mode.
Now it is working great.

Return to “Windows 10 for IoT”