ADK Update: Accesory Driver published on Android Market

26 views
Skip to first unread message

Vadim Tkachenko

unread,
May 15, 2012, 9:34:11 PM5/15/12
to home-clima...@googlegroups.com

Vadim Tkachenko

unread,
Aug 6, 2012, 12:38:37 AM8/6/12
to home-clima...@googlegroups.com
Hello John,

> Correct me if i'm wrong, but do you have this limited to certain devices? I
> have cm7 installed on my droid1 and HCC accessory doesn't appear in Play and
> when i open play from a browser it claims my phone isn't compatible.

Not that *I* restrict it. I've specified the
android.hardware.usb.accessory permission, the rest is Google Play's
doing.

Let me know if you want me to send the APK off the list so you can
check whether it works. I've seen numerous reports confirming and
denying compatibility, I guess the only way to find out is to try. A
telltale sign is when it blows up with "shared library missing" error.

> And also since this is my first post in this group, Hello World.

Welcome to the club :)

> I live in Arizona, have 2 refrigeration units with reversing valves for a 2500 sq ft
> single story house with 3 beds, 3 baths, 2 living rooms, a kitchen, and a
> small dining area that is going to be the dogs pen.

Ideal setup for a multizone system. Do you have implementation plan in mind yet?

--vt

John Triolo

unread,
Aug 6, 2012, 1:01:26 AM8/6/12
to home-clima...@googlegroups.com
I was afraid you'd say that. I may have to compile cm7 myself and have that accessory flag set. I hope not. Worth a try to not, so go ahead and send me the .apk.

I have ample attic space, and a small work area meant for working on the evaporator part of the refrigeration units is a perfect place for controls. I'm trying to use my d1, but i may break down and just get a borked up used nexus s with a bad esn off eBay if it gives me too much hassle. If I can I'm going to get the d1 to work so i can feel like i contributed something(many people have d1s that they no longer use). I already have the mega adk, and plan on getting getting the sainsmart 8relay module($15),  and give it a separate power supply but marry the grounds, since there are plenty of cheap 5v 2a powersupplies on amazon. I have no idea what I'm going to use for dampers, all of the schematics point at using servos, but not what they connect to.

I really only need like 5 zones. Each bedroom and its associated bathroom can count as one. If the humidity goes up in the bathroom i want to bottle the bathroom up because if taking a shower, not only do I not need to spread the humidity/heat, but its nice to get out of a hot shower into a hot bathroom. The 2 livingrooms are really like a split great room, both units feed that room and in fact both units are required to run to keep that room nice in the more extreme months. So probably a way to send the bulk of both units to the living room when conditions require would be good. As far as temperature settings, screw the living rooms and the bathrooms after ten(unless i specify otherwise through the app, thanks again) just make the bedrooms comfy. During the day have relatively relaxed bands higher temperature than at night to save electricity. An outside humidity/temperature sensor for trending on the remote control app and thats pretty much my plan.

Thanks again for all the work you put into this. You should set yourself up a beer fund or a charity or something.

Vadim Tkachenko

unread,
Aug 6, 2012, 3:38:03 PM8/6/12
to home-clima...@googlegroups.com
Hello John,

> I was afraid you'd say that. I may have to compile cm7 myself and have that
> accessory flag set. I hope not. Worth a try to not, so go ahead and send me
> the .apk.

Sent. Look for the message with "HCC Accessory Driver rev. 1108"
subject, might end up in spam.

If it doesn't work with CM7, you might want to try CM8 and up.

> I have ample attic space, and a small work area meant for working on the
> evaporator part of the refrigeration units is a perfect place for controls.
> I'm trying to use my d1, but i may break down and just get a borked up used
> nexus s with a bad esn off eBay if it gives me too much hassle.

Actually, Nexus 7 might be a perfect choice for that - cheaper than
the phone (don't know how much they go for on eBay, though), bigger
screen. Or, I know that there's a whole slew of cheap Chinese tablets
that can run CM.

> I already have the mega adk, and plan on getting getting the sainsmart 8relay module($15),

Link?

> and give it a separate power supply but marry the grounds, since there are plenty of cheap
> 5v 2a powersupplies on amazon.

Yes, you definitely need separate power - stock Arduino 1A PSU is no
good for anything more than one servo.

> I have no idea what I'm going to use for
> dampers, all of the schematics point at using servos, but not what they
> connect to.

One possible design is here:
http://diy-zoning.sourceforge.net/Homeowners/teasers.html, here's a
SketchUp file for it:
http://sketchup.google.com/3dwarehouse/details?mid=e47cba94c63ae069bc89d02e4c068dbe

There are other designs as well - search in this forum's archive.
Also, keep in mind that you can control ready made bang-bang dampers
with relays.

> I really only need like 5 zones.

You know, everyone who comes in says that :) You *can* have much more than that.

> Each bedroom and its associated bathroom
> can count as one. If the humidity goes up in the bathroom i want to bottle
> the bathroom up because if taking a shower, not only do I not need to spread
> the humidity/heat, but its nice to get out of a hot shower into a hot
> bathroom.

DZ can be used as humidifier/dehumidifier, too.

> The 2 livingrooms are really like a split great room, both units
> feed that room and in fact both units are required to run to keep that room
> nice in the more extreme months. So probably a way to send the bulk of both
> units to the living room when conditions require would be good.

This is going to be a bit tricky - you can use one shared sensor for
both units, or you can use two. In my setup, there's something
similar, and one unit ends up as a master and the other as a slave, so
you'll actually have a choice which one you want to run more often -
just adjust the setpoint a little bit for now. More in the pipeline.

