Arduino To Pure Data (Tutorial)

Поділитися
Вставка
  • Опубліковано 1 сер 2024
  • Let’s learn how to connect sensors to Arduino, program, and control sounds!
    ------
    Materials Needed:
    -Knob/Potentiometer (directly connectable to breadboard)
    www.amazon.com/Plusivo-Potent...
    (Knob in the video. May come back in stock in the future)
    www.amazon.com/Breadboard-Fri...
    -Arduino UNO
    www.amazon.com/Arduino-A00006...
    Jumper Wires + Breadboard Set (Cost effective!)
    www.amazon.com/Standard-Jumpe...
    -Breadboard (if not buying the set)
    www.amazon.com/Breadboards-So...
    -Jumper Wires (if not buying the set)
    www.amazon.com/Elegoo-EL-CP-0...
    -Arduino IDE Software (Free)
    www.arduino.cc/en/software
    -Pure Data Extended Software (Free)
    puredata.info/downloads/pd-ex...
    ---
    Social Media
    Please feel free to ask questions and also to tag me with your Arduino + Pure Data experiments!! I would love to see and share!
    / takumi_ogata
    / takumiogata
    ---
    Timeline
    0:00 - Intro
    0:44 - What To Buy
    1:21 - What To Download
    1:42 - Connecting A Knob To Arduino
    5:54 - Arduino Programming
    7:55 - Pure Data Patching
    8:59 - Arduino To Pure Data Communication In Action!
    10:22 - Multiple Sensors At Once
    12:24 - Outro

