Go Down

Topic: Create Arduino Android accessories without writing Android code with Handbag... (Read 5302 times) previous topic - next topic

follower

Hi,

If you're interested in creating accessories for Android and the Open Accessory Protocol but don't have experience with developing Android apps then Handbag is for you:



If you can write a sketch for your Arduino, you can accessorize your Android with Handbag:

Code: [Select]
    Handbag.addLabel("Hello, World!", 20);
    Handbag.addButton("LED on/off", buttonCallback);


Handbag consists of an Arduino library and an app installed on your compatible Android device. (Requires Android 2.3.4 or 3.1 and the USB Host Shield.)



The library comes with a number of examples to help you get started including a "multimeter" demo:



Try it out and let me know what you think!

Thanks...

--Philip;

mem

nice, looks to be very handy!

Lets see if I can get hold if 2.3.4 capable device in the UK to try it.

Michael

sui

I'd love to test it as soon as I have 2.3.4 on my Galaxy S.

btw:
I'm really looking forward to "intelligent" docking stations which just open different apps automatically when plugged in. So when I plug (unplug) my phone in the car it should open (close) a navigation app and (de)activate GPS, at office it should open (close) a SIP client and in the bedroom it should (de)activate the flight mode.

follower


I'm really looking forward to "intelligent" docking stations which just open different apps automatically when plugged in.


I've always wondered how the Nexus One knows it's in a car dock--some systems use a magnet and switch.

What you propose seems plausible--there's a lot that can be done by passing "intents" around (Android speak for requests for certain actions to be performed by another application) and these could be triggered by plugging into an accessory-enabled dock. (I assume this is the approach the current "location-based trigger" apps use basing their choice on the GPS/WiFi location indicators.)

You might like to take a look at this example of starting a background service when an Android USB accessory is connected (as used in my dual-screen Nexus One project) for a possible approach to use.

--Philip;

kenfoe

@follower,

this might be an easy question for you, but how do I install the handbag app on my device (Nexus S)? I downloaded the .zip file, unpacked it an got a folder. There are two folders in it and three files. I connected my phone to my pc and copied the whole folder on the sd-card, but how to go on from that?

BR,
kenfoe

rauschgiftengel

#5
Sep 24, 2011, 11:28 pm Last Edit: Sep 24, 2011, 11:30 pm by rauschgiftengel Reason: 1
havn´t seen the app right now, but try to rename the zip file to apk ...  from app.zip to app.apk ...
the copy that to your device, use any explorer app and run it.
maybe it beginns installing the app.

i got this issue realy often when i downloaded apps ... first zip, renamed it, an finaly it is an installer ..


greets



*** tried it now, its a installer. just rename the zip to apk
Frühes Scheitern erspart weiteres Leiden :D

Dawai

Very neat application, I see it solving some issues here..

BUT, I can not get it to work, as of yet.. getting issues with the ide 1.0.5 version like "byte" is no longer a supported key word, AND acc type not declared..

Only a few weeks since programming my first arduino, so I am no expert.
(what I am attempting is a megasquirt EFI driven tachometer through arduino operating a 1960's mechanical cable driven tacometer)
Shadow-dash android app works, I really don't want a tablet stuck to my "very old moonshiner truck's dash"

Any help for a newbie, other than be stubborn and "Endeavor to persevere?"  (Chief Joseph quote)

Go Up