Code Monkey home page Code Monkey logo

ws2812b's Introduction

Getting Started

  1. install cargo generate cargo install cargo-generate
  2. run cargo generate --git https://github.com/dcaponi/esp32-rust-template
  3. ensure the project builds & links cargo build
  4. Now quit f*cking around and honk a bunch of one bits to your device -BCR

Other Things You Might Need

Linux (Ubuntu)

Low Level Build & Flash tools

sudo apt-get install -y clang llvm flex bison gperf cmake
ninja-build ccache libffi-devlibssl-dev libusb-1.0-0 libudev-dev
dfu-util package-config

espflash, ldrpoxy cargo install espflash ldproxy

llvm tools preview rustup component add llvm-tools-preview

Add the risc-v target for esp32 devices rustup target add riscv32imc-unknown-none-elf

ws2812b's People

Contributors

dcaponi avatar

Stargazers

Alex Kleidinc avatar Kim Tore Jensen avatar

Watchers

 avatar

Forkers

kleidinc

ws2812b's Issues

Trouble replicating your results - on oscilloscope.

Thanks for your article on abusing spi for ws2812b! I'm trying to adapt what I learned from your article and perhaps you have time to comment. I'm using a Seeed Studio ESP32-C3 board at 5v to VUSB.

The controller that came with my led strip of ws2812bs still works fine to control the strip, so I haven't broken anything yet. But I'm not getting the lights working from my code (although basics like println() are working fine). I haven't gotten yours to compile yet - I think I'm using a different set of libraries and I'm pretty new to embedded development - but I'll probably revisit trying to get yours to build and run.

I've tried with or without the external 220Ω resistor and it doesn't seem to make a difference on the signal. Wowki doesn't have a capacitor (100uF) that I can show between my VCC and GND, nor the grounding of the WS2812b, but it's there.

image

https://github.com/JasonKleban/navlights/blob/49f5adadc44c9ecb2de9d67f810f5aba8e47aa66/src/main.rs#L66C1-L86C6

Every 5 seconds (that's my loop delay), I can capture this picture on the scope I barely know how to use:

image

I expect to see wider pin-high durations. These seem to be 1us pulses. Unless the scope is just showing me edges for some reason.

The LED strip controller looks different on the scope, but it does fast animations of the full strip, so I can't really compare.

Reference pinout. I'm using VUSB, GND and MOSI/GPIO10/D10

image

Not your problem, of course - just reaching out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.