If you get something working please share itI had zero luck controlling these things.
If you get something working please share itI had zero luck controlling these things.
Shawn
This file is entirely in assembly (I'm not sure how to call assembly subroutines from PBP). The author taught how to light a single RGB, my progress to date is the start of a chaser so it will light 60 rgb's sequentially and do some color shifting (Still lots to learn here). Should load right up in MPLAB (v8.9 used) The changes you may need to make for it to run:
your chip (must have SPI and 20Mhz)
your chip config settings
change nLED for your length of string (60)
scroll down to delay subroutines to speed up, slow down ...
The original author taught how to light a single LED. You will easily detect my coding as the extent of my assembly knowledge when I opened his program was nop!ColorStripTest_819.txt
Any one had any luck yet? I just picked up a 8x string and want to play with them. The SPI sounds like and interesting approach.
Bo
WOW, Nobody has provided code for an LED strip yet !?!?!?!?
Ok guys i will have working code for you before the weeks out. im thinking multi-color knight rider... sounds interesting. I will be using my trusty PIC16F877A Dev boards.
Till then, happy coding !
There are 10 kinds of people. Those that know binary and those that do not.
This technique is very interesting:
Tutorial on Programming the NeoPixel (WS2812) RGB LEDs
I'll test it with my oscilloscope someday...
Hi,
actually I had idea to put few passive component for making one-shout for short period and one shut for longer period
after that i timed mssp module to average carrier frequency (positive + negative periode) this can be done using add register i done it with 16f1827 + internal osc +PLL
intention was to make it on both MSSP modules, but i have problem using both paralell.....
ok, this is working, and now timing and hw-accelerated sending is piece of cake for basic timings.....
but i miss memory, so i have to port all onto 46k22 which is still dual mssp internal 64mhz, cheap, need to read erratas frequently but almost always there is workaround
why more memory ? because i want to have ability to change any led, so you need 3 byte per led, and for 100 leds, this is 300 byte of ram....
this days i obtained psoc4 and i want to organize UDB module for hardware accelerator for sw led, but ah.... this is totally hardCore
http://www.element14.com/community/b...ioneer-dev-kit
noone for now is'n sharing code/project, so i can learn from working project.... there is actually other shared article as arduino or others...
i hope i at least point you in some direction....
reagards
Well guys..
I have been messing around with this issue all weekend.
Still working on the timing control.. very tight timing needed to drive these strips.
till then.. happy coding.
There are 10 kinds of people. Those that know binary and those that do not.
Bookmarks