Lessons 10
Topics from class:
- Assignment from last week
- Assingment for this week
- Don't use Neil's board, make your own
- Kinds of input devices
Assignment:
- In Israel we used Arduino as a board for the assignment.
- I saw that my Arduino is not being detected on my Ubuntu laptop. So I used this tutorial I found on the internet (it showes how to install the Arduino IDE on ubuntu 12.04 and above).
- The problem was that I wasn't able to detect the serial port of the Arduino in the IDE. So I first tried to do sudo arduino, But then I realized that I do not want to do it every time I want to open a new Arduino window, so I googled a little bit and I found the tutorial above. It worked PERFECTLY and I was very happy that I'm able to program my board.
- At the start, I tried the AnalogInput example from the Arduino IDE.
- After that, I tried to integrate with Processing with the Hue example. I did not had success with that.
- Then I tried the KnockSensor example from the Arduino IDE with Processing integration (also an example from Arduino team, downloadable here.).
- Then I have downloaded a script in Processing that spawns a 3D spining block and I have made it to when you're doing something with your input (spining the potentiometer, for example), the block changes it's color fast into grey and then changes again into white ("blinking box").
- Image of the script:
- My scripts compatible with (almost) all of the input devices kinds, I tested them with a joystick, a button and a potentiometer.
- Download the scripts (Linux and Windows ONLY, because my Hackintosh isn't working)
- [UPDATE] I have integrated Processing with Arduino on these examples: Hue, Tree and I have made a music player that lets you to control the volume with a potentiometer.
- [UPDATE] Here is the video of the Tree script working (download only, the file is too much big for Youtube and Vimeo)