Put on your party hats, hit run (the triangular thing on the top of the Processing IDE). Different RGB LEDs may have different pin patterns.Īlso you have to change the /dev/ttyUSB0 in line 31 to point to your Arduino's port (something like /dev/name on Linux or com5 on Windows). If you have the Common Cathode type, you have to change int common_cathode = 0 to int common_cathode = 1 on line 26 in the above source code.Īlso, you should probably use some basic program to check whether the variables like redPin1, bluePin2, etc. ![]() Change the song.mp3 string in line 36 to the name of your mp3 file, or rename your mp3 file to song.mp3.Īs I said before, I'm using the Common Anode type of RGB LEDs. Copy a mp3 song into the folder (/path/to/musicLED) where you saved the Processing sketch. Processing will copy it into a folder with the same name. > Add Library.ĭownload the source code (musicLED.pde) from the bottom of this page and open it using Processing. If it's not there, install it from Sketch > Import Libraries. Then go to Sketch > Import Libraries and check if Arduino (Firmata) is on the list. ![]() ![]() Open the Processing IDE if you already have Processing installed, else install it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |