Navegando por
Etiqueta: arduino

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

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

Review + new documentation of the Ardbox Analog HF

Review + new documentation of the Ardbox Analog HF

In this post it will be seen a review of the PLC Arduino ARDBOX 20 I/Os Analog HF Modbus. The guide of the PLC Arduino ARDBOX 20 I/Os Analog HF Modbus on our website is already uploaded into the 7.1 version. The User Guide now is for the HF version, so it exists now the possibility of taking all the information of the PLC Arduino ARDBOX 20 I/Os Analog HF Modbus from there.   It will be shown a little introduction…

Leer más Leer más

How to use RS232 on Industrial Arduino Based PLC

How to use RS232 on Industrial Arduino Based PLC

On this post it’s showed how to use RS232 on an Arduino based PLC of Industrial Shields. To use RS232 is required the next points: Industrial Shields equipment (not any Ardbox HF version) Industrial Shields boards installed, follow this older post to install it. Hardware Configuration The first step is configure the hardware. The right connections between the desired devices are showed below: Industrial Shields PCL RS232 Device RX TX TX RX GND GND   Also it’s important to have…

Leer más Leer más

HOW TO CALCULATE THE VALUE RAISED TO A POWER WITH ARDUINO IDE

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…

Leer más Leer más

HOW TO PAUSE THE EXECUTION OF THE CODE WITH ARDUINO IDE with microseconds

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

Leer más Leer más

How to read time on Arduino IDE

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

Leer más Leer más

Ardbox – MDuino Arduino pin

Ardbox – MDuino Arduino pin

This post describes how to gain direct access to Arduino board pins  inside the  Ardbox and MDuino PLCs. This allows to work with the PLCs in the same way as using an Arduino, in other words,  pins at 5V and configurable as input or outpts. Also, this  enables usage of  sensors  working at lower voltages than industrial standards 10V dc/24Vdc.  NOTE:Make sure the voltage DOES NOT EXCEED 5VDC!!!!!!!! Following are listed the connections with direct access to the Arduino board  pins. Ardbox: DE-D7  // RE-D4 // SDA-PIN2  // SCL-PIN3 MDuino: SCL…

Leer más Leer más