GMU:My Computer, Max, and I/Chanadda Janthivanont: Difference between revisions

From Medien Wiki
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Max Patches==
This patch is the one that I followed general tutorial to get to know about Max/msp.
* [[File: Max_02.maxpat]]
For this sound visualization patch, I took a look more into specific tutorial about what I am interested.
* [[File: 1st_Patch_Audio_Visualization.maxpat]]
Connect EMG sensor (Arduino) with visualisation patch.
* [[File: 1st_Patch_Audio_Visualization_04.maxpat]]
* [[File: AnalogInOutSerial.ino]]
----
==Project==
==Project==
The aim of project is to create the visualization which controls by muscle tension by using Electromyography Sensor (EMG). At the beginning I used EMG sensor to get the output data but the sensor burnt while connecting to the electricity. Then I did some research and tried to make the muscle tension sensor by myself. However it works but does not precisely as the EMG sensor. The sensor will send data through Arduino and send to Max/MSP. In the end, the visualization shows the variation of shapes and their meshes according to the data from the sensor.
The aim of project is to create the visualization which controls by muscle tension by using Electromyography Sensor (EMG). At the beginning I used EMG sensor to get the output data but the sensor burnt while connecting to the electricity. Then I did some research and tried to make the muscle tension sensor by myself. However it works but does not precisely as the EMG sensor. The sensor will send data through Arduino and send to Max/MSP. In the end, the visualization shows the variation of shapes and their meshes according to the data from the sensor.


==1st test:==
[[File:Screen Shot 2019-11-21 at 4.34.12 PM.png|600px]]
 
==1st test with EMG Sensor:==
'''EMG Sensor Circuit:'''
'''EMG Sensor Circuit:'''


[[File:EMG_Sensor_1.jpg-768x576.jpg|500px]]
<gallery>
 
File:EMG_Sensor_1.jpg-768x576.jpg
[[File:IMG_1884.JPG|500px]]
File:IMG_1884.JPG
</gallery>


'''EMG Sensor with Arduino:'''
'''EMG Sensor with Arduino:'''
''I connected EMG sensor with Arduino. The highest output value is 225 and the lowest is 72.''
[[File:Screen Shot 2562-06-05 at 21.33.37.png|900px]]


'''Transfer value from Arduino to Max/msp :'''
<gallery>
[[File:Screen Shot 2562-06-06 at 07.12.03.png|900px]]
File:Screen Shot 2562-06-05 at 21.33.37.png|I connected EMG sensor with Arduino. The highest output value is 225 and the lowest is 72
 
File:Screen Shot 2562-06-06 at 07.12.03.png|Transfer value from Arduino to Max/msp
 
</gallery>
----


==Creating simple muscle sensor and visualization:==


'''Link to the Visualization video:'''
'''Link to the Visualization video:'''
 
https://vimeo.com/350960043


'''Completed patch:'''
'''Completed patch:'''
*[[:File:120080_Chanadda_FinalPatch_Visualization.maxpat]]


[[File:Screen Shot 2562-07-30 at 15.19.02.png|900px]]
[[File:Screen Shot 2562-07-30 at 15.19.02.png|600px]]


'''Making the muscle sensor:'''
'''Making the muscle sensor:'''
Line 47: Line 33:
https://hackaday.io/project/8823-super-simple-muscle-emg-sensor
https://hackaday.io/project/8823-super-simple-muscle-emg-sensor


[[File: muscle_sensor.jpg|500px]]
<gallery>
File: muscle_sensor.jpg
File:MuscleSensorBoardSketch.jpg
</gallery>


'''Creating the visualization:'''
'''Creating the visualization:'''
Firstly I created window and renderer to display the visualization by using jit.world and changed screen’s background colour. Seconly I created shape for rendering, in which I can control the shape and colour of it. Thirdly I created mesh of the shape to control draw mode and scale. Fourthly I created the rotation of the shape and connected to jit.gl.mesh to make the visualization move dynamically.  
Firstly I created window and renderer to display the visualization by using jit.world and changed screen’s background colour. Seconly I created shape for rendering, in which I can control the shape and colour of it. Thirdly I created mesh of the shape to control draw mode and scale. Fourthly I created the rotation of the shape and connected to jit.gl.mesh to make the visualization move dynamically.  


''Visualization part''
<gallery>
File:Screen Shot 2562-07-29 at 01.40.31.png|Visualization part
File:Screen Shot 2562-07-29 at 01.41.25.png|Rotation of the shape
</gallery>
 
