Wow, interesting project. Not sure how I missed this post.

I don't know the answer to your situation specifically, but would love to hear how it goes! I do have some info to offer about the broader topic though.

Using sleep states, the Atmel AVR chips can go extremely low-power. My brother put together a board that collected GPS coordinates for a trip to Africa, and ran for 3 weeks off 4x AA batteries collecting a coordinate every few minutes and writing it to a SD card. I use those same Atmel chips in my DeLorean dashboard project, using the boards from https://www.pjrc.com/teensy/. Power savings have never been my focus, but that board is basically just the main chip plus a crystal and various caps and resistors, so I would assume it can get the same savings in a sleep state.

(Hrm, looks like PJRC doesn't sell the AVR boards anymore, only 32-bit ARM, but still Arduino compatible... wonder how the power savings works on those larger chips? 3.3V probably helps)

Anyway, those boards are entirely powered by the USB of a normal PC, and I would assume can also be powered by a phone. But, what you probably want is a powered USB hub anyway, to charge both phone and board. On a PC I program them to show up as a USB Serial device, and Linux (and Windows) have this driver built-in, but I don't know if it would be on Android by default.

If that works, you just need any language on Android that can write a serial device. I've never tried Perl on Android, but assume it would work fine for the serial device. The harder question is whether Perl could touch any of the APIs for exchanging SMS.


In reply to Re: [OT] Smartphone IO interface: how to control motors and read sensors by NERDVANA
in thread [OT] Smartphone IO interface: how to control motors and read sensors by bliako

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.