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: GermanyPosts: 437 |
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: GermanyPosts: 722 |
Toggling portpins in Sub microseconds will be to fast for mmbasic... |
||||
plasma Guru Joined: 08/04/2012 Location: GermanyPosts: 437 |
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: GermanyPosts: 437 |
finally it works . its fantastic to see a basic powered led stripe |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
Would love to see it, can you post a upload on youtube or something like that? |
||||
plasma Guru Joined: 08/04/2012 Location: GermanyPosts: 437 |
led stripe |
||||
Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 831 |
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: ThailandPosts: 2209 |
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: GermanyPosts: 437 |
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: GermanyPosts: 437 |
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 |