Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:32 15 Sep 2025 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 : WS 2812 led stripe

Author Message
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 11:39am 05 May 2014
Copy link to clipboard 
Print this post

Hi,

i have much fun with a Led stripe and an arduino , but i think running this with the micromite
are much moore fun !

What do you think geoff ?

led strip code



and

c code for pic

 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 12:51pm 05 May 2014
Copy link to clipboard 
Print this post

Toggling portpins in Sub microseconds will be to fast for mmbasic...
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 01:07pm 06 May 2014
Copy link to clipboard 
Print this post

i mean an internal routine which shifting the bits from the ledstring to a port with the right timing.

such like ledshiftout,ledstring,ledcount

the ledstring contains the r,g,b data for each led ( micromite can maybe support a 85 led stripe , because
the max length of a string is here 255.

 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 09:11am 12 May 2014
Copy link to clipboard 
Print this post

finally it works . its fantastic to see a basic powered led stripe
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 10:06am 12 May 2014
Copy link to clipboard 
Print this post

Would love to see it, can you post a upload on youtube or something like that?
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 10:27am 12 May 2014
Copy link to clipboard 
Print this post

led stripe Edited by plasma 2014-05-13
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 950
Posted: 07:18pm 12 May 2014
Copy link to clipboard 
Print this post

Hi Plasma,

would you paste your code here? ...I have a two or three meter stripe here but not enough time to test it...

Thanks!

Frank
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:12pm 12 May 2014
Copy link to clipboard 
Print this post

Hi Plasma, that looks good.
Would using SPI for controlling those led strips not be a possible way to get the needed speed from Basic?

btw, i saw your video controlling a stepper motor with a micromite.
I have the same ones here, would you be able to share your code?


Microblocks. Build with logic.
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 09:03pm 12 May 2014
Copy link to clipboard 
Print this post

Hi ,

At the moment it use a modified MMbasic
for the bitbanging .
To get a constant timing i forbid interrupt .
This shuts also the video down .
The delays are solved with a different loop
for 1 or 0 bit.

All in all i think a modified spi routine is
much better !

The ledcolour are stored in a string .
I modified the strings to get new colours with
a basic routine .
The Frame rate depends on the lenght of the
String or Led count.
To get much moore as 80 led i have an idea
but this needs time .
A left or rightshifting is easy todo also.

This is all !


If iam able to solve this with spi i will send the
Code to Geoff.
Maybe he put this in , also on the Micromite !

All other codes from my videos needs to be resurrectet!
I will take a look !

Gtx
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 11:24am 18 May 2014
Copy link to clipboard 
Print this post

134 Led

same without Pause 20ms

no array yet
no spi yet

@ I think i have the micromite source for the stepper motors

gtx
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025