Hardware a PCB with a atmega2560 chip
It's a PCB I designed with some buttons, leds, display, relays, solenoids, POT resistors and conectors.
It has on one serial port attached one particle photon which interacts with the board and sends the data to the server.
Communication between PCB and server
Data is polled through ADC interrupts which store it in a buffer. Another task performs a reading every minute and sends it to the Photon which fowards it over HTTP POST to Django Backend and returns the HTTP code.
HTTP code 201 (The request has been fulfilled, resulting in the creation of a new resource) can be seen on the display.
Server Debian gnu linux 8.0 jessie
On the server side there is a Debian with Nginx as a reverse proxy. Gunicorn (Green Unicorn) act as Python WSGI HTTP Server to access Django.
Django uses Tasypie as REST to recieve data from the datalogger.
Data from sensors
The data from sensors is stored in the Django database and showed in differents views.
Tecnology used in WEB
Django: High-level Python Web framework.
Python: Widely used high-level programming language for general-purpose programming.
HTML5: Markup language used for structuring and presenting content on the World Wide.
scripting of HTML.
Bootstrap: Free and open-source front-end web framework.
Tecnology used in server
Atmel-AVR: AVR is a family of microcontrollers developed by Atmel that use modified Harvard
architecture 8-bit RISC single-chip microcontrollers.
Language C: C is a general-purpose, imperative computer programming
language, supporting structured programming, .
Particle: Particle’s full-stack Internet of Things (IoT) device platform gives you everything
you need to securely and reliably connect your IoT devices to the web..