I think there are a few more library tutorials for processing.
I find just casually working through these and other tutorials while everyone else watches Euro2012 in the evenings keeps me entertained.
I found that the Layers library is very useful. it allows each layer to have it’s own setup and draw.
This is great because it stops the refresh rate of the background image looking cheap.
It’s also great because I can easily layer the three functions of the game like so
base>street view> game board>motion.
(I’m worried this might look a bit crappy if the game board starts appearing inside someones body while their body isn’t moving. There needs to be a slicker method)
With street view and Motion both coming from the camera.
The game board will respond to certain motions in certain areas.
For example, if the motion sensor discovers more than 50 pixels are moving within a 10x10 box (50% motion) the box on the game layer will react.
This is still mainly in my head. I have been making headway on it today but now I’m going to walk the dog and I’m super twitchy from not smoking for a couple days. It might take a while to get it done. I have lots of things to sort out before I head for London in a couple weeks.
As far as the screen display goes I’ve got this far.
Using the layers library create a bitmap from the cam. layer the grid over the top and layer all movement over the top of that.
Might not be the smoothest method but i’ll see if it works before trying anything else.
Programming Interactivity by Joshua Noble is a great book.
I had to uninstall all the software from the computer and download it all again. Luckily I don’t have to write any of my code again. I got the audio recording slightly better but it is still quite terrible. The mic requires a pre-amp as well so it will be submitted for grading without being fully functioning.
2 days from the hand in the program for the music shield was working. I went to buy a decent mic and speaker to construct it.
Then when I got home I noticed how bad the recording quality actually was.
I uploaded the demo code that came with the device and the recording quality was still terrible.
So I went to put my code back on and…. it doesn’t like itself anymore.
So now I have to spend the night trying to get something that went wrong for no reason to work again so I can explain how bad it is when I hand it in.
This might well drop my degree a grade or two.
Thanks Seeedstudio
I have ductape…. I have a dremel.
Sometimes when you try to compile your research for a hand in you find things you missed the first time around. After you cut the glass and ruined 25 good bottles. That’s just bad luck.
The important thing is that I know now.. and I will be doing this tomorrow.
I might even try some thicker, bigger bottles because the Music Shield sits sideways on the Arduino Mega, which is wider than a wine bottle.
A Thousand thanks to Wild Bill for the pointer. I hadn’t thought of using an unsigned long
unsigned long startTime = 0;
unsigned long time = millis();
unsigned long timeout = 10000;
if(time - startTime > timeout) {
Mp3WriteRegister(SPI_AICTRL3, 0x00,0x01);
}
Slip this little swine into the
while(!stopRecording)
in the Music shield 1.2 library and you’ve got a ten second record time!
5 days trying to work this out.
5 days pissing around in the libraries I didn’t write trying to make sense of things.
This is fantastic news. I feel like I’ve just figured out how to ask where the toilet is in Spanish and now I’m embracing the sweet relief of urinating in the publicly correct location.
The recording model works…
now, if I can squeeze in a day to improve it I’ll be rolling in happiness.
A program for visualising the connections between arduino library files would be a brilliant tool to have.
Once the glass is cleaned and scored spin it in hot water for ten seconds. Then cold water. Repeat until it cracks




