Sending Data Back & Forth Between Arduino And Pure Data (also works with MaxMSP!)

Поділитися
Вставка
  • Опубліковано 2 лис 2022
  • Let’s send a sensor data to Pure Data from Arduino. And at the same time, let’s send a brightness data to an LED from Pure Data.
    ---
    Download here:
    drive.google.com/file/d/1RJkz...

КОМЕНТАРІ • 33

  • @AntonSoederberg
    @AntonSoederberg Рік тому +3

    I'm teaching at a sound art seminar in Sweden using what I'm learning from your UA-cam channel. Amazing work! You make the Internet an amazing place

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

      That is amazing!!! Thank you for letting me know, Anton! I hope it's going well!!

    • @Anton-wc7lb
      @Anton-wc7lb Рік тому +1

      @@SoundSimulator Thanks! :))) Of course I'm adding your youtube channel to the code I'm sharing, which will also be made open source. All the best!

  • @Soarin_Altiss
    @Soarin_Altiss Рік тому +2

    I was literally searching for something like this yesterday for a project, so thank you! 🙏🏽

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

    Hey, huge thank you for your tutorials. This is going to be the second I follow. Your steps are flawless and pleasant to follow.

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

      I'm happy to hear that! Thank you for the encouraging words!

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

    Keep making videos of this quality and you will get a very large following. You are helping a lot of people around the world, brother.

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

      I'm glad these tutorials have been helpful to people!!!

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

    I usually go for the OSC library provided by CNMAT (on github). It allows sending OSC as SLIP encoded messages over USB. That allows as many ins and outs as you might want, with human readable addresses. It's also simple to port over to boards with wifi should you ever want to do that.
    Thanks for creating such a friendly resource for new patchers 👍🌈

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

      nice, I just got an esplora that has usb client capabilities, so went straight for usb midi. but this osc over slipserial sounds interesting, much more so than ttyMIDI for instance.

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

      I definitely need to look into this. I always wanted to try out OSC communication for something like this.
      Thanks!!

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

    That seems like an easy workaround, I think the more proper way to do it would be to use something like the Task Scheduler library on Arduino for asynchronous execution of the sending and receiving. I don't have much experience with this though and it is a pretty big step up in coding concepts.

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

      I wanted to do it in the simplest way as possible haha
      But yeah for sure, there are going to be methods that are more suited/optimal depending on the project. I'll have to look into this, thanks!

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

    Beautiful. I usually transfer data between arduino and PD by using Serial.write instead of Serial.println.. It has its own problems, but at least I dont need all the libraries and complicated asci decoding stuff :) but nice to see multiple methods of doing things!

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

      I should try out Serial.write!! But yeah, if it works, it works!!

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

    Are the values 13 and 10 specific to [comport] in Pd? Why are they specified in the [sel] object in your Pd patcher?

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

    Hello, I've been watching and learning from your videos, they have been very useful in helping me learn the basics of PureData and Arduino, thank you so much for your tutorials !
    Recently I have purchased a Daisy Seed, I've figured out how to upload code using Daisyduino for Arduino IDE, and using Visual Studio Code, but I can't for the life of me figure out how to use Daisy to control sounds in PureData. I have followed your videos demonstrating how to achieve this using Arduino UNO with success, but the same methods don't seem to work for the daisy seed. Could you possibly give me a few tips ?

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

      Glad you found my tutorials helpful! And I'm happy to hear that you're starting on the Daisy journey!!
      I recommend asking about the issue over on the forum or electrosmith's discord.
      Links to both are in the description of this video right here: ua-cam.com/video/AbvaTdAyJWk/v-deo.html
      I'm active on the forum, so I'll get to your question as soon as possible!!

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

    Excellent! Been needing to retrieve frequencies from the Teensy laser synth to the controller's monitor, modify the frequency from the freq counter, then send that value back to the laser synth in real.
    So far, I've only been able to display the frequencies with the Arduino IDE's serial monitor.
    Also diving into TouchOSC and customizing Reaper's DAW for touch GUIs over Ethernet connected devices. Fun stuff.
    Thanks!😎

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

      It sounds like you're getting more powerful with every new update! Looking forward to it as always.

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

    this works with the image? if I want to put a image move?

  • @joshuaa.c.newman7430
    @joshuaa.c.newman7430 4 місяці тому

    The moocow externals seem to have vanished from the Internet and I can't find another way to reliably convert the data to bytes. That said, sending [print 1234 1234 1234( to [comport] is supposed to handle that parsing, so you can send arbitrary lists, symbols, or strings, but it doesn't seem to be working, either. I only ever get newline (10) at the other end, not the content of the message
    I'd sure love to figure out how to just make [print *( work, but an external (or other technique) that converted to bytes would be second best.
    Edit: Turns out, in MacOS, you need to confirm each *.pd_darwin file by right clicking, clicking "Open", and then telling the warning box OK. But I still get errors when I try to send anything at all.

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

    is it possible to send max msp or puredata to a teensy and use that as a standalone synth, without ever having to connect to a computer? including knobs.

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

      You can use the Daisy to flash your Pure Data or Max gen~ patch and create a standalone synth.
      Building standalone synth with Teensy should be possible in general too. I think M8 is Teensy-powered.

  • @yahugartsandmedia
    @yahugartsandmedia 15 годин тому +1

    what is cyclone? is it a library? how do you use it in Pure Data?

    • @SoundSimulator
      @SoundSimulator  4 години тому

      [cyclone] is an external library. I explain more about it in this video ua-cam.com/video/VYWQaqf6yL0/v-deo.html

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

    🍀♥️

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

    I see "bsd_path", what should I do?

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

    I'm not able to get the pure data code to work. Two of the objects show up red and don't work. any help would be appreciated

    • @joshuaa.c.newman7430
      @joshuaa.c.newman7430 4 місяці тому

      Yeah, moocow's externals seem to have vanished from the Internet. I'm hitting the same problem now. [comport] claims to parse things properly with a 'print' command but it doesn't seem to work.

    • @tannsanndforever7444
      @tannsanndforever7444 4 місяці тому

      Sorry about that, I never found the answer i was looking for and haven't looked back at pure data for a while but I absolutely loved the software and moocow's channel when i did. Hope you find what you need soon.@@joshuaa.c.newman7430