Archive for May, 2010


Arduino Bluetooth

Monday, May 10th, 2010
This past Friday, Ben hosted our third “Hackathon” event where we get together and write Android applications.  In this case, however, we also had some Arduino code to write since the application we were creating did two way communications between an Android phone and Arduino with BLUESMIRF bluetooth module.
Tips:
  1. Make sure to reverse the TX and RX pin connections when connecting the Arduino to the BLUESMIRF module
  2. Watch out for sample Arduino Mega code online– the plain Jane ATMEGA128 or 328 based boards only have one serial port (Serial), whereas the Mega boards have multiple ports (Serial1,Serial2).
Here is a collection of handy links:
  • Arduino Bluetooth Tutorial:

    http://www.arduino.cc/playground/Learning/Tutorial01

  • Interrupts:

    http://www.arduino.cc/en/Reference/AttachInterrupt

  • Arduino Serial available():

    http://arduino.cc/en/Serial/Available

  • Serial read():

    http://arduino.cc/en/Serial/Read

  • Serial println():

    http://arduino.cc/en/Serial/Println

High Level Home Automation Standards

Monday, May 3rd, 2010

For some time now, I’ve contemplated the possibilities of smarter home automation.  There’s a lot of focus on low level protocols for home automation– X10, ZigBee, etc.  These are often called “high level” protocols, which they sort of are from the point of view of, say, an electrical engineer.  But they’re not high level for a software architect point of view.

What I’m thinking about is something like DeviceNet for the PLCs used in manufacturing equipment, or  SNMP for networking equipment, or JMX for application servers.  These standards focus on exposing to management software various variables that are readable or configurable on each device.  With SNMP, applications can post statistics to the SNMP daemon running on a network router and then an administrator can monitor the device and adjust settings– all remotely from a unified console that monitors the whole network.

What seems to be happening so far is everyone has their own interface for each device.  I can see my PG&E smart meter settings if I log into the PG&E website.  I can see the settings for my Linksys router, if I go into that interface.  I can see how much power my server is using by walking over to the Kill-a-watt meter on the power strip and reading the display.  That’s fine for 3 devices, but as the number of smart devices grows, it’s not going to cut it.

Have I missed something?  Or is it time to brain storm ideas for the home automation projects I have in my head?