2 senors - 2 problems

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
unic8
 
Posts: 13
Joined: Tue Sep 17, 2013 5:24 pm

2 senors - 2 problems

Post by unic8 »

Hi there,

I'm new to this community and hopefully someone can help me out of this.
My experience in soldering of electronic devices is not that bad and luckily I'm a software developer.

Today my ordered sensors from adafruit were delivered:

1x MAX4466 (Microphone) - WORKS PERFECTLY
1x MPL115A2 (Temperature) - NOT WORKING
1x TSL2561 (Light - digital) - NOT WORKING

The 2 last sensors were tested with the original example codes and instructions how to wire it all up.

SCL to analog 5
SDA to analog 4
VDD to 3.3V DC
GROUND to common ground

I can't believe that both sensors seem to be defective. Could that be, really?
Any help is much appreciated!

Erik

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: 2 senors - 2 problems

Post by Franklin97355 »

Could you attach your actual code and how you have everything hooked up? does the MPL115A2 pressure sensor work? What errors do you get?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2 senors - 2 problems

Post by adafruit_support_rick »

Also post clear, detailed pictures of both sides of the boards

User avatar
unic8
 
Posts: 13
Joined: Tue Sep 17, 2013 5:24 pm

Re: 2 senors - 2 problems

Post by unic8 »

Hi,

Both sensors from upside
Both sensors from upside
Both sensors from upside
IMG_20130918_094326.jpg (200.1 KiB) Viewed 623 times
Both sensors from downside
Both sensors from downside
Both sensors from downside
IMG_20130918_094026.jpg (212.86 KiB) Viewed 623 times
I've also attached 6 images of the complete setup (wired) with each of the sensor.
As already mentioned I use the example codes from Adafruit github repo to test the sensors.

Luminosity sensor

Code
https://github.com/adafruit/Adafruit_TS ... r/examples

Serial output

Code: Select all

Sensor overload
Sensor overload
Sensor overload
...

Temperature sensor

Code
https://github.com/adafruit/Adafruit_MP ... r/examples

Serial output

Code: Select all

Pressure (kPa): 309.7104 kPa
Temp (*C): -73.1 *C
Pressure (kPa): 309.7104 kPa
Temp (*C): -73.1 *C
Pressure (kPa): 309.7104 kPa
Temp (*C): -73.1 *C
...
Can you figure out what seems to be wrong?
Thanks!

Erik
Attachments
sensors.zip
sensors setup
(881.87 KiB) Downloaded 22 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: 2 senors - 2 problems

Post by adafruit_support_bill »

From your photos, I see you are using a Yun. I haven't tested these with a Yun, but from the documentation it looks like the SDA/SCL pins are different from the Uno:
http://arduino.cc/en/Main/ArduinoBoardY ... ArduinoYUN
TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library.
Try pins 2 & 3 for SDA/SCL.

User avatar
unic8
 
Posts: 13
Joined: Tue Sep 17, 2013 5:24 pm

Re: 2 senors - 2 problems

Post by unic8 »

adafruit_support_bill wrote:Try pins 2 & 3 for SDA/SCL.
I just missed that point. Thank you!

Nevertheless both sensors are not working on pins 2 & 3.
I get the same output on serial console.

Any further ideas? Thanks!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: 2 senors - 2 problems

Post by adafruit_support_bill »

Just to be clear, that's digital 2 & 3, not analog 2 & 3.
The Yun uses a 32U4 processor, so its pinout is similar to the Leonardo. It should also have SDA & SCL on the R3-standard header pins (upper left on the photo below)

Image

User avatar
unic8
 
Posts: 13
Joined: Tue Sep 17, 2013 5:24 pm

Re: 2 senors - 2 problems

Post by unic8 »

adafruit_support_bill wrote:Just to be clear, that's digital 2 & 3, not analog 2 & 3.
You made my day!!!

I'm totally new to the I2C topic, seems that I've to read a lot more about that.
Thank you so much and have a great day!

Already ordered some more Adafruit products and will be shipped tomorrow.
Can't wait for it, you guys really rock!

Greetings from Germany

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”