418
edits
No edit summary |
No edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
---- | |||
'''Project''' | '''1.Project''' | ||
How can light and shadow be experienced in another way? I think the world is more colourful, then we think it is. Even grey shadows can be translated into colorful shapes. | How can light and shadow be experienced in another way? I think the world is more colourful, then we think it is. Even grey shadows can be translated into colorful shapes. | ||
Line 40: | Line 41: | ||
painting with shadows: a light sensors isused to sense light/shadow. every grade of shadow outputs a different colour in processing. sitting under a tree, while the sun shines through the leaves and the wind moves them will create a unique painting. going for a walk while carrying the prototype while output a different colourful painting every time. | painting with shadows: a light sensors isused to sense light/shadow. every grade of shadow outputs a different colour in processing. sitting under a tree, while the sun shines through the leaves and the wind moves them will create a unique painting. going for a walk while carrying the prototype while output a different colourful painting every time. | ||
[[File:Schattenfarbem_processing.pde]] | [[File:Schattenfarbem_processing.pde]] | ||
Line 48: | Line 49: | ||
This project did not turn out as i wanted it to | This project did not turn out as i wanted it to. The shapes are too randomly located and the colourchanging background in processing is always overlayering the already existing shapes. It was still fun to experiment with colours and shapes. I learnt a lot about how arduino and processing works and how to connect both. | ||
---- | ---- | ||
''' | '''2. Project''' | ||
I want to create an autonomous agent - a "random walker" - that is not moving randomly, but steered by the light that falls on the light sensor. | I want to create an autonomous agent - a "random walker" - that is not moving randomly, but steered by the light that falls on the light sensor. | ||
Line 61: | Line 62: | ||
'''Arduino code:''' | '''Arduino code:''' | ||
[[:File:Agent_Arduino.ino]] | [[:File:Agent_Arduino.ino]] | ||
i used the same arduino code for all following versions. | |||
This is the arduino setup: | |||
<gallery> | |||
File:120210505_105113.jpg | |||
File:120210505_105123.jpg | |||
File:120210505_131826.jpg | |||
</gallery> | |||
'''Processing codes:''' | '''Processing codes:''' | ||
Line 73: | Line 87: | ||
'''1st Version''' | '''WALKER''' | ||
'''1st Version''' | |||
[[:File:processing_agent.pde]] | [[:File:processing_agent.pde]] | ||
Line 91: | Line 107: | ||
}" | }" | ||
placed in the void draw, to make the line reappear at the given coordinates, but the agent | placed in the void draw, to make the line reappear at the given coordinates, but the agent only drew a short line and then stopped | ||
Line 106: | Line 122: | ||
my idea is to use if satemtents or the function boolean to make it reappear. so far both did not work out | my idea is to use if satemtents or the function boolean to make it reappear. so far both did not work out | ||
'''3rd version''' | |||
[[File:1Screenshot (1555).png|400px]] | |||
[[:File:3processing_agent.pde]] | |||
the walker now moves directly up, down, left and right. | |||
If the walker disappears from the screen, it reappears at its starting point. | |||
'''Final Version''' | |||
[[File:Screenshot (1559).png]] | |||
to make the walker "shorter" i used a timer that erases the path that the walker took. Now it seems like an autonomous line is walking over the screen. | |||
[[:File:final.processing_agent.pde]] | |||
[[:File:movingagent.mp4]] |
edits