12-01-2014 01:45 PM
Buena tarde
Alguien de ustedes sabe cuál es la razón de que mi programa de arduino no funcione bien ya cuando lo tengo programado en LabVIEW?. En Arduino me funcioan perfecto,pero en LabVIEW no cambia el valor de la corriente que estoy sensando con el ACS712. Les agradezco,saludos.
12-01-2014 06:17 PM
You will need to provide more information about your setup. What Arduino are you using? Do you have the firmware installed your Arduino? Are you using the correct baud rate? The Mega 2560 uses a baud rate of 9600 (not 115200 like the Uno).
12-02-2014 09:46 AM
Thanks Nathan_B. Now I put the correct baud rate of 9600. I use the Mega 2560 and to have the LIFABASE for Labview 2009. Maybe the problem can be the convert method for the sensor. Now i seing that the real number sensor is ACS712T KLD 12AB but the number that Labview give me isn´t correct because I have a fluke for measurement current. How can do to convert with the correct method. Thanks a lot.
12-02-2014 12:22 PM
I guess you just need to find the correct conversion equation from voltage
to current.
05-18-2016 03:09 AM
how to convert voltage from ACS 712-20A to current in labVIEW?
I've tried to use this equation:
((analog read from ACS) - 2.5 ) : 0.1 = current
but actually im not sure with that.
05-18-2016 11:20 AM
I don't understand your formula. "((analog read from ACS) - 2.5 ) : 0.1 = current"
You need a conversion method similar to the following.
RawValue = analogRead(analogIn);
Voltage = (RawValue / 1024.0) * 5000; // Gets you mV
Amps = ((Voltage - ACSoffset) / mVperAmp);
Where ACSoffset = 2500 mV and mV per amp = 100 mV /per amp for ACS712-20A
hrh212