Description Control a climatic camera temperature using a DS18xx temperature sensor using the OneWire protocol. This is a simple way to know the temperature provided by a temperature sensor. The good thing of this sensor is that it already provides a library of Arduino, which helps in its programmation. Requirements Dallas DS18xx Arduino library: https://github.com/milesburton/Arduino-Temperature-Control-Library Connection Red: 5V Yellow: PIN2 (data pin) Black: GND List connected devices The sketch lists the devices connected to the OneWire pin…

Node-red is a framework thought for an iot solution. The framework is programmed using a graphical interface. In this post we are going to focus on the first steps a user must know to start a node-red project. If you want to know the basics of Node-red you can go to this post: An introduction to Node-Red Installation sudo npm install -g –unsafe-perm node-red Run node-red Now you can go to http://localhost:1880and start editing flows Create a…

Requirements CmdLine library https://github.com/IndustrialShields/arduino-CmdLine Description Configure the Ethernet parameters saved in the EEPROM: MAC address and DHCP/IP address. It is used the EEPROM library to store configuration parameters. The ‘cont_t’ structure defines the parameters that will be saved into the EEPROM: type and name. In this case the parameters are used to save the Ethernet configuration, so it is used also the Ethernet library (Ethernet/Ethernet2). *Ethernet for v7 and Ethernet2 for PLUS version. It is possible to add more…

Requirements Arduino IDE: http://www.arduino.cc (v 1.8.0 or above) CmdLine library: https://github.com/IndustrialShields/arduino-CmdLine Installation https://www.arduino.cc/en/Guide/Libraries#toc4 Description Add a command line utility to the Arduino. You can type customizable commands to the Arduino board through a Serial port to execute functions. For example, you can add a command “set-ip 192.168.1.10” to set the PLC IP address. Of course, you MUST implement the function which sets the IP address. Example You MUST define a set of commands with the associated functions…

In this post it will be seen how to upload a sketch using the command line instead of using Arduino IDE. This is an introduction for a newer post in which we will show how to upload remotely a sketch using the command line. Without further delay we will see how this process can be achieved. First of all we need to know that for uploading a sketch using the command line it is necessary to use the program avrdude….

In this post it will be seen how to upload a sketch using the command line instead of using the Arduino IDE. This is an introduction for a newer post in which we will show how to upload remotely a sketch using the command line. Without further delay we will see how this process can be achieved. First of all we need to know that for uploading a sketch using the command line it is necessary to use the program…

On this post it showed how to implement a TCP server on Touchberry Pi 3 The requirements of this post is just a Touchberry Pi with internet connection. To get the Node.js JavaScript interpreter we need to install the command cURL on our Linux. cURL command is very useful for HTTP/S requests. To get the cURL we just need to type on the Linux Terminal: sudo apt-get install curl Once there is the cURL installed we can download the node source typing…

In this post it will be shown how to communicate using the serial between a MDuino/Ardbox and a Raspberry Pi. It actually exists many ways on communicating between this two devices, but today we will focus on see how to do it using the Serial. Serial communication is actually one of the easiest way to communicate. It only uses two wires to achieve that, Rx & Tx. One wire is to send(Tx) and the other is for receiving(Rx). To stablish…

In this post it will be shown how it is set an static ip for the Raspberry. By default the Raspberry Pi is automatically set to obtain an IP address from a wired or wireless network. Then why do we want an static IP if the Raspberry automatically sets already one? The answer is because we need to have the same exact IP, not an automatic one. The reason of being automatic makes that the IP can be different each…

In this post it will be shown how to ensure the reading of a digital input using our library Tools40. This library has been developed by Industrial Shields. For more information, check the information of this library in the following post: Tools40 library, useful tool using our equipments First of all it is important to know the purpose of our digital filter. Basically it filters the debounces when a digital input changes from HIGH to LOW or vice versa. When…