Search found 875 matches

by mnfisher
Sun Apr 28, 2024 10:18 pm
Forum: General
Topic: 9bit UART - Arduino Mega 2560
Replies: 5
Views: 42

Re: 9bit UART - Arduino Mega 2560

Note - could possibly have done the send and receive on the same Mega. I didn't think of it beforehand... I powered the second board from the first as I couldn't lay my hand on 2 of the Type A USB cables (though they are surely hiding somewhere) Windows terminal programs don't support 9 bit data (th...
by mnfisher
Sun Apr 28, 2024 9:43 pm
Forum: General
Topic: 9bit UART - Arduino Mega 2560
Replies: 5
Views: 42

Re: 9bit UART - Arduino Mega 2560

A quick demo of 9 bit comms using 2 Arduino Megas. One is the 'sender' (S) and one a 'receiver' (R) (I called it UART) (that echoes the received data to a PC via the USB comms UART) I connected RX1 to TX1 and TX1 to RX1 on boards 'S' and 'R' - also GND (essential) and 5v as I have the sender powered...
by mnfisher
Sun Apr 28, 2024 12:30 pm
Forum: General
Topic: 9bit UART - Arduino Mega 2560
Replies: 5
Views: 42

Re: 9bit UART - Arduino Mega 2560

... There is an issue - send and receive take a byte which is 8 bits, so some extra work needed..

- I might be wrong on this - looks like the functions now return an int.
by mnfisher
Sat Apr 27, 2024 9:10 pm
Forum: Tips & Tricks
Topic: ESP32 Compilation Warnings
Replies: 0
Views: 20

ESP32 Compilation Warnings

A little tip to make life easier. The output from the esp32 compiler is a 'little' verbose. It is possible to turn off some of the warnings. In your project directory/main Edit CMakeLists.txt At the end of the file add: target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-variable) target_com...
by mnfisher
Sat Apr 27, 2024 9:07 pm
Forum: General
Topic: ESP32 WS2812 LEDs (An alternative approach)
Replies: 0
Views: 23

ESP32 WS2812 LEDs (An alternative approach)

This is some alternative code for WS2812 LEDs running on the esp32. Rather than the RMT based component (I get issues with this being deprecated...) I tried two alternatives - using the i2s hardware where I got 'reasonable' results. LEDs would set but occasional glitches ( I think the T1L time I got...
by mnfisher
Fri Apr 12, 2024 6:48 am
Forum: Projects - Embedded
Topic: SPI_ Master SendByteArray only sending once in loop
Replies: 5
Views: 149

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: 196

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 170 times

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

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: 1311

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: 1311

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