Homepage

Mostrando las entradas con la etiqueta controlremote. Mostrar todas las entradas
Mostrando las entradas con la etiqueta controlremote. Mostrar todas las entradas

jueves, 27 de octubre de 2016

Installation Node Red dashboard




Node red Dashboard
Node red has dashboard to create and view dashboards to interact with the devices in the internet of things.
There was an earlier version call node-red-contrib-ui which was replaced by node-red-dashboard created by Dave Conway-Jones (dceejay) thanks for your great contribution.


In this case we will install this add to our Node-red, previously installed  Lubuntu (Ubuntu) in next tutorials integrate devices already used previously as Arduino and ESP8266.

Previous tutorials
Tutorial 1 : Install Lubuntu (Ubuntu)
Tutorial 2 : Installation node red platform

Github
github.com/node-red/node-red-dashboard

Dashboard installation for developers

Enter a folder / node-red
 cd ~\.node-red\node_modules 

Copy from github repositories
git clone https://github.com/node-red/node-red-dashboard.git

Enter folder node-red-dashboard
cd node-red-dashboard

Build application
npm install

Back to Folder node-red
cd ..

Run node red
node red 




Dashboard widgets available


Example
Organization and Design Dashboards

The dashboard tab  to organize our dashboard by tabs  and groups since it does not have a tool own design, but consider this way very practical to design without worrying about compatibility design screens different resolutions on devices like smartphones tablets and  pc.


Visualization from PC

Visualization from Tablet  7"


Visualization from Smartphone 4"


Video Complete



Ready to have fun ...

References
Tutorial 1 : Install Lubuntu (Ubuntu)
Tutorial 2 : Installation node red platform
node-red-dashboard
Nodered.org
github.com/node-red
Nodejs.org

More Information:

Youtube Channel:



miércoles, 26 de octubre de 2016

Installation node Modbus TCP Node Red

In the search for attachable communication protocols Node-Red I found thanks to the collaborative development a library or nodes for communication Modbus TCP IP, the following tutorial is indicated as installing the nodes in lubuntu (Ubuntu).

Previous tutorials Recommended
Tutorial 1 : Install Lubuntu (Ubuntu)
Tutorial 2 : Installation node red platform
Tutorial  3 :  Installation Node Red Dashboard




This library   node-red-contrib-modbustcp  was created by  Jason D. Harper  was based on the jsmodbus library, this library allows our Node-Red server is configured as master Modbus TCP, it contains 2 nodes one reading and one writing .

 - your user linux -  /node-red/node_modules/
npm install node-red-contrib-modbustcp

Reading from Master (Node Red) to Slave

Writing from Master (Node Red) to Slave



Complete Video  Install Modbus TCP IP in Node Red


                                              Complete Video  Test Modbus TCP IP in Node Red


Ready to have fun ...


martes, 20 de septiembre de 2016

Update ESP8266 Industrial Modbus TCP IP V2.0



There have been numerous applications in the ESP8266, I have taken as a goal to integrate this module into one of the industrial protocols most commonly used Modbus TCP IP, it would be good to have a node or sensor that sends data or a driver, OPC, PAC, PLC, HMI or SCADA.

A long time ago I found a group of people in forums.adafruit already had an advance and example have been implemented and improvements suggested by ibbba for the contribution.
The programming code for ESP8266 in this case was implemented in Arduino IDE versions 1.6.4 above. These 2 tutorials indicate connection and basic programming ESP8266 01 and 03 modules.

TUTORIAL

TUTORIAL
Previous tests library ModbusTCPSlave
ESP8266 - 01 Modbus Slave TCP IP (Ethernet) for Industrial Applications

CONCLUSIONS
In previous tests with the library Original ModbusTCPSlave, it had two drawbacks of application:
Code Execution
properly functioning communication modbus tcp, but do not run the code in the routine void loop, as a temporary solution the library for ESP8266 amending stop the connection and reconnect again, the problem with this method is time reconnection can make the teacher while accepting the data indicate error in data reception.
Serial port
Originally ESP8266 the serial port was used as a debug port in hexadecimal, I have made changes to the library so that Serial can be used freely.

                           VIDEO Update ESP8266  Industrial Modbus TCP IP   V2.0
