Physicaloid

Feed Rss

Physicaloid : Physical computing with a smartphone

Physicaloid is a software and hardware open-source project for accelerating “Internet Of Things” (IoT) startups and hobbyist prototypes.
We would like the startups to be exciting.
We think the shape of IoT is a combination of smartphone and sensors.
So we are going to provide a smartphone application library and reference hardware.

Physicaloid boards
We launched a PocketDuino indiegogo campaign.
PocketDuino – Innovation from your pocket
http://igg.me/at/PocketDuino/
And we will exhibit it at Maker Faire Bay Area 2014.
PocketDuinoForAndroidPhysicalComputingHalf

Physicaloid FPGA PERIDOT borad : We will exhibit it at Maker Faire Bay Area 2014.
1402195_318822624926184_1712989543_o

Physicaloid Library
Android Library for communicating with physical-computing boards (e.g.Arduino, mbed)

Download from github

Code example
Upload a firmware from Android to Arduino

Physicaloid mPhysicaloid = new Physicaloid(this);
mPhysicaloid.upload(Boards.ARDUINO_UNO, "/sdcard/arduino/Blink.uno.hex");

Upload a firmware from Android to Arduino (assets file)

Physicaloid mPhysicaloid = new Physicaloid(this);
mPhysicaloid.upload(Boards.ARDUINO_UNO, getResources().getAssets().open("Blink.uno.hex"));

Write to Arduino

Physicaloid mPhysicaloid = new Physicaloid(this);
if(mPhysicaloid.open()) {
    byte[] buf = "moemoe".getBytes();
    mPhysicaloid.write(buf, buf.length);
    mPhysicaloid.close()
}

Read from Arduino

Physicaloid mPhysicaloid = new Physicaloid(this);
TextView TextView1 = (TextView) findViewById(R.id.TextView1);// Android TextView

if(mPhysicaloid.open()) {
    byte[] buf = new byte[256];

    mPhysicaloid.read(buf, buf.length);

    TextView1.append(new String(buf));

    mPhysicaloid.close();
}

Features
Users do not need to download an Arduino sketch from a web site.

physicaloid_download

You (developer) can include Arduino firmwares in your Android app and upload to Google Play.

physicaloid_upload

  • Android Java library project
  • open-source(Apache License 2.0)
  • support on Android 3.1 or higher (need USB Host API feature)
  • does not require ROOT
  • support writing firmware protocol : STK500, STK500V2
  • support USB-Serial protocol : CDC-ACM

How to use

File -> import and select a PhysicaloidLibrary directory.
Right click your project -> Properties -> Android -> click Library’s “Add” button -> select PhysicaloidLibrary

Applications

Android USB Serial Monitor Lite : is a serial monitor for Arduino, mbed and so on.

Physicaloid Writer : is an Arduino sketch’s hex writer on Android.

Special Thanks

This code has built in knowledge of avrdude. Thanks to all avrdude coders.

License

Physicaloid Library is released under the Apache License, Version 2.0.

Comments are closed.