TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust, a Raspberry Pi and Addressable LEDs

119 pointsby slicedbrandyalmost 6 years ago

4 comments

slicedbrandyalmost 6 years ago
So I finally got around to writing about a project using the Raspberry Pi to power a panel of WS2812b LED&#x27;s.<p>Let me know what you guys think.
评论 #20419604 未加载
评论 #20418851 未加载
评论 #20420532 未加载
评论 #20418267 未加载
joe_xyzalmost 6 years ago
Very cool!<p>We built a similar WS2812b array at university for an embedded systems design project: <a href="https:&#x2F;&#x2F;github.com&#x2F;joe-wright&#x2F;wiisel" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;joe-wright&#x2F;wiisel</a><p>We looked at using a Raspberry Pi but instead settled on an mbed FRDM-KL25Z so we had more control over the signal timing. The trade-off was that the KL25Z only had 16KB memory instead of the Pi&#x27;s 512MB, so getting everything to fit took a bit of creativity and a few late nights...
FraKtusalmost 6 years ago
For that to work correctly, the piece of code generating the signal should never be interrupted.<p>To my knowledge, this is not possible with a Raspberry Pi. You should see glitches on the output when your loop generating the 1s and 0s is interrupted.<p>That may be ok it if you just when to send one static light pattern but the glitches should be more evident if you want to create beautiful, flowing light patterns.<p>That&#x27;s why it&#x27;s better to drive those WS2812b with an Arduino that you code bare metal.
评论 #20418051 未加载
评论 #20420033 未加载
评论 #20419001 未加载
评论 #20418344 未加载
评论 #20405184 未加载
评论 #20419419 未加载
评论 #20420628 未加载
teambobalmost 6 years ago
You need to use the timer to bit bang - which may require writing a device driver<p>Source: wrote a software UART for an embedded project