GMU:My Computer, Max, and I/Deniz Ekin Polat: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 50: Line 50:
File:googlemuscle9.JPG
File:googlemuscle9.JPG
</gallery>
</gallery>
Now we are done with the circuit, we should continue with plugging our Arduino cable in and loading our code.
This is the code I used. This recieves the data coming from the sensor and prints it as a sensor value which allow us to send this data to Max/MSP. On my sensor I was getting the signal levels roughly from 100 to 400.
[[:File:sketch_sep20a.ino]]


<gallery>
<gallery>
Line 55: Line 61:
</gallery>
</gallery>


Finally, we can use our max patch after some arrangements. The usb port used by the Arduino should be defined in the object where it says "serial d 9600". In my computer I was using the d serial port, the one you are using should be written here. The patch can be started by clicking the toggle button above. The signal level can be observed from the graphic.
<gallery>
<gallery>
File:googlemuscle1.png
File:googlemuscle1.png
Line 62: Line 69:
[[:File:Muscle Google 2.maxpat]]
[[:File:Muscle Google 2.maxpat]]


[[:File:sketch_sep20a.ino]]


'''Concept'''
'''Concept'''