Week 13

INPUT DEVICES

BACHELLOR #1

I decided to do a multitouched pad based on Matt Keeter's work. I redesigned the pad layout for afterwords creating a multitouck synth. You can check how Matt did it hereusing processing.


The schematic remained the same:


I milled the top side of the board and changed the board bottom side to afterwords do a piano (I'm aware I will have to change the processing code for that.)



I the realized we did not have the required components and changed the assignement to a board with a phototransistor as input (bechellor #2).


BACHELLOR #2

Since I have started milling the board. Fisrt I started to do the multitouch and the realized we did not have 20 10k resistors I had to change my scope.

Thanks to Xavifor his caring and self explanatory FabLab website.

Back to the phototransistor board I milled, and afterwords programmed, here's the component datasheet.


Solding

I won't bore you with the step by step solding, however you can check my solding strenght on the fouth week.Here's the final board:


After testing it s trace wasn't properly milled so minor cable solding needed to be made:


I spotted this not with the wiring test but afterwords when I tryed to connect the board to my PC. All set.

Programming

I programmed the board with fabISP. See connection below:


And run Neil's makefile

sudo make -f hello.light.45.make program-usbtiny

Then pluged the phototransistor's board to teh computer as it follows:


Then run Neil's python file

python hello.light.45.py/dev/tty.usbserial-FT94S6V5

Note: If you want to know the usb port name type the following code in your terminal:

ls /dev/tty.*

You can see further programming tests with processing on the 15th week where I use this board for communication and networking tests.

Code explenation

Since I used Neil's basic code, find below the code explenation. You can also check my 16th week in which I did over 5 differents test using the very same phototransistor and several codes using mainly processing even if I did also give it a try to phyton.

For the phyton basics I really recommend the codeacademy basic tutorial, It takes a while but it's worth the time. You can aldso check this < a href="https://wiki.python.org/moin/PointsAndRectangles">that gives a less detailed but quicker insight on rect commands. Tkinter needs to be read which can be on the former link or using Lynda's tutorial. I did both but I recommend Lynd'as GUI development tutorial you can find < a href="https://www.lynda.com/Tkinter-tutorials/Python-GUI-Development-Tkinter/163607-2.html">here.


The code establishes an amount of time and frequency in which values will be gathered, then a threshols for value data representation (meaning how a variation of the phototransistor value will be represented into the screen, what's the corresponance between value gathering and teh bar variation)

Remember I developed this code further on my < a href="../htm/W16.htm">week # 16 using a tree, an elypse and a basic rectangle.

Hello visitor. You can download all the working files of this week here.

Go backto the INDEXor to thefollowing WEEK?

Creative Commons License
Please respect license terms. More info here