Skip to content

ws2812 change from opendrain to push_pull output#44

Open
TechAUmNu wants to merge 1 commit into
vedderb:mainfrom
TechAUmNu:patch-1
Open

ws2812 change from opendrain to push_pull output#44
TechAUmNu wants to merge 1 commit into
vedderb:mainfrom
TechAUmNu:patch-1

Conversation

@TechAUmNu

Copy link
Copy Markdown

with open drain the driver doesn't work on hardware with inline resistance between the stm32 and output pins. Changing to push_pull output means it works reliably with a 1k resistor inline for pin protection.

with open drain the driver doesn't work very well on hardware with inline resistance between the stm32 and output pins. Changing to push_pull output means it works reliably with a 1k resistor inline for pin protection.
@vedderb

vedderb commented Jul 4, 2024

Copy link
Copy Markdown
Owner

The reason for opendrain is that some (most) LEDs require more than 3.3V on the data-pin. On 5V-tolerant pins (most are) you can use a pull-up to 5V and opendrain to make it work. If the pins are in push-pull the simple pull-up trick won't work. Maybe there should be an option to switch between open-drain and push-pull?

@TechAUmNu

Copy link
Copy Markdown
Author

The leds I am using say 0.7xVcc so 3.5v but seems to work fine with 3.3v.
But yes for compatibility having the option to use open drain or push pull would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants