Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Simplest of SL4A microbridge examples
bandit
Administrator
Posts: 321
Permalink
Post Simplest of SL4A microbridge examples
on: June 7, 2012, 12:03
Quote

Subject: [New post] Simplest of SL4A microbridge examples
From: "Hack a Day" <donotreply@wordpress.com>
Date: Thu, 7 June, 2012 10:01 am

Post : Simplest of SL4A microbridge examples
URL : http://hackaday.com/2012/06/07/simplest-of-sl4a-microbridge-examples/
Posted : June 7, 2012 at 9:01 am
Author : Mike Szczys
Tags : microbridge, python, sl4a
Categories : android hacks, arduino hacks

http://hackadaycom.files.wordpress.com/2012/06/simple-sl4a-example.jpg

We're familiar with the daunting task of sifting through mountains of code in hopes you can learn how something works. So when a simple example like this SL4A LED toggle (https://github.com/makotomiy/python-microbridge) comes along we're thankful for the trimmed fat. If you're looking to use an Android device to control your Arduino hardware this will be huge shove in the right direction.

The microbridge (http://hackaday.com/2011/05/13/using-googles-adk-on-standard-arduino-hardware/) is used to get the Arduino talking with the Android phone. It involves a USB host shield that lets you connect the two devices via a USB cable. With the USB debugging enabled on the phone, you can use Scripting Layer for Android (http://code.google.com/p/android-scripting/) as a user interface. In this case, a set of Python scripts builds the button and readout seen on the screen above. They also handle sending and receiving commands based on user input. This means you don't really need to know anything about Android development. We think it would be a great way to get your project through the development stages, and you could learn to write a traditional App (http://hackaday.com/2010/07/12/android-development-101-%E2%80%93-a-tutorial-series/) later on.

Read more of this post (http://hackaday.com/2012/06/07/simplest-of-sl4a-microbridge-examples/#more-76426)

Add a comment to this post: http://hackaday.com/2012/06/07/simplest-of-sl4a-microbridge-examples/#respond

--
WordPress.com | Thanks for flying with WordPress!

Image

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.015 seconds.

 

Comments are closed.