取消
显示结果 
搜索替代 
您的意思是: 

how to use acs712 ac current sensor with lifa?

Hi,

I am using labview interface for arduino and I have tried to programm asc712 sensor but i couldn't. here is the link of the sensor code: circuits4you.com/2016/05/13/ac-current-measurement-acs712/  .

i researched a lot and i found that i can modify lifa function ,but i don't know how to do so.  if i modify function,is it necessary to  make the same code in labview? .

can any one guide me or making labview code for this sensor.

thanks.

0 项奖励
1 条消息(共 6 条)
4,959 次查看

Well to begin with LIFA has long since been deprecated and replaced with LINX

 

But to your basic problem, the ACS712 converts current to a scaled voltage and you are simply reading that voltage on the analog in pin of the Arduino.

 

So no special libraries or functions beyond "Analog Read" are needed.

 

You read the voltage on the proper analog pin and then do the necessary math to convert that to the current value you are measuring. 

========================
=== Engineer Ambiguously ===
========================
0 项奖励
2 条消息(共 6 条)
4,939 次查看

thanks for this quick response .

actually, i am not professional  in labview and i i couldn't know how to make the programm in especially this line:

uint32_t start_time = millis();
   while((millis()-start_time) < 1000) //sample for 1 Sec .
   so if you can do it for me, i wiil be appreciated
0 项奖励
3 条消息(共 6 条)
4,905 次查看

It would look like this.

 

Example_VI

0 项奖励
4 条消息(共 6 条)
4,902 次查看

please, can you complete doing all the cod in labview ...

thank you so much.

5 条消息(共 6 条)
4,896 次查看

No.  I'm not getting paid to do other people's work.

0 项奖励
6 条消息(共 6 条)
4,884 次查看