how to set LED frequency?

It may not be visible at the higher flicker frequencies, and the effect of the lights on the brain may not be dependent upon being able to actually "see" the flicker.

close your eyes and enjoy your session.

each of the four brainwave patterns(alpha - alert, beta - relaxed, delta - meditative and theta - sleep) are stimulated by specific flicker frequencies.

cattledog:
It may not be visible at the higher flicker frequencies, and the effect of the lights on the brain may not be dependent upon being able to actually "see" the flicker.

so you are saying your eyes can't see high frequencies but the brain does?

... but is it technically possible for each of those leds to run 300 frames per second? if not, what is the maximum fps? I use ws2811 pixel rbd.

so you are saying your eyes can't see high frequencies but the brain does?

I have no idea if the effects of the ajnalight are science or woo woo.

is it technically possible for each of those leds to run 300 frames per second? if not, what is the maximum fps? I use ws2811 pixel rbd.

That's what the data sheet for the lights and drivers will tell you.

The WS2811B has its own modulation. So modulating it would be a mess unless, during the on portion of the applied modulation, it is run at full intensity. Since the data is daisy chained, the time to write the LED increases linearly with the number of LEDs in the chain. I've never tried writing them that fast, but it should be possible. Just very awkward. You could not use hardware PWM, you would be limited to timer interrupts.

What library are you using to send data to the WS2811s?
The FastLed.h library
http://fastled.io/

I have a total of 14 LEDS, this is my code:

#include <Adafruit_NeoPixel.h> 


#define LED_PIN    2
#define LED_COUNT  14
  
 
// Set up use of NeoPixels
const int NUMPIXELS = 14;           // Put the number of NeoPixels you are using here
const int BRIGHTNESS = 255;          // Set brightness of NeoPixels here
int next_red;
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup(){
  strip.begin();
  strip.setBrightness(BRIGHTNESS);
  for (int x=0; x < NUMPIXELS; x++) {  // Initialize all pixels to 'off'
     strip.setPixelColor(x, strip.Color(0, 0, 0));
  }
  strip.show();                     // Ensure the pixels are off 
  delay(1000);                      // Wait a second
}

void setStrip(int r) {     // Set the strip to one color intensity (red)
   int g = 0;              // Green is set to zero (for non-red colors, change this)
   int b = 0;              // Blue is set to zero (for non-red colors, change this)
   for (int x=0; x < NUMPIXELS; x++) {
      strip.setPixelColor(x, strip.Color(r, g, b));
   }
   strip.show();
}

void loop()
{
  setStrip(next_red);
  if (next_red == 0) {
    next_red = 255;
  } else {
    next_red = 0;
  }
  delay(2);
}

May be you meant const int NUMPIXELS = LED_COUNT; :smiley:

TheMemberFormerlyKnownAsAWOL:
May be you meant const int NUMPIXELS = LED_COUNT; :smiley:

yes, it doesn't matter

tobiwan123:
yes, it doesn't matter

...until you forget to change one of them when you reconfigure the hardware

tobiwan123:
https://lannayoga.com/ajnalight/wp-content/uploads/2020/05/Users-Manual-AL3-2.pdf - but they make it somehow visible so that your brain can adjust to the LEDS frequency in this case it's lambda wave(page 45), which is 100-300Hz.

The opening line of that document tell you everything you need to know.

The Ajna Light was developed in 2014 to help people explore their intimate connection with the wisdom of the universe.

It is utter crap and don’t believe a word of it. All of it is made up crap.

If you follow the trail of the “inventor“ of this crap, it leads you to this rubbish about curing the Covid virus with light. Sudo science at its worst.

tobiwan123:
I have a total of 14 LEDS, this is my code:

Does it work?

aarg:
Does it work?

yes

It is utter crap and don't believe a word of it. All of it is made up crap.

I use Doom Bar or Marston's Pedigree to explore my intimate connection with the wisdom of the universe.

