Introduction: NetPower

About: Asesor Informático, Administrador de Sistemas e Infraestructuras Informáticas, Programador Multi-Plataforma, Especialista en Sistemas de Linux, Técnico en Mantenimiento Industrial, Radio Aficionado LU3FLA.

This Project: is a remote control system by network using telnet, based on Arduino UNO R3 with Ethernet Shield, which allows to control the status of 8 relays.

Este Proyecto: es un sistema de control remoto por red utilizando telnet, basado en Arduino UNO R3 con Ethernet Shield, que permite controlar el estado de 8 relés.

Step 1: Stuff for the Project

With very few elements we can assemble the system, in this list are detailed.

Con muy pocos elementos podemos armar el sistema, en esta lista se detallan los mismos.

Materials

  • 1- Arduino UNO R3
  • 1- Shield Ethernet W5100
  • 1- 8 Relay Board
  • 10- Dupont Male-Female Cables

Step 2: Hardware Assembly

It is the simplest stage, since you only have to connect the Arduino UNO with the Ethernet Shield and then connect the cables starting from the digital pins of the Arduino UNO (actually they come out from the Ethernet Shield since it is on this one) to each contact of the relay board.

Es la etapa mas simple, ya que solo hay que unir el Arduino UNO con el Shield Ethernet y luego conectar los cables partiendo desde los pines digitales del Arduino UNO (en realidad salen desde el Shield Ethernet ya que esta sobre este) a cada contacto de la placa de relés.

Step 3: The Code and Programming

Let's say it's the part that took me longer since I was debugging and also had problems with the size of the memory in Arduino UNO, so I deleted part of the code, specifically it doesn't have login or other functions that if I had in mind to use but being very close to filling the tiny memory of the device I had to remove a lot of code, maybe in some future version I will use a more powerful hardware.

We're going to schedule, just download the compressed file and extract it, this creates a "NetPower" folder with a "NetPower. ino" file inside it, you have to move this folder (with the file) to the location where you save Arduino IDE projects. then start Arduino IDE, configure board, port and open the NetPower project, you have to configure the network parameters in the code, just program the Arduino and you will be able to use the NetPower system.

Digamos que es la parte que mas tiempo me llevo ya que fui depurando y también tuve problemas con el tamaño de la memoria en Arduino UNO, por lo que elimine parte del código, en concreto no tiene login ni otras funciones que si tenia en mente usar pero al estar muy cerca de llenar la diminuta memoria del atmega tuve que eliminar mucho código, quizás en alguna futura versión use un hardware mas potente.

Vamos a Programar, solo tienen que descargar el archivo comprimido y extraer lo, esto crea una carpeta "NetPower" con un archivo "NetPower.ino" en su interior, tienen que mover esta carpeta (con el archivo) a la ubicación donde guardan los proyectos de Arduino IDE. luego iniciar Arduino IDE, configurar placa, puerto y abrir el proyecto NetPower, hay que configurar los parámetros de red en el código, solo resta programar el Arduino y ya podrán utilizar el sistema NetPower.

Step 4: How Is It Used?

To be able to connect to the system previously had to configure the network parameters in the code, already having the system configured and programmed, we only have to execute the command: telnet SYSTEM-IP-ADDRESS

List of Commands

  • a? Activate Port According to Number[0-8]
  • d? Deactivate Port According to Number[0-8]
  • e? Port Status According to Number[0-8]
  • r? Reset Port According to Number[0-8]
  • s = Exit

Para poder conectar al sistema previamente se tubo que configurar los parámetros de red en el código, ya teniendo el sistema configurado y programado, solo debemos ejecutar el comando: telnet IP-DEL-SISTEMA

Lista de Comandos

  • a? = Activar el Puerto Segun Numero [0-8]
  • d? = Desactivar el Puerto Segun Numero [0-8]
  • e? = Estado del Puerto Segun Numero [0-8]
  • r? = Resetear Puerto Segun Numero [0-8]
  • s = Salir

Step 5: Final Greetings

As I have already mentioned on other occasions, many of my projects are using recycling materials, so I would like to thank all those who contribute materials for my workshop.

Como ya comente en otras ocasiones, muchos de mis proyectos son usando materiales de reciclaje, por ello quiero agradecer a todos aquellos que aportan materiales para mi taller.

Arduino Contest 2017

Participated in the
Arduino Contest 2017