Industrial Shields Blog – Industrial PLC Arduino based

Industrial Shields Blog – Industrial PLC Arduino based

  • HOW TO CALCULATE THE VALUE RAISED TO A POWER WITH ARDUINO IDE - In this post it will be seen how to calculate the value raised to a power. Basically this function takes a number(base) and it raises to another number(exponent).  The function for calcultaing the value raised to a power using Arduino IDE is pow().  This function is used to raise a number to a certain exponent. *With latest version of Industrial Shields boards it isn’t necessary to configure the pins, just selecting the properly board, I/O’s will be automatically configured.  Function pow(base, exponent) Parameters...

    Read More Read More

  • HOW TO UPLOAD A SKETCH USING ETHERNET. - In this post it will be shown how to proceed in order to upload a sketch using the Ethernet instead of using the tipical Serial (USB). This is really useful in order to upload a sketch being far from the Arduino board. This post is been prepared for upload a code using Linux and using Windows. This process is a bit long and for this reasons it has been divided in the 3 big parts. 1.How to install the Ariadne...

    Read More Read More

  • HOW TO PAUSE THE EXECUTION OF THE CODE WITH ARDUINO IDE with microseconds - In this post it will be seen how to pause the execution code for a certain time in microseconds.  Basically this function pauses the program for a certain time and after this time it continues as normal.  The function for pause the execution code for a certain time in microseconds using Arduino IDE is delayMicroseconds()  This function is used to set a time of pause. *With next version of Industrial Shields boards won’t be necessary to configure the pins, just selecting the properly board,...

    Read More Read More

  • UPLOADING A SKETCH TO A PLC USING ETHERNET. STEP 3. TFTP CLIENT - In this post it will be seen how to send the binary file of an sketch into Arduino using Ethernet with tftp Client. Furthermore it is needed to use Telnet in order to do a remote reset. As in the step 2 of this process this post will be divided in two different parts. One for sending the binary file using Windows and the other using Linux.   Windows For sending an sketch using the tftp Client it is need...

    Read More Read More

  • How to read time on Arduino IDE - In this post it will be seen how to read the time since the Arduino based PLC board began running with the function millis().  Basically this function return the number of milliseconds since the controller began running the current program. This function is really useful when you want to control process comparing time *This value will overflow after 50 days approximately Function time = millis(); Parameters Nothing Return Unsigned long of millisecond since the controller program started Example Code Example,...

    Read More Read More

  • Echo TCP server on Arduino based PLC - On this post is showed how to create a server TCP on an Arduino based PLC. The requirements of this post is just an M-Duino PLC with Ethernet connection and an available TCP client in order to test it.  Take a look an example of how to implement a TCP client with Arduino based PLC. Once the server is running, any client can connect to the server. On this example it is used an M-Duino to generate the server. The example...

    Read More Read More

  • Modbus TCP/IP library for Arduino based PLC’s - On this post it’s showed one of the best Modbus TCP/IP libraries. This library has been tasted on Industrial Shields labs and it fits communicating with other Modbus TCP/IP industrial devices.   How to install? Download the zip file on Modbus TCP/IP libraries. Open Arduino IDE, go to “Sketch –> Include library –> Add .ZIP library”. Search .ZIP file and click Open.   How to use it? By default, this Modbus library communication protocol is placed on port 502 (Modbus standard)....

    Read More Read More

  • HOW TO PAUSE THE EXECUTION OF THE CODE WITH ARDUINO IDE - In this post it will be seen how to pause the execution code for a certain time.  Basically this function pauses the program for a certain time and after this time it continues as normal.  The function for pause the execution code for a certain time using Arduino IDE is delay().  This function is used to set a time of pause. *With next version of Industrial Shields boards won’t be necessary to configure the pins, just selecting the properly board, I/O’s will...

    Read More Read More

  • UPLOADING A SKETCH TO A PLC USING ETHERNET. STEP 1. ARIADNE BOOTLOADER - In this string of posts we will see how to upload an sketch to a PLC using Ethernet connection instead of using the USB. USB is the most common way to upload an sketch into an Arduino board but it is not always the most comfortable way because you need to bring the PLC near of a PC or vice versa. Before getting into the post it is important to have our boards installed. If you don’t have it please get...

    Read More Read More

  • UPLOADING A SKETCH TO A PLC USING ETHERNET. STEP 2. BINARY FILE - In this post we will see how to take the binary file from an sketch.ino First of all we need to know the differences between uploading a code via USB  and uploading via Ethernet. When a code is uploaded into an Arduino board using the USB, Arduino IDE software automatically does its magic and transforms the code sketch.ino into a file.hex which is the one that gets uploaded automatically. If we want to upload a code via Ethernet we need...

    Read More Read More

  • HOW TO RESET A PLC USING THE ETHERNET SHIELD - In this post it will be seen how to configure the Ethernet Shield to allow the user sending a reset via Ethernet, instead of pressing the button manually. This configuration is useful in order to upload an sketch using the Ethernet shield instead of the USB. Tipically the upload is made via USB, in this case the Arduino IDE sends an order to the Arduino shield to reset it. When it is via Ethernet this is not possible by default....

    Read More Read More

  • FAQ simple questions - In this post it will be seen the most commonly questions that our Technical Service answers. How do we program your PLCs? Is there any PLC with Wifi communication? Is there any PLC with GSM/GPRS communication? How can we use the TCP/IP protocol with your products? What does it mean the M-Duino/Ardbox works at 12-24V? Which is the electric consumption of your PLCs?     How do we program your PLCs? The software that we use and the one that...

    Read More Read More

  • Arduino GPRS SIMCOM SIM900 QUAD BAND GSM SHIELD - On this post it is showed the basics to work with GPRS SIMCOM SIM900 quad band GSM shield fully compatible with Arduino. This shield has the following features: Quad-Band 850/900/1800/1900MHz GPRS multi-slot class 10/8 GPRS mobile station class B Compliant to GSM phase 2/2+ Class 4 (2W@850/900MHz) Class 1 (1W@1800/1900MHz) Control via commands (GSM 07.07, 07.05 and SIMCOM enhanced AT Commands) Short message service Free serial port selection 3.5 inch standard sonic sockets for MIC and phone Operation temperature: -40℃...

    Read More Read More

  • HOW TO WRITE AN ANALOG OUTPUT. ARDUINO IDE - Before writing an analog output it is needed to set the pin as OUTPUT. See the following post to configure a pin. Function to configure a pin as INput/OUTput. Arduino IDE The function for writing in an analog output using Arduino IDE is AnalogWrite().  This function is used to set an analog output from 0 to 255.  On Industrial Shields equipment’s is followed with the corresponding pinout. This functions are normally used inside the loop() function. *With next version of...

    Read More Read More

  • HOW TO READ AN ANALOG INPUT. ARDUINO IDE - Before reading an analog input it is needed to set the pin as INPUT. See the following post to configure a pin. The function for reading from a digital input using Arduino IDE is AnalogRead().  This function is used to read an analog signal (from 0 to 255).  On Industrial Shields equipment’s is followed with the corresponding pinout. This functions are normally used inside the loop() function. *With next version of Industrial Shields boards won’t be necessary to configure the...

    Read More Read More

  • HOW TO READ A DIGITAL INPUT. ARDUINO IDE - Before reading a digital input it is needed to set the pin as INPUT. See the following post to configure a pin. The function for reading from a digital input using Arduino IDE is DigitalRead().  This function is used to read a digital signal (high or low).  On Industrial Shields equipment’s is followed with the corresponding pinout. This functions are normally used inside the loop() function. *With next version of Industrial Shields boards won’t be necessary to configure the pins,...

    Read More Read More

  • HOW TO WRITE A DIGITAL OUTPUT. ARDUINO IDE - Before writing a digital output it is needed to set the pin as OUTPUT. See the following post to configure a pin. Function to configure a pin as INput/OUTput. Arduino IDE The function for writing in a digital output using Arduino IDE is DigitalWrite().  This function is used to set a digital output to high or low level.  On Industrial Shields equipment’s is followed with the corresponding pinout. These functions are normally used inside the loop() function. *With next version...

    Read More Read More

  • Function to configure a pin as INput/OUTput. Arduino IDE - The function to configure a pin as IN/OUT using Arduino IDE is pinMode(). This function is used to configure an Arduino pin as a input or as a output. On Industrial Shields equipment’s is followed with the corresponding Pin-out. This functions is normally used inside the setUp() function. *With next version of Industrial Shields boards won’t be necessary to configure the pins, just selecting the properly board, I/O’s will be automatically configured.    Next is showed the syntax: pinMode(pin, mode);
  • HummTouch password and how to change it - On this post it is showed how to change the default password of your Linux HummTouch Panel PC system. The default password of HummTouch is: User: HB Password: hummingboard Change the password is really simple, just open the Terminal and type:
  • AN INTRODUCTION TO AZURE IOT SOLUTION - Azure IoT Platform is a combination of backend software and databases that are thought to manage devices and applications of a company created by Microsoft. Starting from any kind of  machine and ending in any particular sensor. This platform allows to have everything integrated in the same interface. This way it is really easy to watch everything at real time.   The architecture of this platform is represented in the following photo:     It has a flexible configurability and...

    Read More Read More