Saturday, November 8, 2014

First test with Moteino's & Raspberry Pi running TheThingBox

So we're getting close the the architecture we'll be running. It is based on Moteino nodes (Arduino compatible with RFM69W) talking to a gateway based on a Raspberry Pi running TheThingBox (Raspbian, Node.js, Node-red, Mosquito).

First I used LowPowerLab codes for the nodes and the gateway Moteino. There are two moteino loaded with node firmware transmitting text strings over encrypted radio (915MHz) to a gateway Moteino. The gateway is plugged thru USB to the Raspberry Pi.


TheThingBox is quite easy to operate: download, install on the SD card, plug it, and turn on. Voilà ! A simple sketch is loaded in the sheet: serial input to debug.



And on the right side, you can see the text string sent by the Moteino node is now displayed on the debug window on the right side.
The only tricky part is to get the right serial port of the Moteino connected to your Raspberry Pi.

  1. Log on your Pi thru SSH
  2. Type ls /dev/tty*
  3. Plug your Moteino USB or Moteino with FTDI adapter
  4. Type ls /dev/tty*
  5. Compare the two results, you should have a new TTYUSBx listed
This is the value you'll put in the serial config of the sketch.

No comments:

Post a Comment