I2C problem in Arduino ZERO

Hi, I have a problem with the I2C communication in Arduino Zero and a Pressure sensor, and I don't know what can be. I have to mention that I already proved this sensor with an Arduino Uno and an ARM Microcontroller (ST) and it worked without problems.

Well I'm testing the communication with this program:

#include "Wire.h"
int i = 0;
byte c1[2];

void setup() {
Wire.begin();
//Wire.flush();
//Wire.onReceive(receiveEvent);
Serial.begin(115200);
delay(1000);
}

void loop() {
// put your main code here, to run repeatedly:
Wire.requestFrom(40,2);
while(Wire.available())
{
c1 = Wire.read();

  • i += 1;*
  • //Serial.print(c1); Serial.print("\t");*
  • }*
  • i=0;*
  • delay(100);*
  • Serial.print(c1[1]); Serial.print(":");*
  • Serial.println(c1[2]);*
    }
    When I test my circuit with an oscilloscope I see the first figure, hence I always read zero as pressure.

    However when I'm varying the pressure the response oscillate between the first and second figure, but no more changes and I read also zero.

    Please, anyone have an idea :slight_smile:

Please, anyone have an idea

You bet. There are stickies at the top of the forum. Read them now; you were supposed to read them BEFORE you blundered in here. Your code, I am positive, does NOT look like that. Fix it.

Do we have issues with Arduino Zero I2C dedicated pin? do they work?

I have connected the SDA and SCL pins from the board to the "Environment click PID: MIKROE-2467" board from MikroElektronika and I have no activity on the I2C bus.

I have tried to run the I2C scanner and the I2C scanner commences but after the message "scanning..."after that their is no further output?

The "Environment click PID: MIKROE-2467" board already has two 4.7k pull-ups on the board, I am not sure if I have to add additional pull-ups?

I am not sure do I have to connect the CS pin on the "Environment click PID: MIKROE-2467" board to VDDio to make it work with Arduino-zero?

As their is very poor or no documentation on Arduino-zero on the web so it do not help!

hope-fully someone can provide some help with this? Thanks in advance.

A