Sep 19, 2011

Interfacing Android with LEGO NXT: Compass

Here is another proof of concept I did to show Bluetooth communication between Android phone and NXT. I used the accelerometer and magnetic field sensors on the Android phone to calculate its compass heading, and used Bluetooth to send that information to the NXT. While this is not as stable as Brian Davis' Jenn Too, mostly due to magnetic interference from the NXT messing with the compass, it definitely shows the potential Android phones have acting as on-board sensors for autonomous robots.

Richard

14 comments:

Webstorms said...

Amazing! What did you program it in?

Robolab 2.9 said...

Hi Webstorms!
I used Eclipse, in combination with the Android SDK for the phone code, and Lejos NXJ for the robot code. NXT-G for the robot and the AppInventor are other easier alternatives that could be possible.

Richard

Webstorms said...

Great! Are you thinking of sharing your code? :D

Robolab 2.9 said...

That'd be no problem - I'd have to set up a website though. I could email it to you if you want - it's just two small Eclipse projects.

Richard

Webstorms said...

Thanks Richard! That would be great! My email address is webstorms@gmail.com

rubberpoach said...

Wow! Thats great!
Would you mind sending me the code too? :D
My email address is rubberpoach@googlemail.com

YagamiXXI said...

Hi, I used BricxCC to program the robot. I have problems with the program in Eclipse. Could you share your code with me please? My mail is fmenrique@gmail.com, thankyou so much

Adam said...

would it possible for you to also send me the code you've used to link your nxt brick and android phone together? my email is "adam@bonner.co" this would help me begin learning robotic development using android sensors muchly!

klaus said...

please send me the code.
hunzlhunzl@googlemail.com

fotoNU.dk said...

Please send me the code too.
supe001@yahoo.dk

Thomas Verelst said...

Hi,
I'm creating a project like this but I'm struggling with the Android app. Could you share your code? That'd be really helpful. My email: verelst_t@hotmail.com

Thomas

malu said...

hi,
i am trying to develop android program in eclipse. and i am new to android could you send me the code plz.. monishanova@gmail.com

malu said...

hi,
i am trying to develop android program in eclipse. and i am new to android coul yopu send me the code plz.. monishanova@gmail.com

Bayanaa said...
This comment has been removed by the author.
Related Posts Plugin for WordPress, Blogger...