juribeparada / MMDVM_HS

MMDVM HotSpot: firmware for ZUMspot or MMDVM_HS based boards (D-Star, DMR, YSF, P25, NXDN and POCSAG)
GNU General Public License v2.0
357 stars 141 forks source link

Led ws2812b #59

Closed ea7gwc closed 6 years ago

ea7gwc commented 6 years ago

I ask from my ignorance ....... it would be possible the use of a led ws2812b for mode indication. this would use a single line and no 6 led and 6 resistor for mode indication.

That is, a single LED with color change.

73

rogerclarkmelbourne commented 6 years ago

The problem with those ws2812b LED's is that they are actually quite difficult to control. They require very precise pulse widths of serial data to be sent to them, which either requires the interrupts to be disabled or to use the SPI bus.

Turning off the interrupts probably isn't an option, even when just changing the LED colour as I suspect the transceiver chips interrupts the STM32 processor when they have data.

On the single transceiver hotspot boards, the 2nd SPI channel could be used to send the data, but I don't know if thats possible on the duplex hotspot, because they may be using the 2nd SPI channel for the second transceiver

Also. I'm not sure if you mean as string of 6 WS2812b LEDs or whether you mean one LED and you change its colour ? In terms of User Interface design, replacing 6 separate LED's with one multi coloured LED would make it very difficult to know what the board was doing, as you'd need to understand what the different colours mean.

If you mean 6 x WS2812B, then again, I'm not sure of the benefit. Yes it saves some GPIO, but the STM32 is not short of GPIO's

phl0 commented 6 years ago

I have some WS2812bs on the bench ... need to expermiment with those...