Browsed by
Etiqueta: arduinoide

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