The Background
I was tinkering with rolls of programmable LEDs and a Raspberry Pi and discovered that there are panels of LEDs built using the same technology. I saw more opportunities to do "things" with a panel than a 5m strip and it'd be a little easier to manage.
The Idea
I've wanted to help the teachers in my youngster's school with more advanced programming tutorials and I've started to get interested in Physical Computing as I've tinkered more and more with my Raspberry Pi. I was looking for a way to build a thing that could be controlled using Python code running on an RPi that the 10-12 year old age group could work on.
The teachers (and students) are quite competent coding with blocks (Scratch, Hour of Code), but I wanted to move things along and upskill some of the older classes, as they'll be in secondary school in a year or two and I expect they'll be writing code there.
I didn't have very clear objectives for this, just some rough ideas
- Built on Raspberry Pi
- Uses Python
- A physical output (for immediate feedback and activity)
- Relatively cheap
The Hardware
The Build
Following the instructions in the tutorial was straight forward and worked out of the box, once the power supply issues were out of the way. Construction of a "box" to mount the panel and hold all the components was half-a-day's work and didn't stretch my limited carpentry skills too much. 😅
Some views of my carpentry before the wood oil was applied
Here's the finished device, hooked up via ribbon cable to the R-Pi400 and ready to be fired up
The Output
There's a nice function in the test code you'll find in the tutorial that'll turn on specific LEDs by address. Given a list of LEDs passed as a parameter, it'll iterate through and turn them all on.
Using that function and a map of the LEDs on the panel (22x22, alternating left-right, right-left from 0) I was able to draw a few different shapes, letters and numbers and even do some cheesy animations:
No comments:
Post a Comment