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-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,accelerometer_z 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 years, 11 months ago
Rating: 2.2 6

Categories

Actions

Rate:

Downloads

9 in the last week

Nodes

  • fft

Keywords

  • node-red
  • fft
  • fourier

Maintainers