GMU:Max and the World/Paulina Magdalena Chwala/Homework 3: Difference between revisions
| Paulina.chw (talk | contribs)  (Created page with "Hey, I tried finally to send data back from Max to arduino. I wanted to control rgb LED by using Max color switch. It's not my individual work. I still learn and follow turtor...") | Paulina.chw (talk | contribs)  No edit summary | ||
| Line 1: | Line 1: | ||
| Hey, I tried finally to send data back from Max to arduino. I wanted to control rgb LED by using Max color switch. It's not my individual work. I still learn and follow turtorials, loops and codes from other people. | Hey, I tried finally to send data back from Max to arduino. I wanted to control rgb LED by using Max color switch. It's not my individual work. I still learn and follow turtorials, loops and codes from other people. | ||
| [[ | [[File:Hom 33.maxpat]] | ||
| [[ | [[File:Hom 333.ino]] | ||
| '''Max''' | '''Max''' | ||
| Line 13: | Line 13: | ||
| It incluses an external liblary "LED.h" and reads the values recieved from Max. It seperates it into 3 ( r g b) and assings each value to the right LED pin. | It incluses an external liblary "LED.h" and reads the values recieved from Max. It seperates it into 3 ( r g b) and assings each value to the right LED pin. | ||
| [[ | [[File:Hom 3.mp4]] | ||
Latest revision as of 12:02, 3 June 2020
Hey, I tried finally to send data back from Max to arduino. I wanted to control rgb LED by using Max color switch. It's not my individual work. I still learn and follow turtorials, loops and codes from other people.
File:Hom 33.maxpat File:Hom 333.ino
Max My loop in Max is pretty simple, I add messages to the switch, to get the RGB coordinates of each color (I found it in Max Helper). After I unpacked the message, and converted it to send to Arduino. Than I connected to the Arduino port by using command serial c 115200 - to send different data.
Arduino I finally used a downloaded code, because mine didn't work. It incluses an external liblary "LED.h" and reads the values recieved from Max. It seperates it into 3 ( r g b) and assings each value to the right LED pin.
