Wednesday, September 29, 2010

Published with Blogger-droid v1.4.8

Thursday, September 23, 2010

Andy's.

Published with Blogger-droid v1.4.8

Lab Mascot

Published with Blogger-droid v1.4.8

Tuesday, September 14, 2010

Android has a conversation with Arduino over Bluetooth

Here's a video exhibiting 2-way communication between an Android phone and an Arduino microcontroller.

Setup is as follows:
  • Arduino --> Android:
    Passive Infrared (PIR) sensor is hooked up to Arduino with code providing logic for MotionBegan and MotionEnded events. These events are forwarded to an Android device and trigger a background color change for a view area to cyan upon MotionBegan and and black upon MotionEnded.

  • Android --> Arduino:
    ON / OFF button in Android app triggers event passed to Arduino that toggles the state of a red LED.


Code for the inter-device communication was made possible by a slightly modified version of the awesome Amarino library by Bonifaz Kaufmann. Most of the PIR logic code was drawn from the example here. The complete source for this and our other projects is located at our GitHub repo.

Coming soon: GroundStation Computer <--> Android <--> Arduino