IMPROVEMENTS
With the new modifications it has been omitted disconnection allowing a constant flow of communication if stop the connection between the ESP8266 and modbus tcp master mandatory.
Ticker
He has implemented Ticker library created and documented by igrr, it is an object to call a given function with a certain period. Each Ticker calls a function. You can have as many as you like tickers, the only memory limitation.

Important note: When creating tickers consider not create any delay would affect both modbus communication protocol, such as the execution of that function.


TESTING
the connection between the ESP8266 and a simulator configured as master Modbus tcp was made.
-initially The Ticker Parada is created.

CODE DESCRIPTION
call the function value is created and defined 2 Holding Registers:
Mb.MBHoldingRegister[0] =  Holding Registers 1
Mb.MBHoldingRegister[1] =  Holding Registers 2

Mb.MBHoldingRegister[0]  send a random(0,51) value to the Modbus Master and validate the upgrade value.

Mb.MBHoldingRegister[1]  is used for reading a value sent from the Modbus Master and from the serial terminal validate the update.

modbus routine Mb.Run();  is executed; and execute the Ticker Parada.attach_ms(25,valor); every 25ms doing the value created in the function.

Taking this example as a basis, they could perform management functions for I / O similar and digital, load and others, taking only into account not implement any delay.
POSSIBLE INDUSTRIAL APPLICATIONS


                                                                 TUTORIAL
Industrial software integration with OPTO 22

Downloads Github
Code  ESP8266_Industrial_ModbusTCP_V2

References
Arduino Mega 2560 Oled Display I2C Master Modbus RTU Scada Industrial Connection
Arduino + ESP8266 + Software Opto22 example Scada Industrial

More Info:

Youtube Channel
PDAControl





jueves, 7 de julio de 2016

Turn led ESP8266 with Thinger.io


This time a test is carried out with the Thinger.io platform, using a 01 ESP8266 be conducted remotely control a diode led directly from the web platform.
As shown by a LED diode will control but the application can be with relay actuators and others.

Requirements:

Turn led ESP8266 with Thinger.io

Api control device

 Arduino IDE Code


Test



Materials

1  - 1 ESP8266 - 01
2  - 2 Converter FTDI  Serial -Usb ttl
3  - 3 Regulator 5 a 3.3v
4  - 1 diode led
5  - 1 resistor de 220 Ohm

Connections






Downloads 


More Info:

Youtube Channel
PDAControl

miércoles, 6 de julio de 2016

Introduction Plataform IoT Thinger.io



This time I bring this IoT platform called Thinger.io, in this tutorial as NOTED create an account to register our devices either Arduino, Raspberry Pi or other data collection platform in my case tests effected, with the ESP8266 01.

This platform allows monitoring and control of variables without any complications.
page Oficcial : https://thinger.io/


You want to try thinger.io? The following video will show you step by step



Preview


Report data transmission


Number of Devices
Register for free allows 3 devices with a limit of sending requests monthly 100mb


Geolocation
It has geolocation of connected devices.



Testing - Video tutorial






More Info:

Youtube Channel
PDAControl

Test ESP8266 + DS18B20 Onewire + Google Speadsheets (Google Docs)


If we want a simple solution to monitor temperature, for complicate applications?
if we have Google Docs, This test perform temperature measurement using a probe DS18B20 and transmit directly to  Google spreadsheets using as Google app script bridge.
For this test approximately every 10 seconds temperature data was sent.

Requirements
Arduino IDE
Programming ESP8266
Google Docs account



Connection ESP8266 and Google spreadsheet (Google Docs) Direct
I tested the bookstore Library HTTPSRedirect created by Sujay hadke (electronicsguy) thanks for their contribution to the ESP community, in your example creates a kind of chat between Google Docs and ESP8266, below a tutorial video where settings are explained and Connection.




Important note:
To perform this test is required to see the previous tutorial, settings for Google script and Google spreadsheets, Below are the sofware related to this project.

probe DS18B20




Google Spreadsheets Sheet

This sheet has the following characteristics:

1. Historical Record
2. Graph Historical
3. Dial for Current Status


Video Tutorial
Materials

1  - 1 ESP8266 - 01
2  - 2 Converter FTDI  Serial -Usb ttl
3  - 3 Regulator 5 a 3.3v
4  - 1 Sensor DS18B20



Downloads  Github  Project

Related

More Info:

Youtube Channel
PDAControl