I recently bought the I2C level converters,bar30 pressure and temperature sensors from your website.I tried to use them together and my setup was like you stated in the documentation.
After uploading example code , I get extremely big values.As I searched from the forum , that values means that the sensor is not communicating with the Arduino.I know the sensors aren’t damaged, so what is wrong in this setup ?
It sounds like you are doing everything right Just to confirm, can you please take a picture of your setup, including the boards and where everything is plugged in?
Can you also please try using the following code instead?
@jwalser I tried another jumpers , it doesn’t change anything.I don’t have a multimeter right now, I think there is a problem with the plug-in side.When I use the external pins nearby the plug-in side ,sensor works just fine.But when i plug the sensor it stops working.I have 2 I2C converters , both are the same
.
The DF13 connectors can be quite tight. Are you sure you are plugging in the sensors all the way? The top boss of the plug should be flush with the top of the socket. If the sensors are working fine on the pins, then it sounds like both the sensors and the level converters are working fine.
If the DF13 connector doesn’t work due to a bad solder joint, then we definitely want to get that fixed for you! Can you please post a close up picture of of the base of the connector where the solder joints are? Can you see a bad connection there? Can you also post a picture of the connector when a sensor is plugged in from the side so we can confirm it is going in all they way? I want to cover all bases as it it quite odd that both of your level converters have the same issue.
I have the same problem. My connection is the same as yours and I used a Arduino Mega.
I have the same reading as well. I am really confused about the connection from the I2C converter to the arduino. How can I assign to my own analog pins?
It cannot be connected to any analog pins because I2C is a digital communication protocol. If you have a chance, please post a few pictures of how you have it connected and we can help out.
Okay, the solder joints seem fine. I’m trying to figure out why the level converter is working fine when the sensor is connected through the pins, and not the DF13 connector. When you tested on the pins, how did you connect the sensor to the pins? If you pushed up a standard header pin on a jumper wires into the sensor DF13 connector, it may have widened the contact which prevents it from making a good connection in a DF13 connector now.
I used jumper wires just as you described , but before that I plugged-in both sensors to DF13 connectors and they didn’t work…So I don’t think contact pointrs are the reason.Thanks.