LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Power analyzer using arduino

I do not have a good answer for you. But I do know that if you give more details about the issue (and specs') of the devices you are talking about and what exactly you want to do, You will definitely get more responses to your question and hopefully a good solution to your issue. Regards,Barddya

From: s.aryanpour <web.community@ni.com>

To: barddya <barddya@yahoo.com>

Sent: Saturday, November 7, 2015 11:13 PM

Subject: - Re: Power analyzer using arduino

|

|

NI Community

|

Re: Power analyzer using arduino

created by s.aryanpour in LabVIEW Interface for Arduino - View the full discussionhi how can i use   zmpt101B  transformer voltage  to read ac voltage between 95 -265 volt ac ?can i help me i want to use transformer voltage and ct to calculate voltage and current by microcontroller or arduinoand analyze by labview Reply to this message by replying to this email -or- go to the message on Community Start a new discussion in LabVIEW Interface for Arduino by email or at Community

0 Kudos
Message 11 of 36
(2,777 Views)

For labview interface first you have to step down voltage and current according to arduino or microcontroller input range,for this purpose you can use sensors and the interface arduino with labview using LIFA or series communication

0 Kudos
Message 12 of 36
(2,777 Views)

You will need to use resistor voltages dividers and an opamp to interface your  voltage and current signals to Arduiuno's ADC.  The voltage dividers are used to reduce the AC voltages to a an amplitude compatible with Arduino's 5 volt range.  Then because AC signals are bipolar and Arduino's ADC input is unipolar you will need to offset the AC signal.  Use an opamp in a summing configuration to add a 2.5 volt DC offset to the AC signals.   I suggest a range of about 0.5 volts DC to 4.5 volts DC at the output of the opamp.

hrh212

Message 13 of 36
(2,777 Views)

and then how can i read the voltage

i must calculate rms ?

how is the arduino code

0 Kudos
Message 14 of 36
(2,777 Views)

Update   Update  Update

The Arduino Due's analog input pins are rated at 3.3 volts DC.  Therefore my previous comments about attenuating and off setting AC signals for a 0 to 5 volt DC range must be changed to a 0 to 3.3 volt DC range for an Arduino Due.

hrh212

0 Kudos
Message 15 of 36
(2,777 Views)

RMS means root mean squared.  Hence first square each voltage reading.   Next calculate the sum of all of the voltage squared readings.  Next divide the sum of voltage squared readings by the number of readings to find the mean value.  Last take the square root of the mean value to find the RMS value.   Measurement of the voltage signal must be made at regular intervals and for an integer number of cycles of the input signal.

The first formula on the following web page shows the formula for calculating the RMS value.

<https://en.wikipedia.org/wiki/Root_mean_square#Definition>

hrh212

Message 16 of 36
(2,777 Views)

how is arduino code ?

can u help me to write code

0 Kudos
Message 17 of 36
(2,777 Views)

You can use Labview with Arduino after you install LINXcheck out this sitehttps://www.labviewmakerhub.com/

Barddya

From: s.aryanpour <web.community@ni.com>

To: barddya <barddya@yahoo.com>

Sent: Monday, November 9, 2015 4:25 AM

Subject: - Re: Power analyzer using arduino

|

|

NI Community

|

Re: Power analyzer using arduino

created by s.aryanpour in LabVIEW Interface for Arduino - View the full discussionhow is arduino code ?can u help me to write code Reply to this message by replying to this email -or- go to the message on Community Start a new discussion in LabVIEW Interface for Arduino by email or at Community

Message 18 of 36
(2,777 Views)

i want to write code on arduino and connect to labview via serial port

please help me to write code on arduino

i dont want to use lifa or linx

i have problem on read ac and calculate rms

i know how to connect via serial to labview

thanks my friend

0 Kudos
Message 19 of 36
(2,777 Views)

The only way to communicate Labview and Arduino through serial connection anyway obviously if you want to write native arduino code, then you should check out Arduino - FAQ It is a "c" like language. There are tons of examples out there, my advice would be try to find an example close to what you want to do and then edit it. Are you familiar with C?-B

 

 

 

 

 

 

Arduino - FAQFrequently Asked Questions What is Arduino? Glad you asked, we have a great introduction page on Arduino, click here to read it. And what about Genuino?

View on www.arduino.cc

Preview by Yahoo

 

From: s.aryanpour <web.community@ni.com>

To: barddya <barddya@yahoo.com>

Sent: Monday, November 9, 2015 11:58 AM

Subject: - Re: Power analyzer using arduino

|

|

NI Community

|

Re: Power analyzer using arduino

created by s.aryanpour in LabVIEW Interface for Arduino - View the full discussioni want to write code on arduino and connect to labview via serial portplease help me to write code on arduino i dont want to use lifa or linxi have problem on read ac and calculate rms i know how to connect via serial to labview   thanks my friend Reply to this message by replying to this email -or- go to the message on Community Start a new discussion in LabVIEW Interface for Arduino by email or at Community

0 Kudos
Message 20 of 36
(2,777 Views)