Navegando por
Categoría: How to use

Controlling the temperature with Dallas DS18xx sensor. Arduino IDE

Controlling the temperature with Dallas DS18xx sensor. Arduino IDE

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…

Leer más Leer más

Create your own framework: Node-red. First steps

Create your own framework: Node-red. First steps

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…

Leer más Leer más

Ethernet Configuration from EEPROM using the Commandline

Ethernet Configuration from EEPROM using the Commandline

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…

Leer más Leer más

Command Line Arduino library

Command Line Arduino library

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…

Leer más Leer más

HOW TO UPLOAD A SKETCH TO A MDUINO/ARDBOX USING THE COMMAND LINE. LINUX

HOW TO UPLOAD A SKETCH TO A MDUINO/ARDBOX USING THE COMMAND LINE. LINUX

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….

Leer más Leer más

How to upload a sketch to a MDuino/Ardbox using the command line. Windows

How to upload a sketch to a MDuino/Ardbox using the command line. Windows

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…

Leer más Leer más

2ND STEP TO CREATE A TCP CLIENT ON A TOUCHBERRY PI 3. CREATING A TCP CLIENT USING NODE.JS

2ND STEP TO CREATE A TCP CLIENT ON A TOUCHBERRY PI 3. CREATING A TCP CLIENT USING NODE.JS

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…

Leer más Leer más

Serial Communication between Raspberry and MDuino/Ardbox

Serial Communication between Raspberry and MDuino/Ardbox

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…

Leer más Leer más

1st step to create a TCP client on a Touchberry Pi 3. Setting an static IP Address

1st step to create a TCP client on a Touchberry Pi 3. Setting an static IP Address

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…

Leer más Leer más

How to avoid the debouncing when reading a digital input. Library Tools40 Digital Filter

How to avoid the debouncing when reading a digital input. Library Tools40 Digital Filter

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…

Leer más Leer más