Any chance you might share the project or at least photos? Would probably be useful for others. And even if you're not looking to share the code and circuit details, just photos (or a cell phone video uploaded to youtube) and basic info could...
Sure, I'll be sharing some videos soon! it is just a test to communicate with the LEDs.
So it is a simple SPI connection on a protoboard.
my real aim is use a 24v addressable LED chip (16 bits also) to drive some power mosfets with high PWM and...
Thank you, great observations Paul!
The intent now is just testing communication with this 16bit led strip, it is beautiful
smooth color passages even with low brightness.
Thanks. I've updated the code with Paul suggestions, and converted my RGB phasing to radians, so now code is working great
I've used std::modf instead of modff, to use radians directly
#include <Arduino.h>
#include <SPI.h>
float twopi = PI *...
uint16_t r = (sin(t + 60.0 * 0.0) * max + max);
uint16_t g = (sin(t + 60.0 * 1.0) * max + max);
uint16_t b = (sin(t + 60.0 * 2.0) * max + max);
Suggests an assumption that sin takes degrees rather than radians, so there are...
I'm testing some new LED strips (HD108) with Teensy 3.2 and I'm noticing some unusual
Animations begin very smooth and beautiful, over time (after one minute) we can notice looking at the LEDs it gradually starts decreasing frame rate.
Resetting...