MSP430 LaunchPad DM...
 
Notifications
Clear all

MSP430 LaunchPad DMX code examples

44 Posts
10 Users
0 Reactions
26.7 K Views
timon
Posts: 2149
(@timon)
Noble Member
Joined: 16 years ago

I hate to say this but you'll need a bad word filter if you let the public send messages.


Reply
RobG
Posts: 1255
 RobG
Topic starter
(@robg)
Noble Member
Joined: 14 years ago

You could send ASCII message over DMX (one letter per channel) and use font data to display it.
Will mod my program to do that tomorrow.

OK, I have some additional thoughts.
Instead of using DMX, plain old serial would be much better, just use RS-485.
Using LaunchPad, I can probably do 8 x 75 or 8 x 150 array of LEDs.
Already got the solution in my head (it's almost 2am, so implementation will have to wait till the morning.)
I have to figure out the color though.


Reply
rjchu
Posts: 1191
(@rjchu)
Noble Member
Joined: 17 years ago
timon wrote:I hate to say this but you'll need a bad word filter if you let the public send messages.

Yup, figured that but ill keep those messages as I'm sure it'll be a source of amusement. 🙂

Rob, you're an animal!

Thanks,

-joni-


Reply
RobG
Posts: 1255
 RobG
Topic starter
(@robg)
Noble Member
Joined: 14 years ago

I will start a new thread for this, but before I do, what do you think about the specs below?

115.2kbps, 8 bit, 1 stop, RS-485, ASCII
128 char display buffer (max message size)
128+ char receive buffer
adjustable scroll speed 10-40fps (20fps default)
5x7 character set
8 outputs (since chars have 7 rows, only 7 will be used unless we use 8x8 font)
up to 256 LEDs per strip (will fit 42 5x7 chars)
solid color or predefined color palettes (each char or each char's column could have a unique color)

You will need USB(RS-232)->RS-485 dongle on the PC side.

Each message will begin with a "{" start byte ( I would allow ASCII chars in the range 32-122, {|}~ will be used to control MSP430.)
Second byte will select solid color or a palette , color# = ASCII# - 32.
Third byte will select scroll speed, speed = ASCII# - 22 (limited between 10fps and 40fps)
Fourth byte space
Then up to 128 ASCII chars (actual message to display)
The last byte is "}" end of message byte

Sending "|" would pause the message at the beginning of the display. Another "|" would continue scrolling it.
Sending "~" would stop and reset MSP430 and the display

For example: Sending { Hello world!} from the Terminal would play "Hello world!" at 10fps in color #0.


Reply
IdunBenhad
Posts: 1603
(@idunbenhad)
Noble Member
Joined: 18 years ago

Hi:
You said you were using the MSP4302553, but which version? There appear to be several on TI info. (NEVER MIND ON THE VERSION--HAD I LOOKED MORE CAREFULLY, IT WOULD HAVE BEEN THE MPS430G2253IN20 VERSION)

Also, can you please show how you hooked up the Launch Pads? I have 2, but have never really played with them! I also have the Capactive Touch BoosterPack, but I really don't know why!

I would like to use the Launch Pads as a low cost controller for about 25 luminaries with 3 modules of 3 RGB pixels in each. That would end up being about 225 channels. This looks like it may be just the thing to do it.

Thanks


Reply
Page 3 / 9
Share: