What size capacitor would you install on this device?
Hi,
Where do you want to install the capacitor, and what do you need it for?
Best Regards!
between 5v and gnd to help with power spikes
Hi,
Do you want to design a power protection circuit yourself? I suggest you connect a complete power protection circuit module so that you won’t damage your equipment.
Best Regards!
does anyone know the maximum power draw of this unit… assuming all LED are on at maxumum brightness and on 5v supply
also does anyone know if the led will light on 3v3
https://www.amazon.com/Comidox-Module-Voltage-Converter-0-9-5V/dp/B07L76KLRY
any experience with this unit… can it boost 5V for led use? is 480mA enough?
Anyone got any code for this unit?.. I know the basic stuff, but anything advanced… like color matrix management?
I’m actually surprised they didn’t include the passives on the board! I have a Xiao sized rgbled board design I can share that uses SK series 2020 ws2812 LEDs with the correct resistors and capacitors as per the LED data sheets…
You can see the smd resistor and capacitor on each board down by the pin header.
These are 8x6 Though, and pull 1.5 amps at Max brightness. A small passive heatsink is required if you want to use them at full power for a long time.
yes… like 20 brightness will hurt your eyes… i think i may have gone up to 50 or so and it was getting measurably hot 1.5 amps… i think this little power booster i got only goes up to 450 ma … what da
The onboard regulator on the Xiao itself can push done serious current. I know the Pico series can push like… The full 1.5A. it’s probably not healthy for it though…
oh sorry you asked for code, this is run via a single data pin. what xiao do you want to run it with I’ll grab you the correct example. except for the nrf54l15, i’m writing a ws2812 driver for it.
Rp2040/rp2350
esp32c3
yeah… i was just posting some google hits that got halfway close to the mark… like everything i am just going to write the code i need to work… I was just talking to myself out loud-but thanks for joining in!
I was trying to see if someone had written code for this… part of my problem is my brain doesn’t work like normal people, so i gotta make it CUSTOM
But i will let you in on the project, to make it short i want to make anticollision lighting system for my drone… I was thinking of using 1 or multiple of the XIAO 6x10
… this is going to be long… lol
so i am figguring power is going to be a problem
the first need is a white strobe light
then the next is navigation lights, green, red, and white on the back, yellow or orange on the front
so i wanted to make a human readable interface so i could define colors, lets say KRGBWYCM and make a matrix of these letters and then have the code run a lookup scheme to build an array and push it to the Adafruit Neopixel Library
so and then i wanted to use an IMU to make the brightness higher when the drone is higher and lower when lower so it doesnt blind on startup… then i wanted to use the IMU to make the navigation lights switch based on the movement of the drone…
Red on Right Returning, Green on Left and White on Stern (yellow on front)
so if the drone is moving away then from a navagation standpoint the Stern will be facing, even if it is actually the front or side… if that follows
i was just putting out a request if anyone knows of any Libs doing similar things… without anything better i guess i am going to use custom code and NeoPixel…
The u8g2 is a good lib, but i dont think it is b eing updated… I wanted to learn how to manage memory blocks like it does… also wanted to do epaper displays with it, but the developer said he was not adding these features… anyway
The connections are 3.3-5v, Data, Ground,
For rgb you send 24 bits representing the g,r,b values of each led pixel.
Each led pixel then consumes the first 24 bits it receives, and passes on any others it gets until it gets the reset bit.
For RGBW, you send 32bits per led pixel instead.
for ws2812 the max rate is 800khz, the achievable framerate is proportional to the length of the WS2812 chain, as it takes ~2.7ms to activate each led. so with 1 led you can get around 400 fps, but here’s a good article on the subject.
I found a better executed than my version of the same board concept here.
I really like their pad style better than my thru hole connectors.
That’s a pretty cool project, my LED dagger build runs LEDS via PWM or GPIO in response to IMU input.
you can define KRGBWYCM pretty easy with #defines here’s psuedo code for a non-blocking ws2812 animation system to do a strobe.
//start of pseudo code.
struct color = {unit8 G,unit8 R,unit8 B};
#define K = {0,0,0} //Black
#define W = {255,255,255} //Black
func def:
rgbled_drawpixel{pixel_index, color}
rgbled_drawpixel{pixel index, K}; // set pixel at pixel index to black (off)
main loop:
Main,
{
//init section
init imu,
init buffer for rgbleds
bool strobestate;
timer_strobedelay = 50ms
int mode; //0 = off, 1 == strobe, 2 == not impliemented.
main loop starts:
//Read IMU to buffer for later here, scale the imu value for Z height to 0-255, //then add a case that updates the led based on that input each time the timer //calls the animation system.
//for bonus points, run this on core 2 of a dual core system, and manage it //from core 1 using IPC.
on timer tick, we call
animation(
Select
case 0
for i = 0 to number of leds
}
rgbled_drawpixel(i,k);// set all leds to black (off)
}
break;
case 1 //strobing at 50ms timer rate.
strobestate = !strobestate; (flip strobe state each time this is called by timer)
if strobestate == 1 then
color = K;
else
color = W;
for i = 0 to number of leds
}
rgbled_drawpixel(i,color);//
}
break;
)end of animation loop
end of main
)
is 50 ms a good flash rate… i was wondering if i should ramp the brightness or just go on/off, do a spiral pattern or wipe over? i forgot you are the RGB GUY… LOL
you can just load blinky onto any xiao you have and adjust the timers in it to see how fast 50ms flash rate is. by default it flashes every 1000ms.
on the subject of current, I checked the datasheet,
Each led pulls 60ma total (20ma per color)
there are 60 leds in a 6x10 display.
60ma*60leds=3600ma
1 Amp == 1000ma,
Total current draw = 3.6A at max brightness.
TLDR: don’t program these to go full bright, it’ll brown out the mcu.
yes … your eyeballs too! thanks for the calcs… i think multiple pannels going to be a non-starter for battery weight and power… also heat buildup… even though it will have its own dedicated fan