Friday, July 11, 2014

Project Io first working version

First working version of the Project Io is working:

  • The Android applications has the basics working
    • Allows to search for paired bluetooth devices
    • Connects to a paired bluetooth devices
    • Has a single host template: "SwitchesOnly", which can receive, from the arduino host, a list of switches and allows the user to turn them on/off, sending the respective commands to the host.
  • The arduino host framework can deal with:
    • Client bluetooth Connecting / disconnecting (including sofware handshake / hangup)
    • Receive and process switch status changes (turn on/ off LEDs, relays and anything with just two states)
Considering a real case, at this stage of development it is possible to use it, for example, to control all the lights of a house or a room, since the android is in range of the bluetooth module connected to the arduino.

Below some pictures I took from my phone with the android app runningon it, and a protoshield with a bluetooth JY-MCU module and 2 LEDs plugged on an arduino UNO board.




Note that the app window title, the amount of switches and the switches labels are not hardcoded on the android application itself but, they are comming from the arduino host application, during the handshake stage of the communication.

As soon as I can get rid of some small bugs the android application still has, I will publish it on the Google Play and, the instructions about how to setup the android host (plus the android program files) I will publish on the Project Io page.