Sunday, November 15, 2015

Mini Project

For this mini project, my main thing was to get arduino and processing to communicate. If you seen my previous progress post then WOO-HOO you've seen me succeed at getting the communication to work. Although I got that to work I couldn't figure out how to get the ir or pir sensors to work with both arduino and processing. I would get the sensors to work in the serial monitor of arduino but once it got to the point of moving it into processing, it was an EPIC fail. So because I tackled my biggest goal in only 5 days -_- (communication ("handshake") between the two programs) I decided to try and use some piece of hardware that could be read in arduino and transferred into processing. For this mini project, I chose to use a potentiometer. Human interaction is a concept and experience that I want to explore along with the idea of creating Synesthesia.

My main issue is figuring out how to use the potentiometer as a mouse only within the sketch window. Because I did it and my mouse began to malfunction.

What I came up with.....


Combining Code for Mini and Final

Communication between Arduino and Processing
 Using the potentiometer to control an image
 My Combination of code


Sources:

https://forum.processing.org/one/topic/controlling-mouse-cursor-using-potentiometers.html

http://codasign.com/tutorials/etch-a-sketch-project/etch-a-sketch-putting-it-all-together/

https://chalmersphyscomp10.files.wordpress.com/2010/08/sketch_final.png

http://arduinobasics.blogspot.com/2013/12/pir-sensor-part-2.html

https://forum.processing.org/two/discussion/8343/sharp-ir-sensor-in-arduino-processing

http://communityofrobots.com/tutorial/kawal/how-use-sharp-ir-sensor-arduino#?1#?1#WebrootPlugIn#?1#?1#PhreshPhish#?1#?1#agtpwd

http://garagelab.com/profiles/blogs/tutorial-how-to-use-the-pir-passive-infrared-sensor-with-arduino

http://www.intorobotics.com/use-infraredir-sensors-tutorials/

http://www.robotshop.com/blog/en/arduino-5-minute-tutorials-lesson-4-ir-distance-sensor-push-button-2-3637


1 comment:

  1. This is exciting. Just out of curiosity, what is supposed to show up on the screen? Color? Are you glitching an image? That is important.

    ReplyDelete