I've seen a few virtual graffiti systems on the web but couldn't find any information published on how to make one (though see final links page). I thought it would be great for my graffiti workshops, so I made one myself and have published everything you need to make your own here!


* all open source and hardware,
* cost < £100 excluding projector and computer,
* detects can's nozzle pressure and distance from the screen,
* models paint dripping if you move too slowly!


* this instructable is quite high level, but please let me know if I've missed something important,
* the computing setup is for Linux. If you get it working on other systems, please post your instructions!

Skills you'll need

* wood working to make the wooden rear projection screen,
* electronic circuits and programming Atmel AVR micro controllers (or arduino),
* be able to install some libraries on your computer to allow processing to talk to the wiimote.

Step 1: How It Works

* The spray can has an infra red LED that shines through the projector screen and is seen by the wiimote's camera.
* The wiimote sends the X and Y co-ordinates of the can to the computer via a bluetooth radio link.
* The computer is running a simple painting program that uses a projector to "paint" the lines as you draw with the can. It also takes care of mapping the wiimote camera to the screen using a 4 point calibration system.
* The spray can also detect its distance from the screen and the nozzle pressure: the further you are away the bigger the dot drawn, the harder you press the nozzle, the more opaque the paint dot becomes.

<p>Hello, great tutorial</p><p> I'm trying to use processing in w8 to read the wiimote data, so I follow that steps and it's not working, I have the message java.lang.NoClassDefFoundError: wiiremotej/event/WiiDeviceDiscoveryListener</p><p>Do you kno how to fix it?</p><p>Thanks for your time.</p>
<p>Great man!! =D</p><p>Congratulations!</p>
Hi Matthew, <br> <br>Thanks for the detailed instructions. I did everything explained above to connect Processing and the Wiimote, but I get the following error: <br> <br>The type lll.Loc.Loc cannot be resolved. It is indirectly referenced from required .class files <br> <br>Do you know how to fix this error? <br> <br>Thanks a lot for your help. <br> <br>mtwister
Hey Matthew, thanks for you work. I tried your steps but when I run wiimote_sensor.pde processing gives me the following error:<br><br>Native Library bluecove not available<br>!! There may be no USB dongle/device. !!<br>java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.<br> at wiiremotej.WiiRemoteJ.(WiiRemoteJ.java:74)<br> at lll.wrj4P5.Wrj4P5.connect(Wrj4P5.java:301)<br> at lll.wrj4P5.Wrj4P5.connect(Wrj4P5.java:290)<br> at lll.wrj4P5.Wrj4P5.connect(Wrj4P5.java:284)<br> at lll.wrj4P5.Wrj4P5.connect(Wrj4P5.java:278)<br> at wiimotetest.setup(wiimotetest.java:30)<br> at processing.core.PApplet.handleDraw(Unknown Source)<br> at processing.core.PApplet.run(Unknown Source)<br> at java.lang.Thread.run(Thread.java:662)<br>Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available<br> at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)<br> at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:429)<br> at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)<br> at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)<br> at java.security.AccessController.doPrivileged(Native Method)<br> at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)<br> at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)<br> at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)<br> at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)<br> at wiiremotej.WiiRemoteJ.(WiiRemoteJ.java:67)<br> ... 8 more<br><br>When I run $ hcitool scan it dows see the wiimote so the dongle is probably not the problem. Any suggestions?
I'm sorry it's been such a long time since I did any work on this project, quite a lot has probably changed.<br><br>I'd google the phrase:<br><br><br>Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available<br><br>And try some of the suggestions.<br><br>Sorry I can't help more,<br>Matt
&nbsp;Having trouble with this :( should this be run in processing? If so - do I need to rename this as another file name? I did try - but I get errors. Was it an earlier version of processing than the one currently available.. do I use the withoiut java one?
rename it to a .pde file.
Did you manage to get everything running in step 6? If so then this should be straight forward.<br /> <br /> I'm using processing 1.0.9.<br /> <br /> What errors are you getting?<br /> <br />
&nbsp;okay so I managed to work out ow to extract the file by changing its name from a tmp file to a tar.gz and extracting it using 7-zip ! &nbsp;I now have the file open in processing - I'm getting a thing saying that &quot;package III does not exist. You might be missing a library&quot;
&nbsp;good work, sorry I should have provided a .zip.<br /> <br /> You need to install all the libraries detailed in the previous step. Have you followed those steps exactly? Can you see the lll directories that need to be created?<br /> <br /> Let me know if that helps,<br /> <br /> Matthew<br />
Hey! This is cool, just got all of the bits together but struggling to download the .pde file - it just links to a .tmp file. <br /> <br /> What gives? Could you upload it again please? or mail the code over to stuchilds [at] gmail.com<br /> <br /> Nice one, good work Matthew :)<br />
download it and rename it to spraycan.pde<br /> I don't know why it changes the name. I tried uploading it again but same result.<br />
Thanks for this - I downloaded the .tmp file, renamed to spraycan.pde and looks like arduino code. Will have a play later.<br /> <br /> For others: this pinout of the atmega/arduino will help: <br /> <br /> http://arduino.cc/en/Hacking/PinMapping168<br /> <br /> Next thing I'm struggling with is the external crystal osc: <br /> <br /> I don't have the facilities to reset the fuse / timing on the atmega chip so thought would try to use an external 16MHz crystal.<br /> [this one: http://uk.farnell.com/jsp/search/productdetail.jsp?CMP=i-ddd7-00001003&amp;sku=9712526 ]<br /> <br /> Now, as I am trying to build this circuit around an actual Arduino board I can't see a way of connecting the external osc. as pins 9/10 of the atmega chip do not have an external connection, they are linked to the onboard crystal.<br /> <br /> Will keep updating progress.. Trying to use a pressure sensitive resistor instead of a linear pot. for the cap assembly instead in the hope that it will be a little more durable [plus I have some lying around to play with]<br /> <br /> Lovely.<br /> stuart<br />
Stuart, I've updated step 4 with info about crystals etc. See the new section <strong>Building a circuit from scratch vs using an arduino board</strong> <br /> <br /> Basically, you only need to use external crystal if you're making a board from scratch and you don't have a fuse programmer.<br />
Hey man this is awesome, we made a simpler version in 2008, link here http://friispray.co.uk/infra-red-spray-can/ and we've been looking to implement the arduino and the pressure and distance sensors for the past year, would it be cool to blog about this on our site? we've ordered all the bits and are going to try out a new version based on your findings next week, were massive believers in open source so everything will be credited as you.&nbsp;<br /> <br /> Weve taken the one we made all round the UK and originally made it for back projecting on windows. were also taking it to NY in march time and would be great to see you there. <br /> <br /> Super Nice<br /> <br /> Dave<br /> JamJarcollective.com<br />
Hey Dave,<br /> <br /> I actually found your site after making my own, and don't know why I didn't find it earlier!&nbsp;I found wiispray and some videos on the internet but nothing opensource. I've been meaning to get in contact with you guys anyway!<br /> <br /> So yes, please take anything and feel free to ask any questions/post blogs etc.<br /> <br /> I'm in London, not NY, where are you based?<br />

About This Instructable



Bio: I'm an artist/engineer excited about making cool stuff!
More by matthewvenn:Push fit LED moodlamp wireless organ pipe doorbell floppy drawbot 
Add instructable to: