Search found 870 matches

by mnfisher
Fri Apr 12, 2024 6:48 am
Forum: Projects - Embedded
Topic: SPI_ Master SendByteArray only sending once in loop
Replies: 5
Views: 132

Re: SPI_ Master SendByteArray only sending once in loop

Please post your code - or a snippet showing the problem. SPI sends overwrite the sent data with values received by the sender (or 0 if there is no reply) - so you might need to just update the array values each time.. loop (forever) loop (i = 0.. 7) array[i] = val[i] send (array) delay(1s)
by mnfisher
Wed Apr 10, 2024 8:56 pm
Forum: General
Topic: GLCD Display Manager Overhaul
Replies: 5
Views: 168

Re: GLCD Display Manager Overhaul

is the display component connected correctly?
I'm going to say 'maybe' - or I think/hope so...

2024-04-10_20-53-02.png
2024-04-10_20-53-02.png (23.48 KiB) Viewed 142 times

Will play some more....
by mnfisher
Wed Apr 10, 2024 6:49 pm
Forum: General
Topic: GLCD Display Manager Overhaul
Replies: 5
Views: 168

Re: GLCD Display Manager Overhaul

Looks a very neat idea. I tried with the esp32s3 board (parallel ILI9488) - and got many build errors. G:/Downloads/DisplayManagerDemo/main/esp-project.c: In function 'FCD_0fe41_gLCD_ILI9488__Initialise': G:/Downloads/DisplayManagerDemo/main/esp-project.c:2810:21: error: expected expression before '...
by mnfisher
Fri Apr 05, 2024 10:48 pm
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

With a little bit of tuning - now working with a 1 metre strip (they turned out to be RGB as well) I hit a very strange effect. If if Refresh I do for a 0 bit. PORTD = ph; PORTD = pl; Then if I do the same for a 1 bit with a few nops. Then it is slower (for the 0 bit) than doing PORTD |= 0x80; PORTD...
by mnfisher
Fri Apr 05, 2024 11:01 am
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

Now tested with 2 LEDs and seems to work AOK (I have a few 'single' LEDs with nice sockets / plugs - so adding extra is easy!) - which bodes well for multiple.
I think I have a 1m of these somewhere (RGBW) - which I will try and find to test further.

Martin
by mnfisher
Thu Apr 04, 2024 10:26 pm
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

Okay a bit of a play - and a version running on an 8MHz MCU. There is an issue - the pin used is hardcoded here as D7. If you want to change it then you'll need to change the output at the start of main (this sets the pin to be an output and should really be done by setting DDRx etc). And the occurr...
by mnfisher
Thu Apr 04, 2024 6:51 pm
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

I've tested using an ATMega8 - running at 16MHz (with external crystal) - LED lights all good and at 8MHz (internal)- not good. Checking on a scope - the timings look 'out' when running at 8MHz - and in fact altering the clock speed - seems to generate the same number of nops (for example setting it...
by mnfisher
Thu Apr 04, 2024 12:15 pm
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

Can you try the attached - just outputs a colour (255) to each of RG and B then repeats - note that if you don't have the RGBW variant (I don't) then setting W to 0 is okay... (Note I use D7 as the output pin - you'll need to change this to suit)
test_rgb.fcfx
(12.69 KiB) Downloaded 6 times
Martin
by mnfisher
Thu Apr 04, 2024 11:52 am
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

Just got an SK6812 running with an Arduino - admittedly 16MHz - using the library. The solution seems to be simpler than expected - add a small delay after the initialise (it seems that the LED takes a moment to become 'ready' after power on')
by mnfisher
Thu Apr 04, 2024 11:17 am
Forum: General
Topic: SK6812 LED
Replies: 37
Views: 724

Re: SK6812 LED

I have some sk6812 chips - I'll see if I can get it working in hardware for you....

Again - just to check - your board is running at 8MHz.

The alternative is a ws2812?

Martin