Pages: [1]   Go Down
Author Topic: ADJD-S311 Color sensor problem  (Read 745 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Yesterday I posted a topic regarding a program in the program section. The subject of that topic moved onto the sensory. I feel compelled to continue this on this category.

I've just recently bought an ADJD-S311 color sensor. The problem is when the connections are made with the Arduino throughout I2C.When the Arduino is turned on with the bildr/sparkfun sketch, it stops when it says "Calibrating! This may take a while"/"Init". It's a common problem as I have seen.

I'm asking the other persons who have encountered the same problem, to post here, to share their solution, if they think so and if they think it's important.

Hope for more,
RobertEagle
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, c'mon. Is there anybody who hadn't had any problem with this sensor? I mean, there would be pretty much hours to rebuild the whole library.
Logged

Aachen
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which Arduino type are you using? The exact pin assignment for I²C connections varies depending on the board. The Uno has them on A4 and A5 as far as I know, while the Mega uses D20 and D21 (which are also explicitly labelled as SDA and SCL).

Did you connect the sensor directly or using the Sparkfun breakout board? When I tried to use it, I got the impression that connecting the Sleep and ExtClk pins (even without actually using them) causes malfunctions in the sensor (it got very hot very quickly).

You might also want to have a look at my code (https://adjdcolourarduino.codeplex.com/). After unsuccessfully trying to adapt one of the examples I found online to my existing code, I decided to start over, and included quite a few (mostly uncommented, sorry) functions that might make the ADJD-S311 easier to use.
Logged

Pages: [1]   Go Up
Jump to: