ws2801 light pixels straight from computer? Please advise.

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

ws2801 light pixels straight from computer? Please advise.

Postby mnlagrasta » Wed Apr 25, 2012 4:06 pm

Software guy here, flailing with hardware. Sorry if it's a dumb question.

I want to run one of the ws2801 based light strips, direct from a mac mini without an arduino (or other microcontroller). Is it possible to do this with a usb ftdi cable like sold in adafruit's store? If so, would that fall under the "bitbang" technique?

The other option, if I think I can figure it out, would be to use a BeagleBone and use, I think, the GPIO pins to send the signals down the led strip.

In both cases the BeagleBone or Mac mini is just acting as a web server to receive remote commands and call a script that manipulates the lights. The beagle board option would be cool because it would appear to not be tethered to a computer even though it technically would be still.

If you are really curious, I am trying to ramp up a project before exhibiting at Maker Faire and I'm thinking about moving away from the ThingM parts. http://makerfaire.com/pub/e/7403

Wait...is it ok to post links here?

Anyway, any help is GREATLY appreciated!

Mike
mnlagrasta
 
Posts: 9
Joined: Wed Apr 25, 2012 3:47 pm

Re: ws2801 light pixels straight from computer? Please advise.

Postby adafruit_support_bill » Wed Apr 25, 2012 4:40 pm

The FTDI approach would not work. A Beaglebone would - but you would have to locate or write a library for it. We have existing libraries & demo code that run on any of the Arduino boards. The Arduino Ethernet board is capable of acting as a web-server.
User avatar
adafruit_support_bill
 
Posts: 16006
Joined: Sat Feb 07, 2009 9:11 am

Re: ws2801 light pixels straight from computer? Please advise.

Postby pburgess » Wed Apr 25, 2012 5:07 pm

Hey Mike,

Unfortunately, no, FTDI bitbang mode doesn't work well with the ws2801 pixels (really, I put a TON of futile effort in trying to make the combination work).

Even if it did work, enabling FTDI bitbang mode on the Mac is a bit annoying. Why the allergy to Arduino? Aside from being close to plug-and-play, the low-level LED code is already written.

Hey, if you're using BlinkMs, this might be worth exploring: http://www.paintyourdragon.com/?p=43
I've controlled BlinkMs via the monitor port on an iMac in the past (there's even some code at the above link), but it's been ages and I can't say whether this will compile and run on the current OS X, nor if it's compatible with the graphics hardware in your Mac Mini. What version of both do you have?
User avatar
pburgess
 
Posts: 1332
Joined: Sun Oct 26, 2008 1:29 am

Re: ws2801 light pixels straight from computer? Please advise.

Postby mnlagrasta » Thu Apr 26, 2012 10:46 pm

Thanks for the responses. Certainly no allergy to Arduino, it is my preferred microcontroller. I was just trying to keep this project as accessible as possible to the less technical crowd. Right now it's just some node code, the linkm and however many blinkms one wishes to buy. And if you keep that to less than 8 blinkms, you don't even need to supply power.

Now I'm doing sort of an advanced version that will support more lights and is a little cheaper. I would rather make use of the addressable strands from adafruit, giving me 20 leds for the price of 3 blinkms.

I suppose an arduino + ethernet or wifly shield would be pretty slick too. Then I could completely decouple the computer and hit it by ip instead of the server running on the computer itself.

Thanks again for the clarification!
mnlagrasta
 
Posts: 9
Joined: Wed Apr 25, 2012 3:47 pm

Re: ws2801 light pixels straight from computer? Please advise.

Postby paulstoffregen » Fri Apr 27, 2012 11:58 am

It's possible to make a Teensy programmed with Arduino act pretty much the same as the FTDI bitbang mode, at the same full USB speed, but without any messy driver issues. To your software, it's just a normal serial port. Like the bitbang mode, there are some special considerations on formatting the data.

It's explained in this thread.

viewtopic.php?f=47&t=25854
paulstoffregen
 
Posts: 78
Joined: Sun Oct 11, 2009 10:23 am
Location: Portland, Oregon, USA


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: hiduino and 7 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]