Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 21:47 29 Mar 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : WS2812 addressing

Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 12:37pm 23 Jun 2022
Copy link to clipboard 
Print this post

This just seems to be a very cool way to chip-select. Must be a device out there that does this but I havent found it  





Craig
 
chuckallisonusa
Newbie

Joined: 04/12/2021
Location: United States
Posts: 2
Posted: 12:44pm 23 Jun 2022
Copy link to clipboard 
Print this post

The ws2812 works in the order it is connected. If you want a certain spot the whole chain is populated with information for blanks until the one you want. If you 8 in a chain you need 8 data sets.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 12:52pm 23 Jun 2022
Copy link to clipboard 
Print this post

Each WS2812 has 3 shift registers in series, for Red, Green and Blue. As you clock bits in on the input they are clocked out on the output. As each register is 8 bits long you have to clock 24 bits for each WS2812 in the chain. That's why you need to know how many there are - you simply re-write the entire chain to change a single bit because it's actually a single flippin' big shift register.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 01:17pm 23 Jun 2022
Copy link to clipboard 
Print this post

Oh I get it but I'm just thinking of the on/off aspect. Imagining a string of addressable opto-couplers, SSRs etc., driven by a single output.  




Craig
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024