Week14 : Networking and communication

group assignment:

send a message between two projects

What we did

Jun made Satshakit and using it to integrate inputs from thermometer and GPS, and save them to SD card module.
Kai made connected LED alley for semi-architectural use .
Daisuke made teperature and display module
We decided to connect Jun's project and Kai's project because those 2 project seemed easy to connect.

We did all following works together.

Kai was using his own PC and arduino IDE serial monitor to send commands to LEDs. We decided to replace sender with Jun’s Arduino (Satshakit) as an assignment.

Wiring

LED array

Satshakit

Wiring table

Satshakit LED array bridge
TX RX
RX TX
VCC VCC
GND GND

Program

The Arduino sketch on the Satshakit simply sends out the number of 0 to 3 every 1000ms.

Serial is received by the bridge then passed to each nodes with another serial protocol. Signal is broadcasted to all nodes. Each node has unique address, and identifies the signal that is sent to itself.

In program on LED array, each LEDs are instructed to blink once as it received any signal from bridge, then give another blink if the signal contains its own address.

Issue & resolution

At the first contact, LEDs were flashing randomly.

Waveform was showing the periodic signal has broken signals and random spikes occuring outside the periodic cycle of the signal.

We spent an hour to trace the problem, but in the end we figured out reset pin of the Arduino were connected to TX line that was causing continuous reboot of the Arduino.
After we fixed the circuit it worked as we expected.

Here are the waveform of successful communications.

Sending “3”.

Sending “2”.

Sending “1”.

Sending “0”.

Downloadable files

Arduino sketch for satshakit

download

Program for LED array

download

Reference

Satshakit

Hello.bus.45(Neil’s sample)