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
2 senors - 2 problems
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: 2 senors - 2 problems
Could you attach your actual code and how you have everything hooked up? does the MPL115A2 pressure sensor work? What errors do you get?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2 senors - 2 problems
Also post clear, detailed pictures of both sides of the boards
- unic8
- Posts: 13
- Joined: Tue Sep 17, 2013 5:24 pm
Re: 2 senors - 2 problems
Hi,
Both sensors from upside
Both sensors from downside
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
Temperature sensor
Code
https://github.com/adafruit/Adafruit_MP ... r/examples
Serial output
Can you figure out what seems to be wrong?
Thanks!
Erik
Both sensors from upside
Both sensors from downside
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
...
Thanks!
Erik
- Attachments
-
- sensors.zip
- sensors setup
- (881.87 KiB) Downloaded 22 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2 senors - 2 problems
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
http://arduino.cc/en/Main/ArduinoBoardY ... ArduinoYUN
Try pins 2 & 3 for SDA/SCL.TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library.
- unic8
- Posts: 13
- Joined: Tue Sep 17, 2013 5:24 pm
Re: 2 senors - 2 problems
I just missed that point. Thank you!adafruit_support_bill wrote:Try pins 2 & 3 for SDA/SCL.
Nevertheless both sensors are not working on pins 2 & 3.
I get the same output on serial console.
Any further ideas? Thanks!
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2 senors - 2 problems
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)
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)
- unic8
- Posts: 13
- Joined: Tue Sep 17, 2013 5:24 pm
Re: 2 senors - 2 problems
You made my day!!!adafruit_support_bill wrote:Just to be clear, that's digital 2 & 3, not analog 2 & 3.
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
Please be positive and constructive with your questions and comments.