КОМЕНТАРІ • 157

  • @SoundSimulator
    @SoundSimulator  3 роки тому +26

    Please read this first if you have a question.
    If you're using Pure Data Vanilla (like 0.51-3) and NOT extended, you have to download externals.
    Go to help -> Find externals.
    And search & install "comport" and "cyclone". [comport] object should show up when you type it now.
    cyclone externals are kinda odd since objects like [zl] and [fromsymbol] may not show up when you type it in.
    The solution is type [cyclone/zl group 100] and [cyclone/fromsymbol].
    By the way, the substitute for [iem_alisttosym] is [list tosymbol].
    You can see it clearer in this tutorial (time-stamped) ua-cam.com/video/itQC9GxO_Is/v-deo.html

    • @EMERGENCIASTATE
      @EMERGENCIASTATE 3 роки тому +1

      Hi! i'm looking to connect a LDR with this code but doesn't work

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      @@EMERGENCIASTATE I replied to your other comment. I hope it works!

    • @AlexanderMorales197730
      @AlexanderMorales197730 2 роки тому +1

      It works ...thank you

    • @estebanhidalgo9585
      @estebanhidalgo9585 2 роки тому +2

      thanks for the comment, I was just beginning to struggle with that T_T

    • @nick_logi
      @nick_logi 2 роки тому +2

      Half hour traying to open comport hahaha, thanks for this bonus

  • @homedad3324
    @homedad3324 18 днів тому +1

    Knob senser??? Rotary doohickey? Spinny-ma-bob? Thing with wiper? Long shaft with rotation? All of these are new words I've never heard before! Must be a whole bunch of new things I've never heard of. Exciting.

  • @studiospiraluniverse
    @studiospiraluniverse 3 роки тому +12

    Each of your videos feels like a new horizon opening up. I never had the idea to combine PD and Arduino, but today a mindblowing perspective was preaented and I feel there is a lot to discover.

    • @SoundSimulator
      @SoundSimulator  3 роки тому +2

      Definitely, I remember learning about using Arduino with music software for the first time and a whole world opened up.
      I wish a video like this existed 8 years ago, so I'm glad to have made one myself!
      I hope that there will be people stumbling upon this video and be excited about combining Pure Data & Arduino!

  • @ftsy98
    @ftsy98 3 роки тому +1

    awesome video and explanation. looking forward to the future videos!

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      Thank you so much, Fahad!! I'll be posting weekly so I hope you enjoy the future videos!!

  • @durante_
    @durante_ 3 роки тому +1

    thank you so much! I wanted to build a MIDI controller but I only had an Arduino Nano which is not MIDI class-compliant. Now that I understand how to use the comport object I can plug the output numbers to midiout objects and use it as I intended through loopMIDI

    • @SoundSimulator
      @SoundSimulator  3 роки тому +1

      That's a cool hack! I'm happy to hear that this video was helpful! Please feel free to share what you build!!

  • @mudmax8974
    @mudmax8974 Рік тому +1

    Man you're the best, everything went perfectly well !

    • @ashaydave
      @ashaydave Рік тому

      Hey, could you tell me if you had any problems? I can't seem to have my patch working correctly, probably cuz of the serial port thing. I have everything in place but when i use comport 0 9600, it tells me opening serial port 0 failed. Same for 1-4, but since my arduino uses com port 6, when I put that, it doesn't seem to change values with the knob.

  • @muimui6124
    @muimui6124 Рік тому +1

    助かりまくりました...ありがとうございます🙇🏻

    • @SoundSimulator
      @SoundSimulator  Рік тому +1

      🙏 どんなプロジェクトを作るのか楽しみにしています!

  • @staerkej
    @staerkej 9 місяців тому +1

    You sir, are my new hero. You deserve WAY more views.
    I was having issues with the comport, but i just jumped to the ''Purr Data" version of Pd because it said it had all the Pd-extended stuff installed. Got everything working, but i also plan to use Daisy for embedded audio in the near future. Do you think i will run into issues using Purr Data, rather than vanilla for programming Daisy?
    Thanks for everything dude! I hope you continue making videos, i really enjoy them. Easy to follow, and also fun to watch.

    • @SoundSimulator
      @SoundSimulator  9 місяців тому

      Glad to hear that you found this video helpful!!
      Using plugdata will be helpful when working with the Daisy since there's a compile mode that tells you which object is compatible or not. Have fun!

  • @boemfiedel01
    @boemfiedel01 3 роки тому +1

    Finally got it to work, thanx man! Now I can use my Arduino again in PD. I gonna try to follow along as you go.

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      Awesome!! I'm happy to hear that, Berry!
      I'll be uploading weekly for the rest of the year (hopefully!), so we'll have plenty of things to try out! Have fun!!

    • @dophin1999ab
      @dophin1999ab 2 роки тому

      Heloo I need help ... zl group 100 ,fromsymbol ,gate 2 is not working with me ... I installed all extensions

  • @smellymala3103
    @smellymala3103 Рік тому +1

    Love your taste in rings my bro, nice and heavy, your left thumb (misspoke 😂) is my favorite

    • @SoundSimulator
      @SoundSimulator  Рік тому

      Thank you!! That one is my current favorite too!

  • @Willpowerstudios
    @Willpowerstudios 9 місяців тому +1

    Hi, I'm on linux using plugdata and had to install 2 externals: iemlib + comport. I had to add the comport path manually in settings under 'Libraries to load'. It works great. I'm excited 😃

    • @SoundSimulator
      @SoundSimulator  8 місяців тому

      Nice! Glad to hear that it works on Linux too :)

    • @Willpowerstudios
      @Willpowerstudios 8 місяців тому +1

      @@SoundSimulator exciting stuff !

    • @Willpowerstudios
      @Willpowerstudios 6 місяців тому

      @@SoundSimulator my first instrument using plugData: ua-cam.com/video/TGCGMm2d5rE/v-deo.htmlsi=pSPdyCoY-WXY00Hn

  • @peexzar4127
    @peexzar4127 3 роки тому +2

    Muy buen video. muy practico, y gracias por dedicar mucho tiempo a la edición de las imágenes, de esa manera tu explicación es mucho mas clara, thanks a lot!! :-)

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      Thank you so much! I'm happy to hear that the video was informative for you!

  • @chrisbistrishki
    @chrisbistrishki 2 роки тому +2

    Hey man! Thanks for the awesome tutorial, it helped me a lot! We're currently building an instrument for our electronics class (Sound Engineering Major) and our goal was to convert color into sound. For that we took two sensors - a photoresistor which we plan to map to a volume parameter and a color sensor which we plan to map to a frequency-dependant parameter of a synth in Pd (for example a mod. freq. of an FM synth).
    The thing is, the photoresistor is connected in the analog input of the Arduino and the color sensor must be connected through the diginal Ins on the arduino board. However your array seems to only work if the 2 or more sensors are analog, hence the line "val[i]=analogRead(i)". The "unpack ff" function then can't read that respectively, seemingly because the two sensors use different kinds of technologies/inputs. Are we understanding this currently and are we on the right path? Could you think of a solution where we can use the array which you demonstrated, but with one analogue and one digital sensor plus the unpack ff function in Pd.
    The situation is pretty hopeless at this point so we'd really appreciate your input!

    • @SoundSimulator
      @SoundSimulator  2 роки тому +2

      Nice! Feel free to share the project when you're done!
      As for the questions, yes, you're definitely on the right track.
      So you can keep the Pure Data patcher the way it is now, but you need to modify the Arduino code a bit.
      Use the "one sensor" code as the foundation and add the following...
      ---
      brightness = analogRead(0); //Reading the photoresistor here (connected to A0)
      Serial.print(brightness); //Send to Pure Data. It'll be the first outlet of the [unpack f f]
      Serial.print(" "); //There's a space between " & "
      Serial.print(color); //I'm assuming you found a code for the color sensor and this is the variable you get. Send to Pure Data...
      Serial.println(); //Don't forget the 'ln' here
      ---
      I hope this works! If you have any further questions, feel free to reach out via social media. Best of luck!

  • @Anton-wc7lb
    @Anton-wc7lb 2 роки тому +1

    Awesome video, thank you so much

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Glad to hear that! Thank you for watching, Anton!!

  • @jaffasplaffa1
    @jaffasplaffa1 Рік тому +1

    Nice video. And nice channel over all. I love Pure Data and use it pretty much on a daily basis.
    I was messing with Arduino a few years ago. As i remember it, using delay is not good practice. The issue that the whole program is hold up until delay is over. The whole program is basically frozen until delay is processed.
    "Arduino - delay () function
    The way the delay() function works is pretty simple. It accepts a single integer (or number) argument. This number represents the time (measured in milliseconds). The program should wait until moving on to the next line of code when it encounters this function."
    This is not an issue for smaller projects, with just a few knobs, but as soon as you start to make something larger, it's an issue.
    Atm I don't remember what I used instead, but there are more "good practice" solutions, that won't cause issues down the road, as using delay might.
    Anyway have a good day ;)

    • @SoundSimulator
      @SoundSimulator  Рік тому +1

      Sorry for the delay in response, but yes, delay is not good to use in the long run for sure! My professor always suggested that I stay away from it. I should do a video about this...

    • @jaffasplaffa1
      @jaffasplaffa1 Рік тому +1

      ​@@SoundSimulator No problem at all. I like your channel. Not a lot of people talks about these subjects. Keep it up :)
      Yeah, that's a good subject actually.
      Look forward to see it in the future ;)

  • @ShadoW_one_woman_band
    @ShadoW_one_woman_band 2 місяці тому

    I have a video i made on Pure data which is syncronized by the move from the sounds, is possible to use the sensor you made, to make the moves and sound together ?

  • @technologygeneration_
    @technologygeneration_ 2 місяці тому

    For example: I have on puredata an image that moves with the sound (WAV) I've made for syncronized both, if i do this tutorial you made with Arduino (sensors) does it works to make my image with the sound works?

  • @Stagmike
    @Stagmike Рік тому +1

    Can at the same time use 4-5 potentiometers and 2-3 buttons with pure data?

  • @brendanninness7757
    @brendanninness7757 3 роки тому +1

    Thank you Takumi! As Studio Spiral said, this is a game changer! I’m getting ahead of myself here I’m the excitement of possibilities, but have you experimented with getting the PD code loaded onto something else? By that I mean, taking the Mac out of the equation. I saw in my quick bit of googling that there’s a script for converting PD to Electrosmith Daisy. I’m imagining running such an instrument straight into my pedals :).

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      I'm happy to hear that you're excited, Brendan!! Thank you!!
      Definitely!! I am planning on going over embedded audio on this channel. I have used Pure Data in Bela before, and I bought Daisy few months ago. I might be able to make videos about it around July or August. And everything that we'll cover prior to that will be applicable to embedded audio as well!!

    • @brendanninness7757
      @brendanninness7757 3 роки тому +1

      @@SoundSimulator Amazing!! I can't stress enough that you are closing a loop in my brain.

  • @Stagmike
    @Stagmike Рік тому

    Hey , for this does it matter Which value of Ohm are the potentiometers??

  • @UoPJourney
    @UoPJourney 6 місяців тому +1

    Bro I wanna hug you! thanks

    • @SoundSimulator
      @SoundSimulator  6 місяців тому +1

      Glad to hear that this vid was helpful!!

  • @chikoavena3407
    @chikoavena3407 11 місяців тому

    Is there a way to display the array on a screen?

  • @hakank3841
    @hakank3841 2 роки тому +1

    heyy! You are great person. you made me excited. To learning this magic, can you give some advices? I am zero in programming. I thought, first I need to learn Pd and basic electronics and than programming to arduino. Do you have any channel or book to teach programming arduino?

    • @SoundSimulator
      @SoundSimulator  2 роки тому +1

      This channel should be a great start! We start with learning and then electronics and programming in Arduino! The order of the uploads will be your guide! Have fun!!

  • @AlexanderMorales197730
    @AlexanderMorales197730 2 роки тому +1

    Takumi I have a question: Could be possible to connect a pulse sensor to this? Actually I am testing with it and works. I am looking to create the path between de pulse sensor and arduino in order to let the hardbeat crontol the sound experience. Thank you for the explanation.

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Yes! We can use a [timer] object for that. I'll explain more in details in the DMs.

  • @danielllermaly8782
    @danielllermaly8782 Місяць тому

    Thank you very much for the video. I was trying plug data to program the daisy seed, but the patch I wanted to use could not be opened in compile mode, due to some objects that were not compatible. If I use this method will the same thing happen? or maybe those objects are compatible?
    thank you so much

    • @SoundSimulator
      @SoundSimulator  Місяць тому

      You won't be able to compile the patch in this video to the Daisy. You could flash the Arduino code to the Daisy though and send sensor data to Plugdata on a Desktop!

  • @kisho2679
    @kisho2679 2 роки тому +1

    how do you load pure data onto the arduino, after having designed the synth separately on a computer?

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      It's not possible to embed Pure Data patchers into Arduino. You can do it with Electrosmith Daisy or Bela though!

  • @karimazeli2653
    @karimazeli2653 3 місяці тому

    Hi!, interesting video!!. I have little experience programming. Will this sketch work with puredata offline?, as any Arduino code? So it can work without the computer.

  • @pieterpauwelbeelaerts5995
    @pieterpauwelbeelaerts5995 3 роки тому +1

    Nice tutorial. Explaining the breadboard also helped me, thanks! Just a quick question, is it possible to modify the light theremin project, so that the light resistor sensor replaces the potentiometer? I will try... I would love that data to become useable for virtual synths in pure data or somewhere else...

    • @SoundSimulator
      @SoundSimulator  3 роки тому +1

      Thank you very much for watching! I'm glad that this tutorial was helpful!
      Yes, you can follow this tutorial and use the light sensor instead of the potentiometer knob. You'll find many helpful diagrams if you google image 'light sensor arduino'. In my recent video on digital buttons, you can find a link to the resistor set that I recommend. Any resistor sets with good reviews will work tho!

    • @pieterpauwelbeelaerts5995
      @pieterpauwelbeelaerts5995 3 роки тому

      ​@@SoundSimulator I have made the project now with an analog light resistor that was in the starter package (instead of a potentiometer), and in the program arduino I combined the light theremin code with your code for the serial writing. The program works, though it only shows numbers between 45 and 57... so that is a bit limited as a sensor reading, but a great start for a beginner like me... Maybe I have to update the analog LDR to a digital light sensor, or perhaps a voltage meter for a solar panel could work too...

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      @@pieterpauwelbeelaerts5995 Analog photoresistor should give broader range than that. Did you make sure to use a 10k ohm resistor when connecting the sensor? We need a pull-up resistor for some sensors unlike the knob sensor we used in this video. The analog should be about 300 (average room brightness) to 1023 (light source right in front of it). Or it could be something with the Pure Data patch. If you would like to send me screenshots and such, please feel free to DM on social media or email me at hizumu.sound (gmail).

    • @pieterpauwelbeelaerts5995
      @pieterpauwelbeelaerts5995 3 роки тому

      ​@@SoundSimulator it was my Pure Data patch, I did something wrong there or installed an incompatible version... Now I have followed your other tutorial about configuring the arduino for MAX MSP (thank you for that tutorial!), installed that program and now everything is working just fine! Sensor values between 0 and 1023, just like I asked Arduino to map!

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      ​@@pieterpauwelbeelaerts5995 I'm glad to hear that things are working now! Have fun!! I would love to do a whole video dedicated to light sensor. Have you seen Leafcutter John's Light Thing video? It's amazing!
      By the way, did you try the Pure Data Extended approach or did you use Vanilla?

  • @brunoeugeniobelletieri7446
    @brunoeugeniobelletieri7446 Рік тому +1

    Hello what's up? Thank you very much for the contribution, it opened new paths. Congratulations,
    I wanted to ask you a question to see if you can help me, I used all your steps in your tutorial, but instead of putting a potentiometer, I am using 4 ultrasonic sensors hrcs04, the data arrives to Puredata from arduino, I get the 4 distances, but when I put the unpack so that the data is separated, that doesn't work... could you help me? Thanks a lot!

  • @ashaydave
    @ashaydave Рік тому

    I get a comport error that comport number 0 out of range (1-99)
    [comport] opening serial port 0 failed!
    And after I change open to open 6 which is where my Arduino is, and when i click open it prints random numbers but I can see that when I turn the knob there is a change in the value from 49 to 57 but when I go to the max limit of the knob, it goes back to 49. What do I do pls help

  • @fedeboretti
    @fedeboretti 3 роки тому +1

    EXE LENT ! Thanks!

  • @dieAnthropologischeKonstante
    @dieAnthropologischeKonstante 21 день тому

    Figure out how to make pd run on the arduino!

  • @tumultex
    @tumultex 3 роки тому +1

    can you make things go the other way around? ..like puredata outputs a trigger which through arduino activates something like a dc motor??

    • @SoundSimulator
      @SoundSimulator  3 роки тому +1

      YES, I'll definitely make tutorials on that eventually. I have made several mechatronic instruments before and I would love to share the knowledge.

    • @tumultex
      @tumultex 3 роки тому +1

      @@SoundSimulator I just couldn't be happier! Thanks a lot for your content

  • @haze5428
    @haze5428 2 роки тому

    the "iem_alisttosym" function doesn't seem to work on my macbook even after the external is installed, any fixes?

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      The substitute for [iem_alisttosym] is [list tosymbol]
      You can see everything clearer here
      ua-cam.com/video/itQC9GxO_Is/v-deo.html

  • @dophin1999ab
    @dophin1999ab 2 роки тому +2

    Heloo I need help ... zl group 100 ,fromsymbol ,gate 2 is not working with me ... I installed all extensions

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Check out the pinned comment for more details!

  • @HenricWallmark
    @HenricWallmark 2 роки тому +1

    Noob friendly! Thank you!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      You're welcome! I'm glad that this is informative to you!

  • @nicoleremy2512
    @nicoleremy2512 3 роки тому +2

    I have one question! I can't download the PD extended to my Mac, so I work with PD 0.51 and externals. The only one I can't find is the iem_alisttosym object, not even in the iemlib external... Is there some other thing I can do? Thanks!

    • @SoundSimulator
      @SoundSimulator  3 роки тому +2

      Hi Nicole!
      A substitute for [iem_alisttosym] is [list tosymbol]
      Please let me know if that works!

    • @nicoleremy2512
      @nicoleremy2512 3 роки тому

      @@SoundSimulator Hi! Thanks!! [list tosymbol] worked! It appears as an object in my patch, however, I followed all the steps and everything is good on paper, but nothing happens when I twist the knob, it remains 0. In PD the MIDI input and output, should be connected to something specific? Only appears the Driver IAC Bus 1. Thanks again!

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      ​@@nicoleremy2512
      Hi Nicole!
      There is no need for MIDI since we are using serial communication.
      The port name of the arduino should show up when you click the print object in Pure Data.
      It's difficult to tell which part needs troubleshooting, so please feel free to DM me on social media or email me at hizumu.sound [gmail]. Please send me a screenshot of the codes and what's showing up on the Pd window. And I'll get back to you as soon as possible!

    • @grenadinementalo
      @grenadinementalo 2 роки тому

      @@SoundSimulator I have the same problem and nothing is showing up at the pd window, even when I clic print (but the port connect well)

  • @niamhmccool9123
    @niamhmccool9123 Рік тому +1

    hey i was wondering if anyone else had this problem : comport number 0 out of range (1-99)
    [comport] opening serial port 0 failed!
    for reference. i have tried both pd.extended and downloading externals in pure data vanilla but still get the same error.
    Thank Takumi! Your video are so so good, thanks for sharing your skills/knowledge

    • @niamhmccool9123
      @niamhmccool9123 Рік тому +1

      solved!! problem is from having the serial logger open while trying to use it in pd lol

    • @SoundSimulator
      @SoundSimulator  Рік тому

      @@niamhmccool9123 👍👍

    • @ashaydave
      @ashaydave Рік тому

      hey, how did you exactly sovle the problem? I have the same issues and I'm using windows.

  • @Anton-wc7lb
    @Anton-wc7lb 2 роки тому

    Hi again! This works flawless on my mac, but I tried this again on my Raspberrypi 3 A+ that I'm running headless over SSH. For some reason comport is reading something that looks like a 15 number array, even though I'm only using an array with 2 numbers. Also, digital "ones" are showing up as "10". Super strange. Seem like a bug. To fix it, I first need to open the sketch in Arduino IDE, then close Arduino IDE, then open the comport-sketch in Pd, and everything works fine. Have you stumbled across this before?

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      I actually haven't used Raspberrypi with Arduino before so I can't be much of a help here, sorry!

  • @alyasi4328
    @alyasi4328 8 місяців тому +1

    Hi, How can you connect a pulse sensor to this?

  • @Loopsguy2
    @Loopsguy2 2 роки тому +1

    Hi, Thank you for this great video. I am trying to do this now, and I cannot create the comport object. All it says is '...couldn't create' when i try and create the object. Am very nooby at this so any help is appreciated! Am on mac OS, vanilla PD

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Please check out the pinned comment!

    • @EricBalcon
      @EricBalcon 11 місяців тому

      the simple answer was : download the extension comport..that's all.

  • @younganderson7777
    @younganderson7777 11 місяців тому +1

    9600 is the baudrate

  • @EricBalcon
    @EricBalcon 11 місяців тому

    that's interesting, thanks. Can I consider that working with raspberry Pi would work as if I was using a PC ?

    • @SoundSimulator
      @SoundSimulator  11 місяців тому

      I haven't really used Pi before, sorry!

    • @EricBalcon
      @EricBalcon 11 місяців тому

      @@SoundSimulator another thing, I can not use ZL group 100, it's not recognized by vanilla, do I need to download an extension ?

    • @SoundSimulator
      @SoundSimulator  11 місяців тому

      @@EricBalcon Please see my pinned comment for that. Thanks!

  • @lucaverschure2489
    @lucaverschure2489 2 роки тому +1

    heyy I was able to see the pinned comment and fix the zl group 100 and the fromsymbol putting "cyclone/" infront, but for some reason the iem_alisttosym is not showing up. If you had a solution that would be great. For the rest I am very thankful for these videos, learning a lot!!!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Substitute for [iem_alisttosym] is [list tosymbol].
      It should work now!

    • @cyberrichter
      @cyberrichter Рік тому

      @@SoundSimulator Neither [iem_alisttosym] nor [list tosymbol] works for me. What should I do?

    • @SoundSimulator
      @SoundSimulator  Рік тому

      @@cyberrichter which version of pure data are you using?

    • @cyberrichter
      @cyberrichter Рік тому

      @@SoundSimulator 0.43.4-extendet

    • @SoundSimulator
      @SoundSimulator  Рік тому

      @@cyberrichter try vanilla pure data and see the pinned comment

  • @dantebruno5831
    @dantebruno5831 2 роки тому +1

    Hello I am from Argentina. I would like to know if I should do the same as this video proposes if I want to use a proximity IR sensor. Thanks!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Hello! Yes, you can follow this tutorial and use a distance sensor! I recommend using one that connects to the analog pin.

    • @dantebruno5831
      @dantebruno5831 2 роки тому

      @@SoundSimulator Thanks for your answer, it was very helpfull! I am thinking of using the ultrasonic sensor hc-sr04 arduino. This sensor have four pins. What do I do with the one that remains in addition to those explained in the video? What do you mean about "one that connects to the analog pin"? I`m really sorry for all my questions, thank you, thank you very much!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      @@dantebruno5831 If you already have one, then no worries!! It's just that you won't be able to directly follow the Arduino code part of this video. The Pure Data part will be the same though!
      You can search for "hc-sr04 tutorial" on search engine and you'll find plenty of helpful websites! Hook up the sensor as shown in those tutorials and they'll provide you with the code as well. The only [ Serial.println(); ] you need is [ Serial.println(distance); ] Don't forget the [ln] after the word [print]. And delete other lines that use the [Serial.print] or [Serial.println]. Everything else in the code should remain the same.
      That [ Serial.println(distance); ] is what will send the sensor data to Pure Data! Similar to [ Serial.println(knobValue); ] at 6:07 in this video.
      I may be making it sound more complicated than needed, but you'll definitely understand once you take some to see what's going on! Best of luck!!!! And please let me know if it worked!

    • @dantebruno5831
      @dantebruno5831 2 роки тому

      @@SoundSimulator No, no, on the contrary, you have made it much easier for me to understand how to do this job! If I wanted to use two sensors like you in the final part of the video, would the modifications in the arduino code be the same?
      Once again, thank you very much. As soon as I have finished my instrument I will not hesitate to tell you how it went!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      @@dantebruno5831 So because analog pins are not used, the multi-sensor Arduino code needs to be modified as well. I think it’ll look something like this…
      I’m assuming you have 2 distance sensors with separate variables.
      Serial.print(distance1);
      Serial.print(“ “);
      Serial.print(distance2);
      Serial.print(“ “);
      Serial.println();
      Hopefully this works!! Please feel free to let me know anytime if you encounter issues.
      Have fun!!! Looking forward to seeing your instrument!!

  • @HimuGamer
    @HimuGamer Рік тому +1

    Hello! I get the following error in Pure Data (extended):
    [comport]: could not open device COM4:
    failure(5) ERROR_ACCESS_DENIED
    Arduino is in port COM4, I think this port can't be used in 2 applications at the same time. But in that case what can I do? Is there a way to change the port? thank you!

  • @Subzearo
    @Subzearo 2 роки тому +1

    Do potentiometers hav actual + and - pins?

    • @SoundSimulator
      @SoundSimulator  2 роки тому +1

      Yes! There should be a documentation that tells you which pin is what.

    • @Subzearo
      @Subzearo 2 роки тому +1

      @@SoundSimulator thanks

  • @jalsiferdai3628
    @jalsiferdai3628 3 роки тому +1

    Hi, what should I do If I want put more than 6 sensors?

    • @SoundSimulator
      @SoundSimulator  3 роки тому +1

      Hi Jalsifer! In the Arduino code, you can change the array size from 6 to 16 (I'm assuming that you're using Arduino Mega). So, the first line of the code will be int val[16]; and the for-loop will be for(int i = 0; i < 16; i++) { ... and the rest is the same.
      And in the Pure Data patch, have 16 'f's in the unpack object.
      Let me know if that worked for you! Have fun!!

    • @jalsiferdai3628
      @jalsiferdai3628 3 роки тому +1

      @@SoundSimulator thank you sooo much, it works!!!

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      @@jalsiferdai3628 You're welcome! I would love to see what you will be building!
      Enjoy!!

  • @user-xp1mn8lq3n
    @user-xp1mn8lq3n Рік тому

    you sound like arrimus3d the 3d graphics dude

  • @aaa-ww9sq
    @aaa-ww9sq 2 роки тому

    I have one question! 😅 Two signals cannot be separated in PD, Two signaal just in one Number,like 1024 to 352 to 1024 ............

    • @SoundSimulator
      @SoundSimulator  2 роки тому +1

      There are several factors that could be causing it, so I can't provide the correct solution. I recommend double checking the Arduino code (11:08) and Pure Data patcher (11:48). Make sure the sensors are wired correctly. If you are still having issues, please feel free to send screenshots and photos on my Instagram. Best of luck!!!

    • @aaa-ww9sq
      @aaa-ww9sq 2 роки тому

      @@SoundSimulator I send screenshots and photos to your Instagram,thank so much :))))

  • @licoradulterado1207
    @licoradulterado1207 8 місяців тому

    i need help, when i open the port, it tells me "failure(5) acces denied" and when i list the ports, it shows "COM3 (in use)"

    • @licoradulterado1207
      @licoradulterado1207 8 місяців тому

      I mean, COM3 is being accesed bye Arduino IDE and PureData and i cant connect puredata to the same port at the same part. i cant acces COM3 from arduino and virtual port creators at the same time neither. I cant acces COM3 port from two programs at the same time, it is my only real port

    • @SoundSimulator
      @SoundSimulator  8 місяців тому

      @@licoradulterado1207 You can only access one port at a time. For example, if Pure Data is accessing the port, you won't be able to upload code using the Arduino IDE. You would have to turn off the communication in order to do that.

    • @licoradulterado1207
      @licoradulterado1207 8 місяців тому

      THAK YOU FOR ANSWERING!!! but if i turn off the comunication with arduino, how can pure data get the numeric values associated wothh the sensor? how do I do that? Its been exhausting to find a solution online

  • @grenadinementalo
    @grenadinementalo 2 роки тому

    arduino detects my board but not pd when i clic the "devices" object, what should i do ? EDIT : just have to close the arduino ide and maybe unplug and replug the board - is there any other option ?

    • @grenadinementalo
      @grenadinementalo 2 роки тому

      and the zl group object could'nt create (i installed cyclone library but not sure which ont i got to install) EDIT : Had to replace "zl" by "cyclone/zl" in the object

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      @@grenadinementalo Externals can be weird on Pure Data. You have to do [cycle/zl group 100], you can see it clearer in this video ua-cam.com/video/itQC9GxO_Is/v-deo.html It'll directly go to the part when you click on the link!
      In terms of the board being recognized, I'm not sure. As long as it works (even if you need to unplug & plug), it's fine//

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      Do you have social media like Instagram? Please feel free to send me a screenshot of the code.
      What Arduino are you using by the way? Unofficial (but more affordable) ones can cause lot of trouble.

  • @jeremiasescudero2524
    @jeremiasescudero2524 8 місяців тому

    I have downloaded and installed the external library "iemlib", but,I can't create the object "iem_alisttosym" :-(
    The same thing happened to me with the "comport" object and I installed its library and it worked so good c:
    I don't know the reason why the "iem" object doesn't work
    I'm using MacBook M1, please help me !
    I study sound engineering, best regards to you from south america, Chile !

    • @SoundSimulator
      @SoundSimulator  8 місяців тому +1

      Hello! If you are using normal Pure Data (AKA Vanilla Pure Data and not the Pure Data Extended like in this video), the substitute for [iem_alisttosym] is [list tosymbol]
      I hope this helps!

    • @jeremiasescudero2524
      @jeremiasescudero2524 8 місяців тому

      Thank you very much for the help, I managed to solve the problem.
      Now I have another problem: Arduino recognizes the COM1 port, which is where I have the board and potentiometer connected, and gives me values from 1 to 1023, which is fine.
      Then I open my Vanilla Pure data and the COM1 port is not recognized, it is not even in the list. (tried this with Purr Data{extended} and same error).
      When I close the Arduino, and open only the Pure Data, it recognizes the COM1 port, but the Arduino no longer recognizes the COM1.
      Connection through COM ports is not possible, since it is used for a single program, not simultaneously.
      Before, they could be intertwined, but by connecting and disconnecting so many times I think the port was blocked, I need to unblock the COM port and give it access so that both programs can communicate through the same COM port.
      I've been trying to do this experiment all day, I tried with Windows 10 but I couldn't either, I got to the same point, I've even tried with multiple versions of PurrData and PureData on Windows and MacBook. 😢
      :C I visited forums but nothing, last help please :')

    • @SoundSimulator
      @SoundSimulator  8 місяців тому

      @@jeremiasescudero2524 Which Arduino did you purchase?

    • @jeremiasescudero2524
      @jeremiasescudero2524 8 місяців тому

      I bought Arduino Uno@@SoundSimulator

  • @kiko2129
    @kiko2129 2 роки тому

    Hi, Thank you for the great Video, i did it step by step but i simply can't connect the arduino with the Pure Data. I get the following error msg in Pure Data
    comport number 0 out of range (1-99)
    [comport] opening serial port 0 failed!
    Can you help me out here? I have the code line by line identical. Thanks and have a nice day :D

    • @SoundSimulator
      @SoundSimulator  2 роки тому +1

      That error message is fine actually. Click on the [open 1] message box and see if you're still getting an error.
      I put 0 in [comport 0 9600] so that serial communication doesn't happen automatically. That 0 is for stopping/closing serial communication.
      The [open 1] will override that 0 and the error (unless your Arduino port is not 1. In that case, click on [devices] to check).

    • @kiko2129
      @kiko2129 2 роки тому

      @@SoundSimulator Thanks for the reply i'll get back on it :D

  • @sebastianlaudage7218
    @sebastianlaudage7218 2 роки тому

    Heyhey, Awesome tutorial as always! I am really enjoying these.
    Currently i am having trouble getting the zl object to run. Is this from an external?
    Also i am wondering if my arduino spits out several variables (like in my current project). How do i get more than one variable live to PD?
    Thank you so much in advance an keep up the good work!

    • @sebastianlaudage7218
      @sebastianlaudage7218 2 роки тому

      ah shit should have watched the video till the end! So the secon question is answered :) :-*

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      @@sebastianlaudage7218 Yes, it's an external! Check out the pinned comment for more detail!

    • @SoundSimulator
      @SoundSimulator  2 роки тому

      @UCKo1Pb0Q_MlmTg_VQQv_qJw Substitute for [iem_alisttosym] is [list tosymbol].
      I recommend checking the pinned comment!

  • @EMERGENCIASTATE
    @EMERGENCIASTATE 3 роки тому +1

    why this doesn't work with an LDR?

    • @SoundSimulator
      @SoundSimulator  3 роки тому +1

      Unlike knobs, LDRs/photoresistors require a pull-down resistor (10k ohm) when connecting to an Arduino. Searching "LDR Arduino" into Google Image will provide you with diagrams that you can recreate.
      If you did connect LDR using a resistor, then I'm not sure what the issue is. Please feel free to contact me through any of the social media listed!
      Good luck!!

    • @EMERGENCIASTATE
      @EMERGENCIASTATE 3 роки тому

      @@SoundSimulator ! tHANK YOU You roCK! Already have the resistor and connection in Arduino i got numbers like 900, 800, but in the print in Pure data, i saw 53 13 and 10 in the print. i dont see it in the number object like in the knob : /// :((

    • @EMERGENCIASTATE
      @EMERGENCIASTATE 3 роки тому +1

      already wrote you via instagram

    • @SoundSimulator
      @SoundSimulator  3 роки тому

      @@EMERGENCIASTATE I'll reply to you via instagram in few minutes!

  • @antonioalaia6579
    @antonioalaia6579 7 місяців тому +1

    Hello I'd like it because I'm new on Arduino World and I'm looking for an alternative of Max Patch. So I follow a plant play tutorial (ua-cam.com/video/msNniH22tzg/v-deo.html), I think easy, than may questions is: Can I obtain same result by PureData? If yes how do it? Thanks.!

    • @SoundSimulator
      @SoundSimulator  7 місяців тому

      You should be able to do something similar with Pure Data for sure! I recommend starting out with this tutorial and then analyze the Arduino code in the video that you linked. Good luck!

  • @elRevulo
    @elRevulo 3 роки тому +2

    Pd-extended is abandoned. Please use vanilla + externals or purr-data. Please don’t make new tutorials relying on extended, it’s so confusing for new users.

    • @SoundSimulator
      @SoundSimulator  3 роки тому +2

      Definitely, we'll be using vanilla + externals for future videos. I did put a comment on this video regarding externals. I hope it's showing up at the very top for everyone!!
      Thanks for the feedback, Felix!