3 ms·
Oh my, Rust vs JS. It's almost guaranteed there will be more comments about that than the actual treatment. That's awesome that you created something free. You
by giantg2 3y ago
Oh my, Rust vs JS. It's almost guaranteed there will be more comments about that than the actual treatment.
That's awesome that you created something free. You might want to add a standard license to your disclaimer for better liability protection (something that already stands up in case law).
Do you have any verification or adjustment mechanism to ensure the correct frequency across hardware variations? I assume this would be hard to do, but would be interesting if you were able to have something like that.
- eigenvalue 3y agoInteresting idea. An iPhone camera now can record 60 frames per second (and much more in slow motion mode), so it seems like it wouldn’t be that hard to make something that can verify the frequency with a pretty high degree of accuracy.
- fstokesman 3y agoIf you can only capture 60FPS, you cannot accurate measure a signal of 40Hz, since it is below the Nyquist frequency. (I know you mentioned the slow-mo camera which probably does have the bandwidth).
- ladams 3y agoFrequencies beyond the Nyquist limit alias back to resolved modes. So a combination of the camera plus a human eye to check that the flashing is “fast” (i.e. above the Nyquist limit) should be enough to verify the frequency.
- eigenvalue 3y agoOf course, you’re right about the Nyquist frequency (how could I forget the Nyquist-Shannon Sampling Theorem!). But I looked it up and the iPhone 15 slow motion mode can do up to 240 fps which is enough to easily measure it super accurately with a short sample.
- aunetx 3y agoYou technically can measure over the nyquist frequency, for example here if you measure 80Hz with your 60Hz camera, you can be sure that either you really did the math wrong with the intended 40Hz, or it is actually the nyquist shadow frequency of your 40Hz oscillation!