# AC voltage measurement

**URL:** https://discourse.nodered.org/t/ac-voltage-measurement/22163
**Category:** General
**Created:** [23 February 2020 20:23 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163 "2020-02-23T20:23:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thalesmaoa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thalesmaoa/32/17067_2.png) [@thalesmaoa](https://discourse.nodered.org/u/thalesmaoa)
#### Post date: [23 February 2020 20:23 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/1 "2020-02-23T20:23:45Z")

</div>

How fast NodeRed receives and plot data? I saw some suggestions about what I’m intending to do, however none has pointed to this question.

I’ve been working and learning NodeRed for quite some time now. I’m basically using it for everything. However, it’s quite difficult to determine its limitations since I never push it.

I want to plot AC voltage and current. Not RMS values, but the whole sine wave.

We have this teaching lab where students play with electric motors. From time to time they broke probes, scope and so on. I just want to use cheap electronics to read AC voltage and current. My only question is: which is the best way to plot it?

I will just readAdc and write over serial.  
I can’t imagine what will happen if I just push it to nodered.

I will, probably, need to build a buffer to be able to see something static, but I’m not sure about feasibility.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [23 February 2020 20:48 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/2 "2020-02-23T20:48:16Z")

</div>

If you want to capture and display real time waveforms at 50 or 60 Hz node-red is not the best candidate as it is single-threaded. You didn't say what hardware you are using.

---

<div class="post-metadata">

### Author: ![thalesmaoa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thalesmaoa/32/17067_2.png) [@thalesmaoa](https://discourse.nodered.org/u/thalesmaoa)
#### Post date: [23 February 2020 21:03 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/3 "2020-02-23T21:03:09Z")

</div>

Probably an ESP32. To get what I want with NodeRed I will need to send an array to char and show each second, for instance?

@ghayne Do you have other suggestion?

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [23 February 2020 21:14 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/4 "2020-02-23T21:14:36Z")

</div>

I have been trying to push data to an InfluxDB database at 20Hz on a raspberry Pi 3B+ with no luck. Too many processes interrupting the flow. Also the ESP32 has terrible interrupt latency as things Like Arduino or Micropython run on top of the RTOS OS.

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [23 February 2020 21:24 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/5 "2020-02-23T21:24:01Z")

</div>

An esp + web sockets + JavaScript can do amazing things even when it comes to fast data transfer:

You can find more amazing stuff on CNLohrs channel!

And if your students do something wrong the probably only break only a 2€/$ wemos not a raspberry pc or your scope.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 April 2020 21:24 UTC](https://discourse.nodered.org/t/ac-voltage-measurement/22163/6 "2020-04-23T21:24:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
