AnsweredAssumed Answered

I2C JN5169 to Raspberry Pi

Question asked by Matthew Wood on Sep 26, 2019
Latest reply on Oct 2, 2019 by Sebastian Delrio

Hello,

 

   I am trying to use the Raspberry Pi to detect a PCB board that i have had made. The PCB as on it the JN5169 NXP Microcontroller and all the components to make it funtion. I have attached a cable that consist of 3 wires. 1st wire is SDA, 2nd wire is SCL and the 3rd wire is a common GND wire. I have attached the SDA and SCL to the output pins of the JN5169 (DIO14 - SDA and DIO15 - SCL) solder pads on my PCB board. The GND wire is attached to a GND pad that i have applied on th PCB Board. At the Raspberry Pi end i have taken the SDA wire of the cable and attached it to Pin3 on the Raspberry Pi header pins, the SCL Wire of the cable is attached to Pin5 and the GND wire is attached to Pin6. I have also added two 4.7k ohm resistors on the SDA and SCL wires for the pull up resistors to VCC 3.3v. I have eneabled the i2c on the Raspberry Pi and run the command "i2cdetect -y 1" in the Terminal window.

I am not detecting the JN5169 PCB board. See printout below:

 

pi@StrainSensorPi:~ $ i2cdetect -y 1

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --

 

I have tested the Raspberry pi out with an ADXL345 board and that gets detected (address 0x53). See printout below:

 

pi@StrainSensorPi:~ $ i2cdetect -y 1

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --

 

Do i need to enable anything in my code i2c for example for the Raspberry Pi to see it or should it be always enabled to communicate over i2c?

 

Regards

 

Matthew

Outcomes