> As far as temperature settings, screw the living rooms and the bathrooms after
> ten

Be aware that the scheduler is not yet available in Android version,
only Java. The remote control app is compatible with both.

> (unless i specify otherwise through the app, thanks again) just make the
> bedrooms comfy. During the day have relatively relaxed bands higher
> temperature than at night to save electricity. An outside
> humidity/temperature sensor for trending on the remote control app

You can do much more than that. Don't know what part of Arizona you're
in, but in Phoenix Valley you can use outdoor air for heating and
cooling for about FOUR MONTHS. All you need is a fan pumping air in
and out, or a contraption to open and close windows - both controlled
via simple relay.

> Thanks again for all the work you put into this. You should set yourself up
> a beer fund or a charity or something.

Actually, there is one
(http://diy-zoning.sourceforge.net/Miscellaneous/donations.html), but
I'd say that in 10 years since project inception it brought less than
a few days of my work :D

--vt

John Triolo

unread,
Aug 6, 2012, 11:10:58 PM8/6/12
to home-clima...@googlegroups.com


On Monday, August 6, 2012 12:38:03 PM UTC-7, Vadim Tkachenko wrote:

Actually, Nexus 7 might be a perfect choice for that - cheaper than
the phone (don't know how much they go for on eBay, though), bigger
screen. Or, I know that there's a whole slew of cheap Chinese tablets
that can run CM.
I thought you were sayin jellybean broke your adk compatibility? 


 
Link?
well, hell, the price is running all over the place. up to $20 now, but free shipping. Link 


 
Yes, you definitely need separate power - stock Arduino 1A PSU is no
good for anything more than one servo.
I guess 9v 1a would be good then, but i worry because android draws 500ma when charging, and mega adk says there is a "fuse" that will make sure it doesn't draw more. I guess 1.5a would be ideal
Well, each of my zones has multiple registers, so i was thinking like this 
so i could have it in the attic, and inline with the flexible ducts so i wouldn't have to worry about noise. seeing how steep those


 
DZ can be used as humidifier/dehumidifier, too.
I don't really need a dehumidifier, I just want to isolate the bathroom when taking a shower.


 
Be aware that the scheduler is not yet available in Android version,
only Java. The remote control app is compatible with both.

> (unless i specify otherwise through the app, thanks again) just make the
> bedrooms comfy. During the day have relatively relaxed bands higher
> temperature than at night to save electricity. An outside
> humidity/temperature sensor for trending on the remote control app

You can do much more than that. Don't know what part of Arizona you're
in, but in Phoenix Valley you can use outdoor air for heating and
cooling for about FOUR MONTHS. All you need is a fan pumping air in
and out, or a contraption to open and close windows - both controlled
via simple relay.
My work buddy has what he calls an air cycler, which to me just sounds like he's phobic of air that has lost its freshness. Some sort of outside air intake with a good sealing damper would be beneficial in the few months the outside is livable. Thanks for the idea.

Vadim Tkachenko

unread,
Aug 7, 2012, 12:30:35 AM8/7/12
to home-clima...@googlegroups.com
Hello John,

>> Actually, Nexus 7 might be a perfect choice for that - cheaper than
>> the phone (don't know how much they go for on eBay, though), bigger
>> screen. Or, I know that there's a whole slew of cheap Chinese tablets
>> that can run CM.
>
> I thought you were sayin jellybean broke your adk compatibility?

For now :) Like I said, it's perfectly clear what needs to be done
(compile the accessory against release_20120606 and not adk_0512),
it's just the matter of time till I get to it.

>> Yes, you definitely need separate power - stock Arduino 1A PSU is no
>> good for anything more than one servo.
>
> I guess 9v 1a would be good then,

Nope. That's the stock Arduino PSU. I haven't tried to tap the 9V
itself, though, just the regulated 5V off the Mega ADK board.

> but i worry because android draws 500ma
> when charging, and mega adk says there is a "fuse" that will make sure it
> doesn't draw more. I guess 1.5a would be ideal

I took a separate 5V, 1A PSU - and it works like a charm.

>> One possible design is here:
>> http://diy-zoning.sourceforge.net/Homeowners/teasers.html, here's a
>> SketchUp file for it:
>>
>> http://sketchup.google.com/3dwarehouse/details?mid=e47cba94c63ae069bc89d02e4c068dbe
>
> Well, each of my zones has multiple registers, so i was thinking like this
> so i could have it in the attic, and inline with the flexible ducts so i
> wouldn't have to worry about noise. seeing how steep those

You can connect more than one register to the same zone. There's a
hardware solution (Y harness), but that won't give you an ability to
calibrate them separetely. There is also a piece of DZ that does the
same thing.

> My work buddy has what he calls an air cycler, which to me just sounds like
> he's phobic of air that has lost its freshness.

He's got a point, look at IAQ FAQs.

> Some sort of outside air
> intake with a good sealing damper would be beneficial in the few months the
> outside is livable. Thanks for the idea.

When you get to implementing it, let me know. I'm procrastinating with
this for a few years now, just opening doors and windows by hand.
Tired of it already.

--vt

John Triolo

unread,
Aug 11, 2012, 11:17:41 PM8/11/12
to home-clima...@googlegroups.com
A thought I had.. if I'm going to put in outside air intake, why not put a swamp cooler out there with it. If I don't want the swampiness just leave the water pump off.. I have room in a closet I could use for running a duct outside to a ground level swamp cooler. Probably aught to have two though.. probably a project for next summer.
Reply all
Reply to author
Forward
0 new messages