Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Light Painting

by davidh on Fri Aug 10, 2012 12:37 pm

Hi,

I was on RaspberryPi.org and saw the Light Paintings. Really liked it. Did you use LED cables?

Cheers
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Light Painting

by adafruit on Fri Aug 10, 2012 12:50 pm

davidh wrote:Hi,

I was on RaspberryPi.org and saw the Light Paintings. Really liked it. Did you use LED cables?

Cheers
David



http://learn.adafruit.com/light-paintin ... spberry-pi
User avatar
adafruit
 
Posts: 11643
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Light Painting

by pburgess on Fri Aug 10, 2012 12:52 pm

Thanks David!

The project used this LED strip, just short of 3 meters worth.
User avatar
pburgess
 
Posts: 2441
Joined: Sun Oct 26, 2008 1:29 am

Re: Light Painting

by tbitson on Fri Sep 14, 2012 9:41 pm

Are the example image files available?
tbitson
 
Posts: 22
Joined: Sat Sep 03, 2011 7:34 am
Location: Tucson, AZ

Re: Light Painting

by pburgess on Fri Sep 14, 2012 11:40 pm

Sure! Here's the ones I think worked out best...

fireloop.png
fireloop.png (27.34 KiB) Viewed 1734 times

tronbike.png
tronbike.png (51.6 KiB) Viewed 1734 times

cokecan.png
cokecan.png (32.32 KiB) Viewed 1734 times
User avatar
pburgess
 
Posts: 2441
Joined: Sun Oct 26, 2008 1:29 am

Re: Light Painting

by tbitson on Sat Sep 15, 2012 1:28 pm

Awesome. Thanks Dr. dragon. The flames are best!
tbitson
 
Posts: 22
Joined: Sat Sep 03, 2011 7:34 am
Location: Tucson, AZ

Re: Light Painting

by Bentpins on Mon Sep 17, 2012 11:45 am

Hello Phil,

I put one of these together yesterday with a 32 pixel strip from Adafruit strapped to a PVC pipe. I got something, but the image was not displaying correctly. Then I looked at the test images you posted (thanks for those, they helped connect the dots :)). Based on the resolution, your strip must have been 92 pixels long right?

You must have been traveling at a good clip too? To get results from my setup, it had to really be moving!

I love the POV thing but got intrigued with the idea of a matrix. I read some of the other posts about this and I started putting together a matrix that will be 10x16 from the 5 meter LPD8806 strip I also bought and wondered what it would take in the code to make it display on the matrix?

I ran the strips in a zig-zag pattern and bought the 10 amp unit as well to handle the power required.

I'm new to Python and electronics, so just looking for a push in the right direction.

Thanks,
Bent
Bentpins
 
Posts: 5
Joined: Wed Sep 14, 2011 12:19 am

Re: Light Painting

by pburgess on Mon Sep 17, 2012 1:34 pm

Yep, 92 pixel strand, arranged in a circle rather than a line. Not sure of my speed, but I'd guesstimate it was at least 5mph...did this on the back of my bike so the images would be smooth and not have the sort of "jumpiness" I've seen on hand-carried light paintings.
User avatar
pburgess
 
Posts: 2441
Joined: Sun Oct 26, 2008 1:29 am

Re: Light Painting

by scooter1015 on Sat Sep 29, 2012 1:38 pm

Hey! So I read this piece and knew I had to give this a shot. I'm getting the software up and running but have a problem when I try and run the code that you gave. The following error is what I keep getting:

File "lightpaint.py", Line 7 in <module>
import RPi.GPIO as GPIO, Image, Time
ImportError: No module named Image

I've installed the GPIO libraries but when I try and run 'sudo apt-get install python-imaging-tk' it cannot fetch some of the archives. Any suggestions to get this going?

Ty
scooter1015
 
Posts: 3
Joined: Sat Sep 29, 2012 1:29 pm

Re: Light Painting

by pburgess on Sat Sep 29, 2012 7:49 pm

Hmm...afraid I'm away from my Pi at the moment, but will try to help. Is this using the Occidentalis distribution or something else? And could you copy-and-paste the exact error messages here? (Or just an initial subset, if the list is hugely long.) Might also try:
Code: Select all | TOGGLE FULL SIZE
sudo apt-get update
sudo apt-get upgrade

to bring everything else up to date, then try installing python-imaging-tk again.
User avatar
pburgess
 
Posts: 2441
Joined: Sun Oct 26, 2008 1:29 am

Re: Light Painting

by scooter1015 on Mon Oct 01, 2012 8:14 am

The update did the job, Thanks! The board must have had an issue talking with some of the mirrors to get the downloads. I tried to redownload the whole package a few times, but didn't have success until I used the update command instead! Thanks again!
scooter1015
 
Posts: 3
Joined: Sat Sep 29, 2012 1:29 pm

Re: Light Painting-python noob

by thebignasty on Fri Oct 12, 2012 11:55 pm

my coding experience is dated and python is new to me. i am getting two different errors-one is file "lightpaint.py", line 54 SyntaxError: Non-ASCII character '\xc2' in file lightpaint.py on line 54 but no encoding declared;

then if i add # -*- coding: utf8 -*- i get the following error
file "lightpaint.py" line 54 spidev.write(column[x]) indentationError: expected an indented block

any ideas? thanks in advance
thebignasty
 
Posts: 2
Joined: Fri Oct 12, 2012 11:49 pm

Re: Light Painting

by thebignasty on Sat Oct 13, 2012 12:01 pm

k-i worked through the code and got the syntax correct. i run the program and it says that it is displaying. the led light strip just stays solid white. i double checked to make sure i am on the correct pins. i am a soldering novice as well-but the wires seem to be soldered well. any suggestions?
thebignasty
 
Posts: 2
Joined: Fri Oct 12, 2012 11:49 pm

Re: Light Painting

by tdk1007 on Sat Oct 13, 2012 6:04 pm

I'm having the same issue. The code looks correct, but nothing is happening with the light strip, it just stays a solid white.

I tried using these scripts as well
https://github.com/trizz/PiLed

but the Pi does not seem to communicate with the light strip.
Any suggestions? I'm using Occidentals, just updated & upgraded the apt-get, and grabbed the python-imaging-tk again.
tdk1007
 
Posts: 6
Joined: Fri Sep 07, 2012 2:21 pm

Re: Light Painting

by apophisnico on Fri Oct 19, 2012 5:40 pm

Hi all,

I have a problem too. I checked all the connections, voltage .. no problem
I am using occidentalis 0.2; with lsmod i am seing my spidev module. A modprobe do nothing... I saw no error in /var/log/messages...

The python script write "displaying" but i have nothing...leds stay off.
I tested too with a raspbian wheezy with spi module activated and the result is the same but unique difference that i have 4 leds light on when i plug the pi to the sector.

Piled python scripts don't work too.

I am using one meter of leds (32 leds)

an idea?

thank you
PS: sorry for my english :-D
apophisnico
 
Posts: 5
Joined: Fri Oct 19, 2012 5:31 pm