'''Connecting Arduino to Max/msp:'''
After connecting the sensor to Arduino, I got the values between 20 to 883. Then I scaled down the range of number to 0 to 150 in Max/msp. After that I created the condition for the number to control the visualization, by using togedge to send the message to jit.gl.gridshape to change the form and jit.gl.mesh to change draw mode and scale. Lastly the rotation of the shape could also control by the values, by creating 3 float numbers and connected to jit.euler2quat, which would translate the number to x, y and z axis, and sent them to jit.gl.mesh.


[[File:Screen Shot 2562-07-29 at 01.40.31.png|500px]]
<gallery>
File:Screen Shot 2562-07-30 at 16.21.10.png
File:Screen Shot 2562-07-30 at 15.21.37.png
</gallery>


''Rotation of the shape''
==Experimenting with Max Patches==


[[File:Screen Shot 2562-07-29 at 01.41.25.png|500px]]
This patch is the one that I followed general tutorial to get to know about Max/msp.
* [[File: Max_02.maxpat]]


'''Connecting Arduino to Max/msp:'''
For this sound visualization patch, I took a look more into specific tutorial about what I am interested.  
After connecting the sensor to Arduino, I got the values between 20 to 883. Then I scaled down the range of number to 0 to 150 in Max/msp. After that I created the condition for the number to control the visualization, by using togedge to send the message to jit.gl.gridshape to change the form and jit.gl.mesh to change draw mode and scale. Lastly the rotation of the shape could also control by the values, by creating 3 float numbers and connected to jit.euler2quat, which would translate the number to x, y and z axis, and sent them to jit.gl.mesh.
* [[File: 1st_Patch_Audio_Visualization.maxpat]]


[[File:Screen Shot 2562-07-30 at 15.21.37.png|900px]]
Connect EMG sensor (Arduino) with visualisation patch.
* [[File: 1st_Patch_Audio_Visualization_04.maxpat]]
* [[File: AnalogInOutSerial.ino]]

Latest revision as of 15:39, 21 November 2019

Project

The aim of project is to create the visualization which controls by muscle tension by using Electromyography Sensor (EMG). At the beginning I used EMG sensor to get the output data but the sensor burnt while connecting to the electricity. Then I did some research and tried to make the muscle tension sensor by myself. However it works but does not precisely as the EMG sensor. The sensor will send data through Arduino and send to Max/MSP. In the end, the visualization shows the variation of shapes and their meshes according to the data from the sensor.

Screen Shot 2019-11-21 at 4.34.12 PM.png

1st test with EMG Sensor:

EMG Sensor Circuit:

EMG Sensor with Arduino:

Creating simple muscle sensor and visualization:

Link to the Visualization video: https://vimeo.com/350960043

Completed patch:

Screen Shot 2562-07-30 at 15.19.02.png

Making the muscle sensor: By following the instruction from the link below, I made the sensor by using diode (TS4148 RY), capacitor (47uF) and amplifier (INA128). Getting the output, I connected the sensor to Arduino and uploaded the code to get the output data. Although I could not get the output data precisely when I tensed my muscle, the output number changed when I pressed my muscle on black and red connectors. https://hackaday.io/project/8823-super-simple-muscle-emg-sensor

Creating the visualization: Firstly I created window and renderer to display the visualization by using jit.world and changed screen’s background colour. Seconly I created shape for rendering, in which I can control the shape and colour of it. Thirdly I created mesh of the shape to control draw mode and scale. Fourthly I created the rotation of the shape and connected to jit.gl.mesh to make the visualization move dynamically.

Connecting Arduino to Max/msp: After connecting the sensor to Arduino, I got the values between 20 to 883. Then I scaled down the range of number to 0 to 150 in Max/msp. After that I created the condition for the number to control the visualization, by using togedge to send the message to jit.gl.gridshape to change the form and jit.gl.mesh to change draw mode and scale. Lastly the rotation of the shape could also control by the values, by creating 3 float numbers and connected to jit.euler2quat, which would translate the number to x, y and z axis, and sent them to jit.gl.mesh.

Experimenting with Max Patches

This patch is the one that I followed general tutorial to get to know about Max/msp.

For this sound visualization patch, I took a look more into specific tutorial about what I am interested.

Connect EMG sensor (Arduino) with visualisation patch.