• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Isadora to arduino

    How To... ?
    1
    2
    1464
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      casselli last edited by

      Hello,

      Working with a friend and he has been helping me set up my arduino to talk to Isadora. There is a problem in arduino 1.0.5 as the BYTE keyword is no longer supported and I am wondering what would go in its place. In the following sketch, I am trying to activate a movie by pressing a button that is connected to digital pin 2\. I see the state change in the Arduino serial window, but when I change over to Isadora, after setting up serial communication, nothing changes.
      This is the arduino sketch before I institute the change from   Serial.print(i+97,BYTE); //send the port number to the arduino suggested Serial.write(). I am unclear as to what should be contained within the parentheses following the Serial.write call. Any Suggestions? I currently have Serial.write(13); and I am getting clean serial output to the arduino serial window, but again, when I switch over to Isadora and take initiate serial I do not get any response. I have included the arduino sketch in the body and the izzy patchas an attachment.
       Thank you,
      Michael
      /*
      This should enable you to read all the arduino pins in Isadora.
      Edit the ones you don't need out of this script.
      */
      int delval=100; //set this to adjust the polling value
      int value;
      int anports=5; //no of analog ports to read - note 0 means you will read one port. To skip reading any ports comment out the lop below
      int digports=13; //as above but with digital ports
      void setup()
      {
        Serial.begin(9600); //you can change the baud rate
      }
      void loop()
      //comment out this loop to avoid reading any analog ports
      {
        for (int i=0; i<=anports; i++)  {
        value = 1000+analogRead(i); // add 1000 to the value of the pin to ensure 4 digits.
        Serial.print(i,DEC); //send the port number
        Serial.print(value); //send the value
        Serial.println(); //send the eom
         
        }
        //comment out this loop to avoid reading any digital ports
          for (int i=0; i<=digports; i++)  {
        value = digitalRead(i); // add 1000 to the value of the pin to ensure 4 digits.
        Serial.print(i+97,BYTE); //send the port number
        Serial.print(value); //send the value
        Serial.println(); //send the eom
          }

      27d2ca-arduinotoisadora.izz

      1 Reply Last reply Reply Quote 0
      • C
        casselli last edited by

        Dear All,

        Figured it out, just had to eliminate the BYTE and enter the remaning i+97 into the parentheses
        1 Reply Last reply Reply Quote 0
        • First post
          Last post