Interface and Application Programming


Modular Mesh network interface

coding

You can see the Live demo, you will miss the sensor data, is cause all the code of the sensor is in an Arduino + Ethernet shield running a web server.

coding

Parts of the node 1


  • 1. Tp Link Router WDR4300, runing custom firmware Quick Mesh Project
  • 2. Raspberry Pi, runing Apache web server
  • 3. Arduino+Ethernet+GY-21, Input device
  • 4. Final Project, Control Alert light system, Output Device
coding

Output "Node 1: Light control"

Version 1

coding




Version 2, Final project

coding

Here you can download the files to upload to the 328 IC. Also you will find the files for the web interface.






Input "Realtime values in node 1"



I use the code found in this Tutorial. I add the GY-21 sensor to the setup. This sensor works with the I2C protocol, so the idea is to attach different sensor in the array. Here you can download the code and libraries used.

coding coding

Web server

coding

The web server is setup under Raspbian, I SSH to the raspberry and run this sequence of comands:



          sudo apt-get update
          sudo apt-get upgrade
          sudo apt-get install apache2 -y
          sudo apt-get install php5 libapache2-mod-php5 -y
          sudo apt-get install netatalk
          

Netatalk allows me easy acces to the server files, so I can edit all the files as they where in my computer.


Work info:

References: Quick Mesh Project Apache Pi Great tutorials in Spanish netatalkPi

Description:

For my final project, I need modularity of inputs and outputs, also, a variety of client devices. This is why I made the web platform under a wifi router (running a firmware that enable mesh protocol between different nodes, thanks to qMp BMX6) with a raspberry as an Apache server. The setup is part of a big spiral, I know that could be shrunk, but for now, as a prototype, it do what I need, a web platform to read sensor data (input) and control the lights (output) on the final project.