node-red-contrib-fft 0.0.7

transform an array via fft (fast fourier transformation), for vibration analysis...

npm install node-red-contrib-fft

Node to convert one or more values within an array, using fourier transformation fft.

example :

input

{ "data" :  [  
{"accelerometer_x" : 9 , "accelerometer_y":2, "accelerometer_z":2},
{"accelerometer_x" : 7 , "accelerometer_y":2, "accelerometer_z":2},
{"accelerometer_x" : 5 , "accelerometer_y":0, "accelerometer_z":0},
{"accelerometer_x" : 7 , "accelerometer_y":2, "accelerometer_z":2}
]}

config

input : msg.payload.data fields : accelerometer_x,accelerometer_y,accelerometerz prefix : fft type : real

result

{
  "payload" :
   { "fft_accelerometer_x_0": 28,
     "fft_accelerometer_x_1": 4,
     "fft_accelerometer_x_2": 0,
     "fft_accelerometer_x_3": 4,
     "fft_accelerometer_y_0": 6,
     "fft_accelerometer_y_1": 2,
     "fft_accelerometer_y_2": 2,
     "fft_accelerometer_y_3": 2
     "fft_accelerometer_z_0": 6,
     "fft_accelerometer_z_1": 2,
     "fft_accelerometer_z_2": 2,
     "fft_accelerometer_z_3": 2
    }
}

to do

  • add option multiple input for fields in place of comma seperated list
  • handle fields from the array not used for transformation
  • add other output templates
  • support complex transformation

link

Node Info

Version: 0.0.7
Updated 8 months, 2 weeks ago

Downloads

0 in the last day
3 in the last week
78 in the last month

Nodes

  • fft

Keywords

  • node-red
  • fft
  • fourier

Maintainers

  • leanbi