Browsed by
Etiqueta: Analog

Read Analog Input Ardbox/MDuino

Read Analog Input Ardbox/MDuino

Analog  Inputs (0-10V / 10  bits): Ardbox Analog: I0.1, I0.2, I0.3, I0.4, I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Analog). Relay: I0.4, I0.5, I0.6, I0.7, I0.8, I0.9 (configurable Analog). MDuino M-Duino 21:  I0.7, I0.8, I0.9, I0.10, I0.11, I0.12 (configurable Analog). M-Duino 42:  I0.7, I0.8, I0.9, I0.10, I0.11, I0.12, I1.7, I1.8, I1.9, I1.10, I1.11, I1.12  (configurable Analog). M-Duino 58: I0.7, I0.8, I0.9, I0.10, I0.11, I0.12, I1.7, I1.8, I1.9, I1.10, I1.11, I1.12, I2.7, I2.8, I2.9, I2.10, I2.11 (NC), I2.12 (NC)  (configurable Analog). M-Duino 19R: I0.2, I0.3, I0.4, I0.5 (configurable Analog). M-Duino…

Leer más Leer más

How to read an Analog Input

How to read an Analog Input

You can read the data of an Analog Input through: … int myAnalog; … void setup() {} void loop() { myAnalog = analogRead(A0); } With this piece of code you’ll read the voltage of a sensor. As our analog input works between 0-10V, the read value (myAnalog) will be a value between 0-1023. If the value of sensor is (3V), myAnalog value is 3*1023/10 = 307.