Dragino experiments

Last week Bart van der Meerssche sent me the newest version of the Flukso. This new system consists of a motherboard (Dragino). Most important feature for me are the connectors (2x8 and 2x7) for microcontrollers such as Arduino, or the JeeNode. For me, the dragino is an ideal host for my JeeNode home automation projects.

First of all I wondered if the enclosure of the dragino (MS12) is large enough to house a JeeNode. I did some testing with an experiment board and a JeeNode (v5). My conclusion is that fitting is possible within the MS12 enclosure. Today JeeLabs announced the availabillity of a JeeNode SMD. This 'flat' JeeNode would make inclusion in the dragino even better.

The other activity I started with is communication between the the dragino and a JeeNode. The following table lists the connections between the pins of the dragino 2x8 connector and the pins on the JeeNode.

Draguino pin JeeNode pin
5V PWR
GND GND
SIN RXD
SOUT TXD

Here is a picture of my setup. The JeeNode is inserted into a breadbord, and wirejumpers connect the breadboard to the dragino.

The Dragino and the JeeNode
The Dragino and the JeeNode

Communication was tested with the following 'Hello World!' sketch on the arduino:

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("Hello World!");
delay(1000);
}

On the dragino, the flukso deamon was stopped (/etc/init.d/flusko). Also the crontab entry with a periodic reboot was removed. Serial communication (readonly) with the JeeNode was tested with a small, my first, Lua script.

serial=io.open("/dev/ttyS0","r")
while line==nil do
line=serial:read()
serial:flush()
end
print(line)

And, it worked! The 'Hello World!' was coming in line by line on the dragino.

results matching ""

    No results matching ""