I find Theakstons Old Peculiar works for me.

I have found LEDS that are used in that jewel and it's either WS2812B or SK6812, in SK6812 the refresh rate is 30, so I can't further than 30Hz, so no lambda frequency.

But in this sheet for WS2812B, it is written it "scans frequency not less than 400Hz/s." What does it mean?

Hertz per second?

But why it is "less" instead of more? I can definitely go less than 400Hz.

tobiwan123:
I have found LEDS that are used in that jewel and it's either WS2812B or SK6812, in SK6812 the refresh rate is 30, so I can't further than 30Hz, so no lambda frequency.

But in this sheet for WS2812B, it is written it "scans frequency not less than 400Hz/s." What does it mean?

It means that the writer of that sheet knows less about English than they think. It is very badly written and full of grammatical errors.

By not less that I take it to mean that this is the minimum speed of the internal PWM control of the individual LEDs. Sure you can blink an LED slower but that is not what that sentence is about. It means the slowest the LEDs are flashing will be 400 Hz. Don’t hang your hopes on it being very much faster even if this figure is true.

If lambda frequency was a real thing, then you are correct you can not achieve it with these sorts of LEDs.

The point here is that on this forum we deal with actual facts, not mumbo jumbo.

Grumpy_Mike:
It means that the writer of that sheet knows less about English than they think. It is very badly written and full of grammatical errors.

By not less that I take it to mean that this is the minimum speed of the internal PWM control of the individual LEDs. Sure you can blink an LED slower but that is not what that sentence is about. It means the slowest the LEDs are flashing will be 400 Hz. Don’t hang your hopes on it being very much faster even if this figure is true.

If lambda frequency was a real thing, then you are correct you can not achieve it with these sorts of LEDs.

The point here is that on this forum we deal with actual facts, not mumbo jumbo.

Okay, I understand now, but this is not a bullshit(1), although I tried different frequencies and it didn't work for me at all, maybe I did something wrong.

(1) Sensory dynamics of visual hallucinations in the normal population | eLife
rainbowvail/docs/sources/weekly.pdf at master · lightflicker/rainbowvail · GitHub

but this is not a bullshit(1)

The reference 1 looks on the surface to be legitimate, but that is talking about flicker frequencies of 11 to 30Hz. That is understandable as it maps into what we know of the sensory responses.

Your lambda frequency is way off target and that is where the charlatans come in. Did you notice that the original paper was talking about EMF emissions from 5G masts? The latest form of bullshit charging you hundreds of dollars for a USB stick with a grey sticker on it to protect you from 5G emissions. A simple test will prove the thing doesn't work. Just try you 5G phone while you have this protection, and see if your 5G phone still works. If it stops working then this protection is doing something, if it doesn't stop working it is doing nothing.

The second link is total and utter bull shit. It is an abuse of a GitHub page, and if I knew how I would report it to GitHub.

although I tried different frequencies and it didn't work for me at all, maybe I did something wrong.

That is how bullshit works. When it doesn't work you blame the victim not the method. Have you seen other such bullshit / snake oil scams? They all do the same thing. Faith healing if it doesn't work for some one, well that is because they didn't believe strongly enough.

Lots of scientific sounding words which impress the none scientist, if you are a scientist you know the words are being twisted to make it looks like this is respectable science. Wellness and health are such classic topics because people will say anything especially when they are ill and vulnerable.

The way these things work is to offer certainty and reason in a world where both are in very short supply. That is why people can passionately believe in them and totally ignore any possible hint of any counter evidence.

Do you know what a real scientist does all day? He does not spend his time trying to prove his / her theory is correct, he tries to disprove his theory. You notice in these scams that never happens they are always convinced they are right and have discovered a new science that is being suppressed.

Anyway I know I will not convince you because it is too late for you. You have too much riding on your belief to reject it.

However, this rant might just save someone from being sucked in to such cults.