Tini connected by I2c to CMPS03 Compass
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ole_Lindbjerg
Posted On:   Tuesday, July 19, 2005 02:28 AM

I2C connection



At http://www.robot-electronics.co.uk/htm/cmps3doc.shtml I
found a compass and fhave tried to connect it to My
Tini without any luck. The PWM is to fast for the Tini
when using Java, but the I2C connection seemed to have
the resolution I needed.

I do not have a scope, so I'm not able to se what
happens on the bus, but with my multimeter I can se
that something happens.

I'm using 2 4K7 pull up for the lines, and testing on

a TutorLite board.

Any help apreciated.

Ole

Re: Tini connected by I2c to CMPS03 Compass

Posted By:   Ole_Lindbjerg  
Posted On:   Wednesday, July 20, 2005 04:32 AM

Hi

I found the answer myselves, which actually was a
mistake. Java's byte primitive is signed, and
therefore I send the I2C slave device a wrong address.



Problem solved



Happy summer

Ole

About | Sitemap | Contact