Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

joe’s journal

🏷️ programming

13 posts

Arduino and WS2801 LEDs

·

The other day, @paul and I spent an hour trying to get the WS2801 LEDs working with the Arduino. They kept glowing on one LED, either full brightness or red and green. We thought it might have been library we used or the LEDs being defective, but it turns out there is an input and output side of the strand and we had it reversed. I seriously can't believe we missed that. Now they're working, fully addressable and ridiculously bright. For future reference - make sure you're always inputting into the right hole.

Side note these LEDs outgas so bad they make me sick.

image

image






arduino nerdiness

·

so @paul got a few arduinos and a raspberry pi for his work projects. If you hadn't seen them before, they're basically small, embedded all-in-one computers that are designed to be low-power and expandable. The Arduino can only run compliled programs under 32k using very little pwoer, while the raspberry pi can run a full fleged version of Linux with expandable storage, using slightly more power.

Over the past couple of weeks, we've been playing around with them to get used to them and test out their capabilities. We were able to rig up an Arduino Uno to respond to a button press, and post a test post to the estrip website. The programming logic itself was pretty basic, but I am not experienced in web stuff and it took a lot to learn how to craft a good POST header. Paul definitely did though and we were able to work through it. I love nerding out with him, he knows so much.

I can see for larger projects working on the arduino might be frustrating because the storage is so limited, and there aren't tons of libraries available because of it. Also, doing anything object oriented is a pain because you have to go through all these steps to make every new class a library. The Arduino IDE isn't too great either. It's basically a text editor with no other features although you can use an external IDE like Netbeans or Eclipse if you set it up right. But for super simple projects like sensors or little displays, I can see a good use case.

image
Kind of looks dangerous...

I want to start playing with the raspberry pi and maybe some other sensors to see what projects we can do with some more power.